/**
* Created by cklimkowsky on 2/25/15.
*/
angular.module('coopEval').service('formService', formService);
function formService($http) {
var urlBase = 'services/EvaluationService';
this.getStudentWorkReport = function (id) {
return $http.get(urlBase + '/getStudentEval?placementId=' + id)
};
this.getEmployerEvaluation = function (id) {
return $http.get(urlBase + '/getEmployerEval?placementId=' + id)
};
this.submitForm = function (evaluation) {
return $http.put(urlBase + '/submitEval', evaluation)
};
this.saveForm = function (evaluation) {
return $http.put(urlBase + '/saveEval', evaluation)
};
this.approveEvaluation = function (evaluation) {
return $http.put(urlBase + '/approveEval', evaluation)
};
this.rejectEvaluation = function (evaluation) {
return $http.put(urlBase + '/rejectEval', evaluation)
};
this.getDepartmentForms = function () {
return $http.get('api/forms/department');
};
}
|