{"version":3,"names":[],"mappings":"","sources":["scripts/public/faq/faqService.min.js"],"sourcesContent":["var faqService = function ($q, cacheManagerService) {\r\n this.getCategories = function (employerView) {\r\n var deferred = $q.defer();\r\n\r\n cacheManagerService.get({\r\n url: siteGlobal.apiResourceLocation + '/api/FAQ/GetCategories',\r\n params: { EmployerView: employerView }\r\n })\r\n .then(\r\n function (data) {\r\n deferred.resolve(data);\r\n },\r\n function (data, status, headers, config) {\r\n siteGlobal.logError(data, \"faqService.getCategories\", { data: data, status: status, headers: headers, config: config });\r\n });\r\n\r\n return deferred.promise;\r\n };\r\n\r\n this.filterByCategory = function (catid, employerView) {\r\n var deferred = $q.defer();\r\n \r\n cacheManagerService.get({\r\n noCache: true,\r\n url: siteGlobal.apiResourceLocation + '/api/FAQ/FilterByCategory',\r\n params: { ID: catid, EmployerView: employerView }\r\n })\r\n .then(\r\n function (data) {\r\n deferred.resolve(data);\r\n },\r\n function (data, status, headers, config) {\r\n siteGlobal.logError(data, \"faqService.filterByCategory\", { data: data, status: status, headers: headers, config: config });\r\n });\r\n\r\n return deferred.promise;\r\n };\r\n\r\n this.search = function (search, employerView) {\r\n var deferred = $q.defer();\r\n\r\n cacheManagerService.get({\r\n url: siteGlobal.apiResourceLocation + '/api/FAQ/Search',\r\n params: { Search: search, EmployerView: employerView }\r\n })\r\n .then(\r\n function (data) {\r\n deferred.resolve(data);\r\n },\r\n function (data, status, headers, config) {\r\n siteGlobal.logError(data, \"faqService.search\", { data: data, status: status, headers: headers, config: config });\r\n });\r\n\r\n return deferred.promise;\r\n };\r\n};\r\n\r\n"],"file":"faqService.min.js"}