1(function(){this.inArray=[].indexOf||function(a){for(var b=0,c=this.length;b<c;b++)if(b in this&&this[b]===a)return b;return-1}
2,this.glob=function(name){var d,names,a;names=name.split("."),d=window;for(var i=0,toi=names.length;i<toi;i++)a=names[i],d[a]=d[a]||{}
3,d=d[a];return d}
4,glob("ldbck");var self=ldbck;if(window._emv){if(window.ldbck_loaded)return self.log("multiple instance detected"),!1;window.ldbck_loaded=!0}
5if(self.DEBUG=!1,self.ACCEPT_CHATS=!1,self.version="v1.12.27b25052026",self.DOMAIN=self.DEBUG?"leadback.trunk":"string"==typeof _emv.cdn?_emv.cdn:"leadback.ru",self.CHAT_CDN=self.DEBUG?"//cloudim.local/js/":"https://cloudim.ru/js/",self.JQUERY_URL="https://leadback.ru/js/jquery-1.10.2.min.js?ldbck_v="+self.version,self.JS_CDN=self.DEBUG?"//"+self.DOMAIN+"/js/":"https://"+self.DOMAIN+"/js/",self.PUBLIC_SERVER=(self.DEBUG?"//":"https://")+self.DOMAIN+"/",self.JQUERY_VERSIONS="3.3.1 3.2.1 3.1.1 2.2.4 2.1.1 1.12.4 1.11.3 1.11.2 1.11.1 1.11.0 1.10.2 1.10.1 1.10.0 1.9.1 1.9.0".split(" "),self.LAST_SPEED=self.LEAVE_POINT=self.LAST_X_POSITION=self.LAST_Y_POSITION=0,self.timer=27e3,self.activity=0,self.clock=null,self.stat={x:null,y:null,s:null,t:0,a:0,l:0}
6,self.total_time=0,self.last_visit_timeout=0,self.visit_date=null,self.Chat={}
7,self.storage=null,self.dom_is_ready=null,self.chat_is_suspended=!1,self.restarted=!1,self.is_multibutton=null,self.$multibutton=null,self.beforeOpenWidget=null,self.successCallCallback=null,self.chat_settings=null,self.form_settings=null,"function"==typeof _emv.successCallCallback&&(self.successCallCallback=_emv.successCallCallback),self.onApiReady=[],"function"==typeof _emv.onApiReady)self.onApiReady.push(_emv.onApiReady);else if("object"==typeof _emv.onApiReady)for(var i=0,toi=_emv.onApiReady.length;i<toi;i++)"function"==typeof _emv.onApiReady[i]&&self.onApiReady.push(_emv.onApiReady[i]);self.is_vk=_emv.is_vk||!1,self.debug_window=_emv.debug_window||!1;try{self.screen_width=Math.min(window.screen.availWidth,window.screen.availHeight),self.screen_height=Math.max(window.screen.availWidth,window.screen.availHeight)}
8catch(e){}
9if(h=_emv.campaign,self.cc="__leadback_"+h,self.ct="__leadback_timeout_"+h,self.cg="__leadback_guid_"+h,self.cookie_converted="__leadback_converted_"+h,self.cookie_converted_expire=99999,self.storage_type="cookie",self.countDownInterval=null,self.replacedTags={}
10,self.googleAnaliticEnabled=void 0!==_emv.disableGoogleAnalytics&&!0!==_emv.disableGoogleAnalytics,self.googleAnaliticEnabled&&!self.DEBUG&&(window.GoogleAnalyticsObject||function(i,s,o,g,r,a,m){i.GoogleAnalyticsObject=r,i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)}
11,i[r].l=1*new Date,a=s.createElement(o),m=s.getElementsByTagName(o)[0],a.async=1,a.src=g,m.parentNode.insertBefore(a,m)}
12(window,document,"script","https://www.google-analytics.com/analytics.js","ga"),"function"==typeof ga&&(ga("create","UA-53479583-2","auto",{name:"ldbckTracker"}
13),ga("ldbckTracker.send","pageview"))),self.ga_cid=null,self.getGoogleCid=function(){return null===self.ga_cid&&"function"==typeof ga&&"function"==typeof ga.getAll&&ga.getAll().length&&(self.ga_cid=ga.getAll()[0].get("clientId")),self.log("getGoogleCid",self.ga_cid),self.ga_cid}
14,self.ya=[],self.ya_cid=null,self.ya_counter=null,self.isValidYaCounter=function(counter){return counter&&"object"==typeof counter&&!Array.isArray(counter)&&("function"==typeof counter.reachGoal||"function"==typeof counter.getClientID)}
15,self.getYa=function(){if(self.ya.length)return self.log("YA COUNTERS EXISTS:",self.ya),self.ya;for(var prop in window)if(0===prop.indexOf("yaCounter")){var counter=window[prop];self.isValidYaCounter(counter)&&"function"==typeof counter.reachGoal&&(self.ya.push(prop),self.log("Ya found:",prop))}
16return self.ya}
17,self.getYaCid=function(){if(self.ya_cid)return self.log("YA CID EXISTS:",self.ya_cid),self.ya_cid;for(var prop in window)if(0===prop.indexOf("yaCounter")){var counter=window[prop];if(self.isValidYaCounter(counter)&&"function"==typeof counter.getClientID){self.ya_cid=counter.getClientID(),self.log("YA CID:",self.ya_cid);break}
18}
19return self.ya_cid}
20,self.getYaCounter=function(){if(self.ya_counter)return self.log("YA COUNTER EXISTS:",self.ya_counter),self.ya_counter;for(var prop in window)if(0===prop.indexOf("yaCounter")){var counter=window[prop];if(self.isValidYaCounter(counter)&&"function"==typeof counter.getClientID){self.ya_counter=prop.replace("yaCounter",""),self.log("YA COUNTER:",self.ya_counter);break}
21}
22return self.ya_counter}
23,self.init=function(){self.log("init");try{var location=document.location.href,is_cobrowsing=-1!==location.indexOf("&_cobrowsing=true")||-1!==location.indexOf("?_cobrowsing=true");if(window!=window.top&&!self.is_vk||is_cobrowsing)return self.log("in frame, sending handshake..."),window.top.postMessage("ldbck_forms:"+JSON.stringify({event:"ldbck_wizard_handshake",data:{widget_key:_emv.campaign}
24}
25),self.DEBUG?"http://"+self.DOMAIN:"https://"+self.DOMAIN),void window.addEventListener("message",function(event){if("string"!=typeof event.data||-1===event.data.indexOf("ldbck_forms:"))return!1;var data=event.data.replace("ldbck_forms:","");"ldbck_wizard_handshake"===JSON.parse(data).event&&(self.log("Wizard form handshake received, loading JS from CDN",self.JS_CDN+"magic_forms_wizard/magic_forms_wizard.js?v="+self.version),self.loadScript(self.JS_CDN+"magic_forms_wizard/magic_forms_wizard.js?v="+self.version,!0,function(){self.log("WIZARD Forms Loaded"),new LeadbackMagicFormsWizard(self.$,self.DEBUG)}
26))}
27)}
28catch(e){}
29self.activity=self.DEBUG?1:self.randomVal(10,20),self.$.ajaxSetup({async:!0}
30),self.storage_type="local";try{void 0!==self.Cookies.get("__leadback_ver")&&(self.Cookies.remove(self.cc,{path:"/"}
31),self.Cookies.remove(self.ct,{path:"/"}
32),self.Cookies.remove("__leadback_ver",{path:"/"}
33))}
34catch(err){}
35return self.log("Storage type is: "+self.storage_type),self.storage=self.initStorage(_emv.campaign),self.initWidget()}
36,self.getStorageType=function(var_name){var storage_type=self.storage_type;return(var_name===self.cg&&!self.is_vk||var_name===self.cookie_converted)&&(storage_type="cookie"),storage_type}
37,self.getCookie=function(name){var storage_type=self.getStorageType(name);if("cookie"==storage_type)return self.Cookies.getJSON(name);if("local"==storage_type){var value=self.storage.localStorage.get(name);return void 0===value?value:void 0!==value.expires&&"string"==typeof value.expires&&new Date(value.expires)<new Date?void self.removeCookie(name):value.value}
38}
39,self.setCookie=function(name,value,params){var storage_type=self.getStorageType(name);return"cookie"==storage_type?self.Cookies.set(name,value,params):"local"==storage_type?(void 0===params.expires&&(params.expires=0),self.storage.localStorage.set(name,{value:value,expires:params.expires}
40)):void 0}
...
</html>