/* eslint-disable */ // *************************************************************** // This file wraps the Salesforce generated code. // See the comment below for where you need to paste in the Salesforce generated code. // You may also need to modify the script tag src located in salesforce-webchat.vue to point to the correct Salesforce instance. // *************************************************************** function setupCustomSettings( modifyEmbeddedSvcCallback, finishedLoadingCallback, onWebchatOpenCallback, onWebchatCloseCallback ) { modifyEmbeddedSvcCallback(); window.addEventListener("onEmbeddedMessagingButtonCreated", finishedLoadingCallback); window.addEventListener("onEmbeddedMessagingWindowMaximized", onWebchatOpenCallback); window.addEventListener("onEmbeddedMessagingWindowClosed", onWebchatCloseCallback); } export function initializeSalesforceWebchatForSys( modifyEmbeddedSvcCallback, finishedLoadingCallback, onWebchatOpenCallback, onWebchatCloseCallback ) { setupCustomSettings( modifyEmbeddedSvcCallback, finishedLoadingCallback, onWebchatOpenCallback, onWebchatCloseCallback ); // START OF SALESFORCE GENERATED CODE // Copy in the contents of the first