/** * Created by wisestone on 2018-01-08. */ 'use strict'; define([ 'app' ], function (app) { app.factory("WorkflowStatus", ['$http', '$log', function ($http, $log) { return { find : function (conditions) { return $http.post("workflowStatus/find", conditions).then(function (response) { $log.debug("워크플로우 상태 목록 데이터 : ", response); return response; }); }, modifyPosition : function (conditions) { return $http.post("workflowStatus/modifyPosition", conditions).then(function (response) { $log.debug("워크플로우 상태 포지션 변경 : ", response); return response; }); }, add : function (conditions) { return $http.post("workflowStatus/add", conditions).then(function (response) { $log.debug("워크플로우 상태 생성 : ", response); return response; }); }, modify : function (conditions) { return $http.post("workflowStatus/modify", conditions).then(function (response) { $log.debug("워크플로우 수정 결과 : ", response); return response; }); }, detail : function (conditions) { return $http.post("workflowStatus/detail", conditions).then(function (response) { $log.debug("워크플로우 상태 상세 조회 데이터 : ", response); return response; }); }, remove : function (conditions) { return $http.post("workflowStatus/remove", conditions).then(function (response) { $log.debug("워크플로우 삭제 결과 : ", response); return response; }); }, } } ]); });