MediaWiki:Citizen.js: Difference between revisions
MediaWiki interface page
(Created page with "src='https://service.force.com/embeddedservice/5.0/esw.min.js' var initESW = function(gslbBaseURL) { embedded_svc.settings.displayHelpButton = true; //Or false embedded_svc.settings.language = ''; //For example, enter 'en' or 'en-US' //embedded_svc.settings.defaultMinimizedText = '...'; //(Defaults to Chat with an Expert) //embedded_svc.settings.disabledMinimizedText = '...'; //(Defaults to Agent Offline) //embedded_svc.setting...") |
No edit summary |
||
| Line 19: | Line 19: | ||
embedded_svc.init( | embedded_svc.init( | ||
'https://fishbowl.my.salesforce.com', | 'https://fishbowl.my.salesforce.com', | ||
'https://fishbowlinventory | 'https://help.fishbowlinventory.com', | ||
gslbBaseURL, | gslbBaseURL, | ||
'00D1I000002KVUd', | '00D1I000002KVUd', | ||
Latest revision as of 12:02, 3 October 2022
src='https://service.force.com/embeddedservice/5.0/esw.min.js'
var initESW = function(gslbBaseURL) {
embedded_svc.settings.displayHelpButton = true; //Or false
embedded_svc.settings.language = ''; //For example, enter 'en' or 'en-US'
//embedded_svc.settings.defaultMinimizedText = '...'; //(Defaults to Chat with an Expert)
//embedded_svc.settings.disabledMinimizedText = '...'; //(Defaults to Agent Offline)
//embedded_svc.settings.loadingText = ''; //(Defaults to Loading)
//embedded_svc.settings.storageDomain = 'yourdomain.com'; //(Sets the domain for your deployment so that visitors can navigate subdomains during a chat session)
// Settings for Chat
//embedded_svc.settings.directToButtonRouting = function(prechatFormData) {
// Dynamically changes the button ID based on what the visitor enters in the pre-chat form.
// Returns a valid button ID.
//};
//embedded_svc.settings.prepopulatedPrechatFields = {}; //Sets the auto-population of pre-chat form fields
//embedded_svc.settings.fallbackRouting = []; //An array of button IDs, user IDs, or userId_buttonId
//embedded_svc.settings.offlineSupportMinimizedText = '...'; //(Defaults to Contact Us)
embedded_svc.settings.enabledFeatures = ['LiveAgent'];
embedded_svc.settings.entryFeature = 'LiveAgent';
embedded_svc.init(
'https://fishbowl.my.salesforce.com',
'https://help.fishbowlinventory.com',
gslbBaseURL,
'00D1I000002KVUd',
'Support_Chat_Team',
{
baseLiveAgentContentURL: 'https://c.la5-c1-ia5.salesforceliveagent.com/content',
deploymentId: '5728W000000UI7U',
buttonId: '5738W000000UG9K',
baseLiveAgentURL: 'https://d.la5-c1-ia5.salesforceliveagent.com/chat',
eswLiveAgentDevName: 'Support_Chat_Team',
isOfflineSupportEnabled: true
}
);
};
if (!window.embedded_svc) {
var s = document.createElement('script');
s.setAttribute('src', 'https://fishbowl.my.salesforce.com/embeddedservice/5.0/esw.min.js');
s.onload = function() {
initESW(null);
};
document.body.appendChild(s);
} else {
initESW('https://service.force.com');
}