Hi guys
I am trying to make a sample for the new Widgets and trying to understand this LazyLoad method.
I added and modified the script provided at the docs
<script src="widgets/cxbus.min.js" onload="javascript:CXBus.configure({debug:true,pluginsPath:'plugins/'});CXBus.loadFile('widgets.config.js').done(function(){CXBus.loadPlugin('widgets-core')});"></script>
So at widgets.config.js I put the launcher.html output.
Also added the script
<script>
if(!window._genesys)window._genesys = {};
if(!window._gt)window._gt = [];
window._genesys.widgets = {
main: {},
webchat: {}
};
Before everything else.
Yet, doesn’t seems to work…any clue what I may be missing or how does this is supposed to work?