PageSourceSearch

https://s1.48hourprint.com/assets/vendor/dri/customer-cs/dist/customer-chat-support.js

js 48hourprint.com collected 2026-10-03 22:11:01 UTC 8,936 bytes, 1 lines download raw bytes

1var CustomerCSLibrary=function(e){var t={};function i(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,i),o.l=!0,o.exports}return i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)i.d(n,o,function(t){return e[t]}.bind(null,o));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=1)}([function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LivePersonTagService=void 0,window.lpTag=window.lpTag||[];var n=function(){function e(){}return e.newPage=function(e){return"function"==typeof window.lpTag.newPage&&window.lpTag.newPage(e)},e.sdesSend=function(e){return"function"==typeof window.lpTag.sdes.send?window.lpTag.sdes.send(e):window.lpTag.sdes.push(e)},e}();t.LivePersonTagService=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EngagementDataEntity=t.CustomerCSScripts=void 0;var n=i(2);Object.defineProperty(t,"CustomerCSScripts",{enumerable:!0,get:function(){return n.CustomerCSScripts}});var o=i(6);Object.defineProperty(t,"EngagementDataEntity",{enumerable:!0,get:function(){return o.EngagementDataEntity}})},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CustomerCSScripts=void 0;var n=i(3),o=i(4),r=i(5),a=i(0),s=function(){function e(e,t){this.config=e,this.isDialpadDx=t,this.isDialpadDx="dialpad"===e.type&&"dx"===e.dialpad_server_key,this.loadChatSupport()}return e.prototype.loadChatSupport=function(){var e,t=this;switch(this.config.type){case"liveperson":e=new n.LivepersonModel(this.config);break;case"incontact":e=new o.IncontactModel(this.config);break;case"dialpad":e=new r.DialpadModel(this.config)}setTimeout((function(){var i=e.getImage?e.getImage():"";i&&t.loadImage(i).then((function(){}));var n=e.getStyleLink?e.getStyleLink():"";n&&t.loadStyleLink(n).then((function(){}));var o=e.getScriptUrl(),r=e.getContent(),a=e.getInitializationScript?e.getInitializationScript():"";a&&t.loadScript("",a).then((function(){})),t.loadScript(o,"").then((function(){t.loadScript("",r).then((function(){}))}))}))},e.prototype.loadScript=function(e,t){var i=this;return new Promise((function(n){var o=document.createElement("script");o.type="text/javascript",e&&(i.isDialpadDx&&(o.type="module",o.async=!0),o.src=e,o.onload=function(){n({script:name,loaded:!0,status:"Loaded"})},o.onerror=function(){return n({script:name,loaded:!1,status:"Loaded"})}),t&&(o.innerHTML=t,n({script:name,loaded:!0,status:"Loaded"})),document.getElementsByTagName("head")[0].appendChild(o)}))},e.prototype.loadStyleLink=function(e){return new Promise((function(t){var i=document.createElement("link");i.rel="stylesheet",e&&(i.href=e,i.onload=function(){t({styleLink:name,loaded:!0,status:"Loaded"})},i.onerror=function(){return t({styleLink:name,loaded:!1,status:"Loaded"})}),document.getElementsByTagName("head")[0].appendChild(i)}))},e.prototype.loadImage=function(e){return new Promise((function(){document.body.appendChild(e)}))},e.prototype.setNewPage=function(){a.LivePersonTagService.newPage(window.location.href)},e}();t.CustomerCSScripts=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LivepersonModel=void 0;var n=function(){function e(e){this.config=e}return e.prototype.getScriptUrl=function(){return this.config.static_url+"/assets/vendor/dri/customer-cs/dist/le-mtagconfig.min.js"},e.prototype.getContent=function(){return"lpTag.sdes = lpTag.sdes||[];lpTag.identities = lpTag.identities||[];lpTag.section = [];lpTag.site = '"+this.config.lp_site_id+"';"},e}();t.LivepersonModel=n},function(e,t,i){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.IncontactModel=void 0;var n=function(){function e(e){this.config=e}return e.prototype.getScriptUrl=function(){return"https://home-c17.incontact.com/inContact/ChatClient/js/embed.min.js"},e.prototype.getContent=function(){return"icPatronChat.init({serverHost:'https://home-c17.incontact.com',bus_no:4595417,poc:'"+this.config.incontact_poc+"',params:['FirstName','Last Name','[email protected]',555-555-5555]})"},e}();t.IncontactModel=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DialpadModel=void 0;var n=function(){function e(e){this.config=e,this.dialpadServerKey=this.config.dialpad_server_key+"e",this.dialpadPosition=this.config.dialpad_position?this.config.dialpad_position:"right"}return e.prototype.getScriptUrl=function(){return this.config.dialpad_script},e.prototype.getContent=function(){var e="";return"dx"!=this.config.dialpad_server_key&&(e=this.dialpadServerKey+'.server = "'+this.config.dialpad_server_url+'";'),"(function(){if (typeof "+this.dialpadServerKey+' !== "undefined") {'+e+"if (typeof "+this.dialpadServerKey+'.initialize === "function") {'+this.dialpadServerKey+".initialize();}}})();"},e.prototype.getInitializationScript=function(){return"dx"!=this.config.dialpad_server_key?"":(window[this.dialpadServerKey]=window[this.dialpadServerKey]||{},"(function(){if (typeof "+this.dialpadServerKey+' !== "undefined") {'+this.dialpadServerKey+'.server = "'+this.config.dialpad_server_url+'";}})();')},e.prototype.getStyleLink=function(){return"https://us-central.dx.dialpad.com/static/common/css/koopid.css"},e.prototype.getImage=function(){var e,t,i,n,o=void 0!==window.customer&&void 0!==window.customer.data?window.customer.data:void 0!==window.customer?window.customer:window.customerInfo,r=o?"false":"true",a=document.createElement("div");if(a.setAttribute("id",this.config.dialpad_wrapper_id),a.setAttribute("style","border-radius:50%;box-sizing: border-box; display: flex; height:56px; overflow:hidden; padding:12px; width:56px;position: fixed; bottom: 16px; "+this.dialpadPosition+": 16px; z-index: 123; cursor: pointer"),"dx"!=this.config.dialpad_server_key?((n=document.createElement("button")).textContent="Live Chat",n.setAttribute("style","position: fixed; bottom: 30px; "+this.dialpadPosition+": 25px; z-index: 999; border-radius: 48px;")):((n=document.createElement("img")).setAttribute("src",this.config.dialpad_fab_icon),n.setAttribute("alt","Chat with Customer Service"),n.setAttribute("style","clip-path:circle(50%); object-fit: contain; height: auto; width: 100%;")),n.setAttribute("id",this.config.dialpad_btn_id),n.setAttribute("data-"+this.config.dialpad_server_key+"channelid",this.config.dialpad_channel_id),n.setAttribute("data-"+this.config.dialpad_server_key+"embedded","true"),n.setAttribute("data-"+this.config.dialpad_server_key+"guest",r),n.setAttribute("data-"+this.config.dialpad_server_key+"provemail",this.config.dialpad_provemail),n.setAttribute("data-"+this.config.dialpad_server_key+"deviceid",this.config.device_id),n.setAttribute("data-"+this.config.dialpad_server_key+"position",this.dialpadPosition),o){var s=null!==(e="customer.session.email="+o.email)&&void 0!==e?e:null;s+=null!==(t=",customer.session.phone="+o.phone)&&void 0!==t?t:null,s+=null!==(i=",customer.session.name="+o.first_name+" "+o.last_name)&&void 0!==i?i:null,s+=",customer.session.authenticated=true",n.setAttribute("data-"+this.config.dialpad_server_key+"wfvars",s)}return a.appendChild(n),"dx"!==this.config.dialpad_server_key?n:a},e}();t.DialpadModel=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EngagementDataEntity=void 0;var n=i(7),o=i(8),r=i(0),a=function(){function e(){}return e.prototype.prepareData=function(e){this.sdeData=e},e.prototype.push=function(){var e=this;void 0!==window.lpTag.sdes&&this.sdeData.events.forEach((function(t){var i={};switch(t){case"personal":i=(new n.PersonalSDEModel).exchangeData(e.sdeData.data);break;case"ctmrinfo":i=(new o.CustomerInfoSDEModel).exchangeData(e.sdeData.data)}r.LivePersonTagService.sdesSend(i)}))},e}();t.EngagementDataEntity=a},function(e,t,i){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.PersonalSDEModel=void 0;var n=function(){function e(){}return e.prototype.exchangeData=function(e){return{type:"personal",personal:{firstname:e.first_name,lastname:e.last_name,contacts:[{email:e.email}]}}},e}();t.PersonalSDEModel=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CustomerInfoSDEModel=void 0;var n=function(){function e(){}return e.prototype.exchangeData=function(e){return{type:"ctmrinfo",info:{customerId:e.customer_id}}},e}();t.CustomerInfoSDEModel=n}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.