{"version":3,"names":[],"mappings":"","sources":["scripts/public/emailoptout/emailoptoutService.min.js"],"sourcesContent":["var emailoptoutService = function ($q, cacheManagerService) {\r\n this.NonJSUnSubScribe = function (EmailDetailID, EmailLogID) {\r\n var deferred = $q.defer();\r\n\r\n cacheManagerService.get({\r\n noCache: true,\r\n url: siteGlobal.apiResourceLocation + '/api/EmailOptOut/NonJSUnSubScribe',\r\n method: 'POST',\r\n data:\r\n {\r\n EmailDetailID: EmailDetailID,\r\n EmailLogID: EmailLogID\r\n }\r\n })\r\n .success(function (data, status, headers, config) {\r\n deferred.resolve(data);\r\n })\r\n .error(function (data, status, headers, config) {\r\n siteGlobal.logError(data, \"emailoptoutService.NonJSUnSubScribe\", { data: data, status: status, headers: headers, config: config });\r\n });\r\n return deferred.promise;\r\n };\r\n\r\n this.JSUnSubScribe = function (Search, EmailLogID) {\r\n var deferred = $q.defer();\r\n\r\n cacheManagerService.get({\r\n noCache: true,\r\n url: siteGlobal.apiResourceLocation + '/api/EmailOptOut/JSUnSubScribe',\r\n method: 'POST',\r\n data:\r\n {\r\n Search: Search,\r\n EmailLogID: EmailLogID\r\n }\r\n })\r\n .success(function (data, status, headers, config) {\r\n deferred.resolve(data);\r\n })\r\n .error(function (data, status, headers, config) {\r\n siteGlobal.logError(data, \"emailoptoutService.JSUnSubScribe\", { data: data, status: status, headers: headers, config: config });\r\n });\r\n return deferred.promise;\r\n };\r\n\r\n this.JSUnsubscribeSavedSearch = function (savedSearchID, EmailLogID) {\r\n var deferred = $q.defer();\r\n\r\n cacheManagerService.get({\r\n noCache: true,\r\n url: siteGlobal.apiResourceLocation + '/api/EmailOptOut/JSUnsubscribeSavedSearch',\r\n method: 'POST',\r\n data:\r\n {\r\n Search: savedSearchID,\r\n EmailLogID: EmailLogID\r\n }\r\n })\r\n .success(function (data, status, headers, config) {\r\n deferred.resolve(data);\r\n })\r\n .error(function (data, status, headers, config) {\r\n siteGlobal.logError(data, \"emailoptoutService.JSUnSubScribe\", { data: data, status: status, headers: headers, config: config });\r\n });\r\n return deferred.promise;\r\n };\r\n\r\n this.UserStaffUnSubscribe = function (Email, EmailLogID) {\r\n var deferred = $q.defer();\r\n\r\n cacheManagerService.get({\r\n noCache: true,\r\n url: siteGlobal.apiResourceLocation + '/api/EmailOptOut/UserStaffUnSubscribe',\r\n method: 'POST',\r\n data:\r\n {\r\n Email: Email,\r\n EmailLogID: EmailLogID\r\n }\r\n })\r\n .success(function (data, status, headers, config) {\r\n deferred.resolve(data);\r\n })\r\n .error(function (data, status, headers, config) {\r\n siteGlobal.logError(data, \"emailoptoutService.UserStaffUnSubscribe\", { data: data, status: status, headers: headers, config: config });\r\n });\r\n return deferred.promise;\r\n };\r\n\r\n this.UserMessagesUnSubScribe = function (Email, EmailLogID) {\r\n var deferred = $q.defer();\r\n\r\n cacheManagerService.get({\r\n noCache: true,\r\n url: siteGlobal.apiResourceLocation + '/api/EmailOptOut/UserMessagesUnSubScribe',\r\n method: 'POST',\r\n data:\r\n {\r\n Email: Email,\r\n EmailLogID: EmailLogID\r\n }\r\n })\r\n .success(function (data, status, headers, config) {\r\n deferred.resolve(data);\r\n })\r\n .error(function (data, status, headers, config) {\r\n siteGlobal.logError(data, \"emailoptoutService.UserMessagesUnSubScribe\", { data: data, status: status, headers: headers, config: config });\r\n });\r\n return deferred.promise;\r\n };\r\n\r\n this.JSDistrictUnSubScribe = function (DistrictID, Email, EmailLogID) {\r\n var deferred = $q.defer();\r\n\r\n cacheManagerService.get({\r\n noCache: true,\r\n url: siteGlobal.apiResourceLocation + '/api/EmailOptOut/JSDistrictUnSubScribe',\r\n method: 'POST',\r\n data:\r\n {\r\n DistrictID: DistrictID,\r\n Email: Email,\r\n EmailLogID: EmailLogID\r\n }\r\n })\r\n .success(function (data, status, headers, config) {\r\n deferred.resolve(data);\r\n })\r\n .error(function (data, status, headers, config) {\r\n siteGlobal.logError(data, \"emailoptoutService.JSDistrictUnSubScribe\", { data: data, status: status, headers: headers, config: config });\r\n });\r\n return deferred.promise;\r\n };\r\n\r\n this.JSInvitationsUnSubScribe = function (Email, EmailLogID) {\r\n var deferred = $q.defer();\r\n\r\n cacheManagerService.get({\r\n noCache: true,\r\n url: siteGlobal.apiResourceLocation + '/api/EmailOptOut/JSInvitationsUnSubScribe',\r\n method: 'POST',\r\n data:\r\n {\r\n Email: Email,\r\n EmailLogID: EmailLogID\r\n }\r\n })\r\n .success(function (data, status, headers, config) {\r\n deferred.resolve(data);\r\n })\r\n .error(function (data, status, headers, config) {\r\n siteGlobal.logError(data, \"emailoptoutService.JSInvitationsUnSubScribe\", { data: data, status: status, headers: headers, config: config });\r\n });\r\n return deferred.promise;\r\n };\r\n\r\n this.JSMessagesFromEmpUnSubScribe = function (Email, EmailLogID) {\r\n var deferred = $q.defer();\r\n\r\n cacheManagerService.get({\r\n noCache: true,\r\n url: siteGlobal.apiResourceLocation + '/api/EmailOptOut/JSMessagesFromEmpUnSubScribe',\r\n method: 'POST',\r\n data:\r\n {\r\n Email: Email,\r\n EmailLogID: EmailLogID\r\n }\r\n })\r\n .success(function (data, status, headers, config) {\r\n deferred.resolve(data);\r\n })\r\n .error(function (data, status, headers, config) {\r\n siteGlobal.logError(data, \"emailoptoutService.JSMessagesFromEmpUnSubScribe\", { data: data, status: status, headers: headers, config: config });\r\n });\r\n return deferred.promise;\r\n };\r\n\r\n this.JSMessagesFromPartnersUnSubScribe = function (Email, EmailLogID) {\r\n var deferred = $q.defer();\r\n\r\n cacheManagerService.get({\r\n noCache: true,\r\n url: siteGlobal.apiResourceLocation + '/api/EmailOptOut/JSMessagesFromPartnersUnSubScribe',\r\n method: 'POST',\r\n data:\r\n {\r\n Email: Email,\r\n EmailLogID: EmailLogID\r\n }\r\n })\r\n .success(function (data, status, headers, config) {\r\n deferred.resolve(data);\r\n })\r\n .error(function (data, status, headers, config) {\r\n siteGlobal.logError(data, \"emailoptoutService.JSMessagesFromPartnersUnSubScribe\", { data: data, status: status, headers: headers, config: config });\r\n });\r\n return deferred.promise;\r\n };\r\n this.JSTTCMUnSubScribe = function (Email, EmailLogID) {\r\n var deferred = $q.defer();\r\n\r\n cacheManagerService.get({\r\n noCache: true,\r\n url: siteGlobal.apiResourceLocation + '/api/EmailOptOut/JSTTCMUnSubScribe',\r\n method: 'POST',\r\n data:\r\n {\r\n Email: Email,\r\n EmailLogID: EmailLogID\r\n }\r\n })\r\n .success(function (data, status, headers, config) {\r\n deferred.resolve(data);\r\n })\r\n .error(function (data, status, headers, config) {\r\n siteGlobal.logError(data, \"emailoptoutService.JSTTCMUnSubScribe\", { data: data, status: status, headers: headers, config: config });\r\n });\r\n return deferred.promise;\r\n };\r\n}"],"file":"emailoptoutService.min.js"}