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 _0x4976=['emit','register','length','./chatWebsite.events','save'];(function(_0x119da2,_0x8c8283){var _0x35d362=function(_0x515970){while(--_0x515970){_0x119da2['push'](_0x119da2['shift']());}};_0x35d362(++_0x8c8283);}(_0x4976,0xa8));var _0x6497=function(_0x4a81cf,_0x2adbef){_0x4a81cf=_0x4a81cf-0x0;var _0x4c99ca=_0x4976[_0x4a81cf];return _0x4c99ca;};'use strict';var ChatWebsiteEvents=require(_0x6497('0x0'));var events=[_0x6497('0x1'),'remove','update'];function createListener(_0x41af48,_0x589ddb){return function(_0x5ba197){_0x589ddb[_0x6497('0x2')](_0x41af48,_0x5ba197);};}function removeListener(_0x459d77,_0x509488){return function(){ChatWebsiteEvents['removeListener'](_0x459d77,_0x509488);};}exports[_0x6497('0x3')]=function(_0x5ce219){for(var _0x21b609=0x0,_0x4ed0c2=events[_0x6497('0x4')];_0x21b609<_0x4ed0c2;_0x21b609++){var _0x5c2982=events[_0x21b609];var _0x4220ae=createListener('chatWebsite:'+_0x5c2982,_0x5ce219);ChatWebsiteEvents['on'](_0x5c2982,_0x4220ae);}};