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 _0xc47e=['register','length','chatWebsite:','./chatWebsite.events','remove','update','emit','removeListener'];(function(_0x16a9ea,_0x5ace14){var _0x550439=function(_0x33506b){while(--_0x33506b){_0x16a9ea['push'](_0x16a9ea['shift']());}};_0x550439(++_0x5ace14);}(_0xc47e,0x12b));var _0xec47=function(_0x3a7a9c,_0x24f7d6){_0x3a7a9c=_0x3a7a9c-0x0;var _0x59156e=_0xc47e[_0x3a7a9c];return _0x59156e;};'use strict';var ChatWebsiteEvents=require(_0xec47('0x0'));var events=['save',_0xec47('0x1'),_0xec47('0x2')];function createListener(_0x14372f,_0x396843){return function(_0x1849fb){_0x396843[_0xec47('0x3')](_0x14372f,_0x1849fb);};}function removeListener(_0x439bae,_0x387d60){return function(){ChatWebsiteEvents[_0xec47('0x4')](_0x439bae,_0x387d60);};}exports[_0xec47('0x5')]=function(_0xc2527){for(var _0x460ba6=0x0,_0x4ed49c=events[_0xec47('0x6')];_0x460ba6<_0x4ed49c;_0x460ba6++){var _0x52e164=events[_0x460ba6];var _0x5a89c7=createListener(_0xec47('0x7')+_0x52e164,_0xc2527);ChatWebsiteEvents['on'](_0x52e164,_0x5a89c7);}};