Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var __lc = {};
- __lc.license = 2206881;
- function initializeRetailChat(country) {
- // Countries that should display the UK Lead Gen chat room
- var UKChatCountries = ["GB", "CH", "FR", "ES", "IE", "DE", "AT", "AE", "SA", "ZA"];
- var NAChatCountries = ["US", "CA", "MX"];
- switch (window.location.pathname) {
- case '/support/retail/':
- __lc.group = 8;
- break;
- case '/support/onsite/':
- __lc.group = 3;
- break;
- case '/support/restaurant/':
- __lc.group = 9;
- break;
- case '/support/':
- __lc.group = undefined;
- break;
- default:
- if ($.inArray(country, UKChatCountries)) {
- // Lead Gen UK (renamed to Lead Gen UK - London): 12
- __lc.group = 12;
- }
- else if ($.inArray(country, NAChatCountries)) {
- // Lead Gen (Lead Gen NA): 1
- __lc.group = 1;
- } else {
- // Lead Gen Europe (renamed to Lead Gen Benelux - Ghent): 10
- __lc.group = 10;
- }
- break;
- }
- }
- initializeRetailChat('GB');
- if (typeof __lc.group !== "undefined")
- {
- var lc = document.createElement('script');
- lc.type = 'text/javascript';
- lc.async = true;
- lc.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'cdn.livechatinc.com/tracking.js';
- var s = document.getElementsByTagName('script')[0];
- s.parentNode.insertBefore(lc, s);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement