
(function() {
    'use strict';
    
    angular.module('freeants').factory('schedulerDataContext', ['$http', 'helpers', 'path', function ($http, helpers, path) {

      //End points
    function SchedulerRegisterUrl() {
        return path.api + "/SchedulerRegister";
    }
    return {
        schedule: function (schedulerObject) {
            var req = $http({
                method: 'POST',
                headers: helpers.getSecurityHeaders(),
                url: SchedulerRegisterUrl(),
                data: schedulerObject
            }).then(function (response) {
                return response.data;
            });
            return req;
        },
        update: function (schedulerObject, schedulerId) {
            var req = $http({
                method: 'PUT',
                headers: helpers.getSecurityHeaders(),
                url: SchedulerRegisterUrl() + "/" + schedulerId,
                data: schedulerObject
            }).then(function (response) {
                return response.data;
            });
            return req;
        },
         delete: function (thingId, schedulerId) {
            var req = $http({
                method: 'DELETE',
                headers: helpers.getSecurityHeaders(),
                url: SchedulerRegisterUrl() + "/" + schedulerId,
                data: {thingId: thingId}
            }).then(function (response) {
                return response.data;
            });
            return req;
        }
    }
}]);
}());
@@ -195,32 +195,24 @@
 on Scheduler
-Register
 Url() %7B%0A    
@@ -244,24 +244,16 @@
 cheduler
-Register
 %22;%0A    %7D
@@ -456,32 +456,24 @@
 l: Scheduler
-Register
 Url(),%0A     
@@ -836,32 +836,24 @@
 l: Scheduler
-Register
 Url() + %22/%22 
@@ -1198,32 +1198,32 @@
 urityHeaders(),%0A
+
                 
@@ -1240,16 +1240,8 @@
 uler
-Register
 Url(

Fix Scheduler dataContext