UNPKG

cobuild-angular-stack

Version:

Base stack angular sass jade gulp

31 lines (25 loc) 1.11 kB
/** * Created by garusis on 8/06/16. */ (function (module) { module.factory('Cron', ['UnikoService', '$http', function (UnikoService, $http) { var coupleAccount = new UnikoService('coupleAccounts'); var order = new UnikoService('orders'); coupleAccount.dailyCloseTable = function () { return $http.post(this.resourceUrl + '/dailyCloseTable', {}); }; coupleAccount.sendNextWeekRSVPReminder = function () { return $http.post(this.resourceUrl + '/sendNextWeekRSVPReminder', {}); }; coupleAccount.sendTenDaysToWeddingReminder = function () { return $http.post(this.resourceUrl + '/sendTenDaysToWeddingReminder', {}); }; coupleAccount.sendTodayIsWeddingReminder = function () { return $http.post(this.resourceUrl + '/sendTodayIsWeddingReminder', {}); }; coupleAccount.sendIncompleteReminder = function () { return $http.post(order.resourceUrl + '/sendIncompleteReminder', {}); }; return coupleAccount; }]); })(angular.module('uniko'));