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 _0x1a74=['remove','update','emit','removeListener','register','length','chatGroup:','./chatGroup.events'];(function(_0x32c154,_0xfd915b){var _0x43a11a=function(_0x4e170c){while(--_0x4e170c){_0x32c154['push'](_0x32c154['shift']());}};_0x43a11a(++_0xfd915b);}(_0x1a74,0x1a7));var _0x41a7=function(_0x3b5dc7,_0x3994fe){_0x3b5dc7=_0x3b5dc7-0x0;var _0x3182cd=_0x1a74[_0x3b5dc7];return _0x3182cd;};'use strict';var ChatGroupEvents=require(_0x41a7('0x0'));var events=['save',_0x41a7('0x1'),_0x41a7('0x2')];function createListener(_0x23eb30,_0x43e1ef){return function(_0x358cea){_0x43e1ef[_0x41a7('0x3')](_0x23eb30,_0x358cea);};}function removeListener(_0x24afa4,_0x16994c){return function(){ChatGroupEvents[_0x41a7('0x4')](_0x24afa4,_0x16994c);};}exports[_0x41a7('0x5')]=function(_0x15f094){for(var _0x272f1c=0x0,_0x46ddb6=events[_0x41a7('0x6')];_0x272f1c<_0x46ddb6;_0x272f1c++){var _0x57ee14=events[_0x272f1c];var _0x37a56c=createListener(_0x41a7('0x7')+_0x57ee14,_0x15f094);ChatGroupEvents['on'](_0x57ee14,_0x37a56c);}};