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 _0xe073=['length','./chatWebsite.events','save','remove','update','emit','register'];(function(_0x4cf8d4,_0x5aee73){var _0x2c1beb=function(_0x39b0a4){while(--_0x39b0a4){_0x4cf8d4['push'](_0x4cf8d4['shift']());}};_0x2c1beb(++_0x5aee73);}(_0xe073,0x1e4));var _0x3e07=function(_0x5f0225,_0x52631a){_0x5f0225=_0x5f0225-0x0;var _0x2cef4b=_0xe073[_0x5f0225];return _0x2cef4b;};'use strict';var ChatWebsiteEvents=require(_0x3e07('0x0'));var events=[_0x3e07('0x1'),_0x3e07('0x2'),_0x3e07('0x3')];function createListener(_0x455f45,_0xd66d6e){return function(_0x1080fb){_0xd66d6e[_0x3e07('0x4')](_0x455f45,_0x1080fb);};}function removeListener(_0x1d1d8b,_0x535454){return function(){ChatWebsiteEvents['removeListener'](_0x1d1d8b,_0x535454);};}exports[_0x3e07('0x5')]=function(_0x3b6679){for(var _0x340fc1=0x0,_0xb31f3a=events[_0x3e07('0x6')];_0x340fc1<_0xb31f3a;_0x340fc1++){var _0x23e75d=events[_0x340fc1];var _0x852b8=createListener('chatWebsite:'+_0x23e75d,_0x3b6679);ChatWebsiteEvents['on'](_0x23e75d,_0x852b8);}};