1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
17 // *************************************************************************
18 var _0x539a=['emit','removeListener','register','length','./chatWebsite.events'];(function(_0x32a9a4,_0x317aa6){var _0x359331=function(_0x1665d3){while(--_0x1665d3){_0x32a9a4['push'](_0x32a9a4['shift']());}};_0x359331(++_0x317aa6);}(_0x539a,0xa4));var _0xa539=function(_0x665df8,_0x2ac5d3){_0x665df8=_0x665df8-0x0;var _0x1cec2f=_0x539a[_0x665df8];return _0x1cec2f;};'use strict';var ChatWebsiteEvents=require(_0xa539('0x0'));var events=['save','remove','update'];function createListener(_0x32ba63,_0x17f461){return function(_0x1628f8){_0x17f461[_0xa539('0x1')](_0x32ba63,_0x1628f8);};}function removeListener(_0x41bf48,_0x17f995){return function(){ChatWebsiteEvents[_0xa539('0x2')](_0x41bf48,_0x17f995);};}exports[_0xa539('0x3')]=function(_0x1f396f){for(var _0x126f04=0x0,_0x1f63a3=events[_0xa539('0x4')];_0x126f04<_0x1f63a3;_0x126f04++){var _0x3ff2d1=events[_0x126f04];var _0x543776=createListener('chatWebsite:'+_0x3ff2d1,_0x1f396f);ChatWebsiteEvents['on'](_0x3ff2d1,_0x543776);}};