/*eGain Chat server */ var egainDockChat = egainDockChat || {}; egainDockChat.serverURL = "https://reneceweb-ext.ren.ccc.bt.com/system"; /*eGain Chat Entry Point*/ egainDockChat.EntryPointId = "1007"; /*eGain Chat Locale*/ egainDockChat.Locale = "en-US"; /*eGain template name*/ egainDockChat.Template = "EHR"; /*Set to true to enable posting attributes to templates*/ egainDockChat.PostChatAttributes = false; egainDockChat.IntegratedEntryPoint = "true"; /*eGain video chat parameters */ egainDockChat.VChatParams = egainDockChat.VChatParams + '&wsname='+ window.top.location.origin; /*Set to true if custom button is used to launch docked chat */ egainDockChat.UseCustomButton=true; /*Method to set customer Parameters. To be called by client website. All the parameters specified in application-chat-defaults must be set here.*/ egainDockChat.SetCustomerParameters = function (egainAttributeName, attributeValue) { if(!egainDockChat.SetParameter){ egainDockChat.CallQueue = egainDockChat.CallQueue || []; egainDockChat.CallQueue.push({name:'SetParameter', args:[egainAttributeName,attributeValue]}); }else{ egainDockChat.SetParameter(egainAttributeName,attributeValue); } }; /* Method to be called on click of custom button to launch chat in docked mode */ egainDockChat.openHelp = function(){ egainDockChat.IsChatLaunched = true; startChat(); } if(!egainDockChat.UseCustomButton){ startChat(); } function startChat(){ if(!egainDockChat.launchChat){ alert('cookies need to be enabled to use this feature'); egainDockChat.CallQueue = egainDockChat.CallQueue || []; egainDockChat.CallQueue.push({name:'launchChat', args:[]}); }else{ egainDockChat.launchChat();
} }