UNPKG

cobuild-angular-stack

Version:

Base stack angular sass jade gulp

32 lines (29 loc) 1.33 kB
/** * Created by garusis on 8/06/16. */ (function (module) { module.factory('Statics', ['UnikoService', '$http', function (UnikoService, $http) { var StaticsService = new UnikoService('guests'); StaticsService.postContactUs = function (contactInfo) { return $http.post(this.resourceUrl + '/contactus', {contactInfo: contactInfo}); }; return StaticsService; }]); module.factory('CAccounts', ['UnikoService', '$http', function (UnikoService, $http) { var StaticsService = new UnikoService('coupleaccounts'); StaticsService.checkImport = function (id, eventId, method) { return $http.post(this.resourceUrl + '/' + id + '/checkImport', {eventId: eventId, method: method}); }; return StaticsService; }]); module.factory('Utils', ['UnikoService', '$http', function (UnikoService, $http) { var UtilsDataService = new UnikoService('utils'); UtilsDataService.list = function (filter) { return $http.post(this.resourceUrl + '/listUtils', {filter: filter}); }; UtilsDataService.listAll = function (filter) { return $http.post(this.resourceUrl + '/listAllUtils', {filter: filter}); }; return UtilsDataService; }]); })(angular.module('uniko.statics'));