window.ApexChat = window.ApexChat || {}; ApexChat.slimInit = {"companyKey":"tomsmechanical","companySaveTimestamp":"2019-04-17T13:41:15.087","profileId":11094,"isPhone":false,"isTablet":false,"isMobile":false,"cdnFileName":"apex-c-tomsmechanical.p11094.js","cdnVersionId":null,"cdnUrl":"https://d39qus5ih5p88x.cloudfront.net/production/apex-c-tomsmechanical.p11094.js?versionId=","useCdn":false,"cdnBaseUrl":"https://d39qus5ih5p88x.cloudfront.net","cdnOriginPath":"production","randomGuid":"5c967e69-fc6a-4ae5-b9aa-eddfdbd01174"}; window.ApexChat=window.ApexChat||{};window.ApexChat.init=function(){try{if(window.ApexChat&&window.ApexChat.invitationv2run){return}window.ApexChat=window.ApexChat||{};window.ApexChat.invitationv2run=true;var n=function(e){var s=window.location.search.substring(1).split("&");for(var a=0;a-1||G.src.indexOf("apexchat.js")>-1){var b=document.createElement("a");b.href=G.src;if(b.host){l=document.location.protocol+"//"+b.host+"/"}else{l=""}var B=b.search.substring(1).split("&");for(var x=0;x-1||window.location.href.indexOf("utm_source=")>-1;var r=n("utm_source"),q=n("utm_medium"),o=n("utm_campaign"),p=n("gclid");if(window.ApexChat&&window.ApexChat.slimInit&&window.ApexChat.slimInit.useCdn){v.src=window.ApexChat.slimInit.cdnUrl}else{v.src=l+"scripts/invitation2.ashx?company="+h+"&suppressInitialize=false&visitorId="+L+"&agentAliasId="+d+"&operatorId="+A+"&profileId="+D+"&gclid="+p+"&gs="+r+"&gm="+q+"&gc="+o+"&originalReferrer="+encodeURIComponent(document.referrer).substring(0,500)+E}v.onload=function(){if(ApexChat.Invitation){if(ApexChat.Invitation.config){if(ApexChat.slimInit){g(ApexChat.Invitation.config,ApexChat.slimInit)}ApexChat.Invitation.init(ApexChat.Invitation.config);if(!K){K=ApexChat.slimInit.randomGuid;k(I,K,365)}H.src=l+"handlers/slim/pinghandler.ashx?company="+h+"&visitorGuid="+K+"&visitorId="+ApexChat.Invitation.options.visitorId+"&agentAliasId="+ApexChat.Invitation.options.agentAliasId+"&operatorId="+ApexChat.Invitation.options.operatorId+"&profileId="+ApexChat.Invitation.options.profileId+"&gclid="+p+"&gs="+r+"&gm="+q+"&gc="+o+"&originalReferrer="+encodeURIComponent(document.referrer).substring(0,500)+E;H.onload=function(){k(J,ApexChat.pingResponse.visitorId,365)};document.body.appendChild(H)}if(ApexChat.Invitation.ready){ApexChat.Invitation.ready()}}};t.insertBefore(v,t.firstChild)}catch(m){window.ApexChat.invitationv2run=false;window.setTimeout(function(){window.ApexChat.init()},1000);if(window&&window.console){window.console.error(m)}}};window.ApexChat.init();