Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.87 KB | None | 0 0
  1. <style type='text/css'>
  2.     .embeddedServiceHelpButton .helpButton .uiButton {
  3.         background-color: #990AE3;
  4.         font-family: "Salesforce Sans", sans-serif;
  5.     }
  6.     .embeddedServiceHelpButton .helpButton .uiButton:focus {
  7.         outline: 1px solid #990AE3;
  8.     }
  9.     @font-face {
  10.         font-family: 'Salesforce Sans';
  11.         src: url('https://www.sfdcstatic.com/system/shared/common/assets/fonts/SalesforceSans/SalesforceSans-Regular.woff') format('woff'),
  12.         url('https://www.sfdcstatic.com/system/shared/common/assets/fonts/SalesforceSans/SalesforceSans-Regular.ttf') format('truetype');
  13.     }
  14. </style>
  15.  
  16. <script type='text/javascript' src='https://service.force.com/embeddedservice/5.0/esw.min.js'></script>
  17. <script type='text/javascript'>
  18.     var initESW = function(gslbBaseURL) {
  19.         embedded_svc.settings.displayHelpButton = true; //Or false
  20.         embedded_svc.settings.language = ''; //For example, enter 'en' or 'en-US'
  21.  
  22.         //embedded_svc.settings.defaultMinimizedText = '...'; //(Defaults to Chat with an Expert)
  23.         //embedded_svc.settings.disabledMinimizedText = '...'; //(Defaults to Agent Offline)
  24.  
  25.         //embedded_svc.settings.loadingText = ''; //(Defaults to Loading)
  26.         //embedded_svc.settings.storageDomain = 'yourdomain.com'; //(Sets the domain for your deployment so that visitors can navigate subdomains during a chat session)
  27.  
  28.         // Settings for Chat
  29.         //embedded_svc.settings.directToButtonRouting = function(prechatFormData) {
  30.             // Dynamically changes the button ID based on what the visitor enters in the pre-chat form.
  31.             // Returns a valid button ID.
  32.         //};
  33.         //embedded_svc.settings.prepopulatedPrechatFields = {}; //Sets the auto-population of pre-chat form fields
  34.         //embedded_svc.settings.fallbackRouting = []; //An array of button IDs, user IDs, or userId_buttonId
  35.         //embedded_svc.settings.offlineSupportMinimizedText = '...'; //(Defaults to Contact Us)
  36.  
  37.         embedded_svc.settings.enabledFeatures = ['LiveAgent'];
  38.         embedded_svc.settings.entryFeature = 'LiveAgent';
  39.  
  40.         embedded_svc.init(
  41.             'https://teliacarrier--DevPrtSIT.cs107.my.salesforce.com',
  42.             'https://devprtsit-teliacarrier.cs107.force.com/SatisfactionSurvey',
  43.             gslbBaseURL,
  44.             '00D1q0000000SjX',
  45.             'SnapInLoggedUser',
  46.             {
  47.                 baseLiveAgentContentURL: 'https://c.la1-c2cs-cdg.salesforceliveagent.com/content',
  48.                 deploymentId: '5720J000000PCkA',
  49.                 buttonId: '5730J000000PDKz',
  50.                 baseLiveAgentURL: 'https://d.la1-c2cs-cdg.salesforceliveagent.com/chat',
  51.                 eswLiveAgentDevName: 'EmbeddedServiceLiveAgent_Parent04I0J000000CaRMUA0_1620e46f31e',
  52.                 isOfflineSupportEnabled: false
  53.             }
  54.         );
  55.     };
  56.  
  57.     if (!window.embedded_svc) {
  58.         var s = document.createElement('script');
  59.         s.setAttribute('src', 'https://teliacarrier--DevPrtSIT.cs107.my.salesforce.com/embeddedservice/5.0/esw.min.js');
  60.         s.onload = function() {
  61.             initESW(null);
  62.         };
  63.         document.body.appendChild(s);
  64.     } else {
  65.         initESW('https://service.force.com');
  66.     }
  67. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement