Notice: Firmware Links Under Maintenance We are currently undergoing maintenance on all firmware links. If any links are inaccessible, please email or contact Tech Support for the firmware. We appreciate your patience during the maintenance, thank you for your understanding.

Difference between revisions of "Test LiveChat2"

(DNA-LiveChat)
 
Line 1: Line 1:
 
=Live Chat Test 2=
 
=Live Chat Test 2=
 
==DNA-LiveChat==
 
==DNA-LiveChat==
 +
==Meta==
 +
<html><meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1"></html>
 +
==Code==
 
<html>
 
<html>
<img id="liveagent_button_online_5730K0000004Hue" style="display: none; border: 0px none; cursor: pointer" onclick="liveagent.startChat('5730K0000004Hue')" src="https://na3-dahuasecurity.cs72.force.com/LiveChat/resource/1531547934000/LiveChatChatWithUs" /><img id="liveagent_button_offline_5730K0000004Hue" style="display: none; border: 0px none; " src="https://na3-dahuasecurity.cs72.force.com/LiveChat/resource/1531547934000/LiveChatOffline" />
+
<style type='text/css'>
<script type="text/javascript">
+
.embeddedServiceHelpButton .helpButton .uiButton { background-color: #005290; font-family: "Salesforce Sans", sans-serif; }
if (!window._laq) { window._laq = []; }
+
.embeddedServiceHelpButton .helpButton .uiButton:focus { outline: 1px solid #005290; }
window._laq.push(function(){liveagent.showWhenOnline('5730K0000004Hue', document.getElementById('liveagent_button_online_5730K0000004Hue'));
+
@font-face {
liveagent.showWhenOffline('5730K0000004Hue', document.getElementById('liveagent_button_offline_5730K0000004Hue'));
+
font-family: 'Salesforce Sans';
});</script>
+
src: url('https://www.sfdcstatic.com/system/shared/common/assets/fonts/SalesforceSans/SalesforceSans-Regular.woff') format('woff'),
 +
url('https://www.sfdcstatic.com/system/shared/common/assets/fonts/SalesforceSans/SalesforceSans-Regular.ttf') format('truetype');
 +
}
 +
</style>
  
  <!--Deployment Code-->
+
<script type='text/javascript' src='https://service.force.com/embeddedservice/5.0/esw.min.js'></script>
<script type='text/javascript' src='https://c.la1-c1cs-hnd.salesforceliveagent.com/content/g/js/43.0/deployment.js'></script>
 
 
<script type='text/javascript'>
 
<script type='text/javascript'>
liveagent.init('https://d.la1-c1cs-hnd.salesforceliveagent.com/chat', '5720K000000L4V7', '00D5D0000008t3B');
+
var initESW = function(gslbBaseURL) {
</script>
+
embedded_svc.settings.displayHelpButton = true; //Or false
</script></html>
+
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 Live Agent
 +
//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://dahuatech--NA3.my.salesforce.com', 'https://na3-dahuasecurity.cs72.force.com/LiveChat', gslbBaseURL, '00D5D0000008t3B', 'DNA_LiveChat2', { baseLiveAgentContentURL: 'https://c.la1-c1cs-hnd.salesforceliveagent.com/content', deploymentId: '5720K000000L4V7', buttonId: '5730K0000004Hue', baseLiveAgentURL: 'https://d.la1-c1cs-hnd.salesforceliveagent.com/chat', eswLiveAgentDevName: 'EmbeddedServiceLiveAgent_Parent04I5D000000001TUAQ_165b0469a34', isOfflineSupportEnabled: false}); };if (!window.embedded_svc) { var s = document.createElement('script'); s.setAttribute('src', 'https://dahuatech--NA3.my.salesforce.com/embeddedservice/5.0/esw.min.js'); s.onload = function() { initESW(null); }; document.body.appendChild(s); } else { initESW('https://service.force.com'); }</script>
 +
</html>

Latest revision as of 19:07, 6 September 2018

Live Chat Test 2

DNA-LiveChat

Meta

Code