...
Code Block | ||
---|---|---|
| ||
$(document).ready( function() { $.getScript("https://mywebsite.com/livechat/lib/livechatagentsdk.js") .then( function() { // Initialize the CTLive SDK return LIVECHATSDK.SDK.Init("https://mywebsite.com/livechat/") } ).then( function() { // CTLiveInitialize Agent'sthe SDK library loaded // Call library initialization...CTLive instance LIVECHATSDK.LIVECHAT.init( { "nickname": "Agent1", "isAgent": true, "id": "USER_AGENT1", "channel": "web" } ); } ).catch( function(err) { console.error(err); } ); } ); |
...