Enable/Disable Livechat application

Updated 

sprChat('disable')

This will disable the live chat service completely - user will not be able to see anything on the screen and no SDK commands will then be executed. Please note this does not change session/user and everything is preserved.

window.sprChat('disable');

sprChat('enable')

This will enable the live chat service and the user can see the live chat widget on screen, provided all the other visibility conditions configured in the application builder are satisfied as well.

window.sprChat('enable');


sprChat('updateLocale')

This will update the live chat locale for the users.

window.sprChat('updateLocale', 'ar');

ar is for Arabic in the above SDK.