services.factory("IClickToCallFormFactory",["$http","$q",function(t,e){return this.getHash=function(){var s=e.defer();return t.get(WWW_DIR_JAVASCRIPT+"theme/gethash").then((function(t){s.resolve(t.data)}),(function(){s.reject("error")})),s.promise},this.deleteResource=function(s,c,n){var o=e.defer();return t.get(WWW_DIR_JAVASCRIPT+"theme/deleteresource/"+s+"/"+c+"/"+n).then((function(t){o.resolve(t.data)}),(function(){o.reject("error")})),o.promise},this}]),lhcAppControllers.controller("IClickToCallFormGenerator",["$scope","$http","$location","$rootScope","$log","IClickToCallFormFactory",function(t,e,s,c,n,o){this.staticResources={},this.staticJSResources={},this.staticCSSResources={},this.static_content_name="",this.static_js_content_name="",this.static_css_content_name="";var a=this;this.addStaticResource=function(){o.getHash().then((function(t){a.staticResources[t.hash]={name:a.static_content_name,hash:t.hash},a.static_content_name=""}))},this.addStaticJSResource=function(){o.getHash().then((function(t){a.staticJSResources[t.hash]={name:a.static_js_content_name,hash:t.hash},a.static_js_content_name=""}))},this.addStaticCSSResource=function(){o.getHash().then((function(t){a.staticCSSResources[t.hash]={name:a.static_css_content_name,hash:t.hash},a.static_css_content_name=""}))},this.deleteStaticResource=function(t,e){var s=a.staticResources[e.hash];o.deleteResource(t,"static_content",s.hash).then((function(t){})),delete a.staticResources[e.hash]},this.deleteStaticJSResource=function(t,e){var s=a.staticJSResources[e.hash];o.deleteResource(t,"static_js_content",s.hash).then((function(t){})),delete a.staticJSResources[e.hash]},this.deleteStaticCSSResource=function(t,e){var s=a.staticCSSResources[e.hash];o.deleteResource(t,"static_css_content",s.hash).then((function(t){})),delete a.staticCSSResources[e.hash]},this.initVariables=function(){window.PersonalTheme.staticResources&&(this.staticResources=window.PersonalTheme.staticResources),window.PersonalTheme.staticJSResources&&(this.staticJSResources=window.PersonalTheme.staticJSResources),window.PersonalTheme.staticCSSResources&&(this.staticCSSResources=window.PersonalTheme.staticCSSResources)}}]);
//# sourceMappingURL=d8346ec9945daa4d32160b1f3226bb4c.js.map
