/** * Created by wisestone on 2018-05-08. */ 'use strict'; define([ 'app' ], function (app) { app.factory("IssueStatus", ['$http', '$log', function ($http, $log) { return { find : function (conditions) { return $http.post("issueStatus/find", conditions).then(function (response) { $log.debug("이슈 상태 목록 데이터 : ", response); return response; }); }, findAll : function (conditions) { return $http.post("issueStatus/findAll", conditions).then(function (response) { $log.debug("이슈 상태 목록 전체 데이터 : ", response); return response; }); }, add : function (conditions) { return $http.post("issueStatus/add", conditions).then(function (response) { $log.debug("이슈 상태 생성 결과 : ", response); return response; }); }, modify : function (conditions) { return $http.post("issueStatus/modify", conditions).then(function (response) { $log.debug("이슈 상태 수정 결과 : ", response); return response; }); }, detail : function (conditions) { return $http.post("issueStatus/detail", conditions).then(function (response) { $log.debug("이슈 상태 상세 데이터 : ", response); return response; }); }, remove : function (conditions) { return $http.post("issueStatus/remove", conditions).then(function (response) { $log.debug("이슈 상태 삭제 결과 : ", response); return response; }); }, findNextIssueStatus : function (conditions) { return $http.post("issueStatus/findNextIssueStatus", conditions).then(function (response) { $log.debug("이슈 상태 변경 가능 상태 조회 결과 : ", response); return response; }); }, findNextMultiIssueStatus : function (conditions) { return $http.post("issueStatus/findNextMultiIssueStatus", conditions).then(function (response) { $log.debug("이슈 다중 상태 변경 가능 상태 조회 결과 : ", response); return response; }); }, findIssueStatusesByIssueType : function (conditions) { return $http.post("issueStatus/findIssueStatusesByWorkflow", conditions).then(function (response) { $log.debug("이슈 유형에서 사용 가능한 이슈 상태 기록 조회 결과 : ", response); return response; }); } } } ]); });