(function(){function t(n,t){var i=document.createElement("script");i.type="text/javascript";i.readyState?i.onreadystatechange=function(){(i.readyState=="loaded"||i.readyState=="complete")&&(i.onreadystatechange=null,t())}:i.onload=function(){t()};i.src=n;document.getElementsByTagName("head")[0].appendChild(i)}var n="https://pochatwesteurope.crm.powerobjects.net/";t(n+"scripts/core.js",function(){(function(t){function b(){function a(t){h=!0;c||n.initChat(t)}function y(){c=!0;h||n.initChat()}function p(){var i=this,f=null,t=null;i.init=function(i){f=i;t=i.createHubProxy("visitorHub");t.on("availableAgent",function(){v()});t.on("session",function(n){a(n)});t.on("accepting",function(n){ft(n)});t.on("accepted",function(n){r.setSid(n.chatId);et(n)});t.on("typing",function(t,i){n.addTyper(t,i)});t.on("chat",function(t,i,r){n.removeTyper(i);var t={text:t,user:r};u("incoming",t)});t.on("vchat",function(n,t){var n={text:n,user:t};u("outgoing",n)});t.on("lcid",function(n,t){t===2?r.setCid(n):t===4&&r.setLid(n)});t.on("end",function(){n.endChat()})};i.connect=function(n){f.start().done(function(){n(f.id)})};i.disconnect=function(){f&&f.stop()};i.availableAgent=function(n,i){t.invoke("availableAgent",n).done(function(n){i(n)})};i.session=function(n){t.invoke("session",n).done(function(){})};i.start=function(n){t.invoke("start",n).done(function(){})};i.typing=function(){t.invoke("typing",r.getSid(),r.getDispn()).done(function(){})};i.send=function(n){t.invoke("send",r.getSid(),r.getDispn(),n,r.getOtherVids(s)).done(function(){})};i.end=function(){t.invoke("end",r.getSid()).done(function(){})};i.rate=function(n){t.invoke("rate",n).done(function(){})}}function b(){var n=/[\u2600-\u26ff]|[\u2700-\u27bf]|\ud83c[\udf00-\udfff]|\ud83d[\udc00-\udfff]/g,t=this;t.tagEmojis=function(t){return t.replace(n,"$&<\/em>")}}var s=null,f=new p,r=new k(w),l=new b,h=!1,c=!1,n=this;n.user=null;n.chatEnded=!1;n.isTyping=!1;n.typers=[];n.init=function(i,u){var o=t.hubConnection(i+"signalr");o.stateChanged(function(){o.state==0?console.log("VisitorHub Connection is connecting and state is "+o.state):o.state==1?console.log("VisitorHub Connection is Connected and state is "+o.state):o.state==2?console.log("VisitorHub Connection is reconnecting and state is "+o.state):o.state==4&&(console.log("VisitorHub Connection is disconnected and state is "+o.state),n.restart())});o.connectionSlow(function(){console.log("VisitorHub Connection is slow");n.restart()});o.qs={cid:u,frm:"vtr",wid:r.getWid(),bid:e,pgn:document.title};f.init(o);n.startHub()};n.startHub=function(){f.connect(function(t){s=t;f.availableAgent(e,function(t){if(t){var i=r.getSid();i?(h=!1,f.session(i),c=!1,setTimeout(y,5e3)):n.initChat()}})})};n.stopHub=function(){f.disconnect()};n.restart=function(){n.stopHub();n.chatEnded=!1;n.startHub()};n.start=function(n,t,i){var u={name:n,contactId:r.getCid(),leadId:r.getLid(),info:t,image:i};f.start(u)};n.typing=function(){n.isTyping||(n.isTyping=!0,f.typing())};n.addTyper=function(t,i){n.typers.push({id:t,name:i});o()};n.removeTyper=function(t){for(var i=0;i$&<\/a>'))}}}function k(n){function e(){return f.getItem(u)}function r(){f.setItem(u,t)}function o(){return typeof localStorage=="undefined"?new g:new d}function s(n){this.wid=n||null;this.lid=null;this.cid=null;this.sid=null;this.dispn=null;this.vids=[]}var u=y+"vstsettings",f=o(),t=e(),i;t||(t=new s(n),r());i=this;i.getWid=function(){return t.wid};i.getCid=function(){return t.cid};i.setCid=function(n){t.cid=n;r()};i.getLid=function(){return t.lid};i.setLid=function(n){t.lid=n;r()};i.getSid=function(){return t.sid};i.setSid=function(n){t.sid=n;r()};i.getDispn=function(){return t.dispn};i.setDispn=function(n){t.dispn=n;r()};i.addVid=function(n){t.vids.push(n);r()};i.getOtherVids=function(n){var r=[],i=e(),t;if(i.vids)for(t=0;t
<\/div>
<\/div>
<\/div><\/div>
<\/div>
<\/div>