Hi there!
Faced with some issues updating widgets.min.js
Currently, site using version: 8.5.005.08 and I wanted to update to 9.0.016.07
we have custom form and opening chat using command :
window._genesys.widgets.bus.command("WebChat.open", busCommandData);
after deployed updated version of widgets.min.js WebChat window is not opening at all - not html of chat window in DOM. But in network I found that customer chat request was 200 OK and chat session started.
Tried another ways to start chat like this :
var customPlugin = CXBus.registerPlugin('Custom');
customPlugin.command("WebChat.open", busCommandData);
Are you sure your question is for the PureCloud platform? Given the version you referenced (8.5.005.08), it seems like it is for PureEngage, as I think Widgets did not support PureCloud Chat at that time.
Regarding lazy-loading and all-in-one approach.
The all-in-one method (what you are using with widgets.min.js) is deprecated. It is still available and the recommendation is that you SHOULD update your code to leverage that approach (lazy-loading).
It is not yet a MUST update to lazy-loading as all-in-one is still available.
But there might be an end of date/life for all-in-one in the near future.
See here for info on lazy-loading and all-in-one: https://all.docs.genesys.com/WID/Current/Developer/GWCDeployment
Regarding your integration (with all-in-one approach).
You probably have to check the docs and update certain parts of your code - I can't say as I don't know what you have written.
The version of the script (8.5.005.08) you are using is already 3 years old - so there have been modifications made to the widgets code and methods since that version.
There could be some customization you made (apart from the call to WebChat.open command) which are incompatible with the latest version.
You can check in your console logs (chrome browser - developer tools) to see if an error is raised while loading the widgets and your customization.
Such as window._genesys.widgets.bus which is I think not available anymore.
You can leverage CXBus (global variable) to call a command, store a reference to QuickBus (on window._genesys.widgets.onReady = function (QuickBus) definition), or use QuickBus/CXBus to register a plugin and call the command from there).
The structure of configuration may also have changed (new options/deprecated options in webchat configuration).
See here for details: https://all.docs.genesys.com/WID/Current/Developer/GWCConfig
Here: https://all.docs.genesys.com/WID/Current/SDK
And here: https://all.docs.genesys.com/WID/Current/Developer
found that my problem was in that:
in custom markup we used some classes as cx-widget etc., like a standard widget's classes - so when I changes that classes widget started to work
Thank you all for answers,
this should be closed as resolved