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 _0xda60=['save','update','emit','register','chatGroup:','./chatGroup.events'];(function(_0xf46f5f,_0x3be12f){var _0x465a17=function(_0x30a2a3){while(--_0x30a2a3){_0xf46f5f['push'](_0xf46f5f['shift']());}};_0x465a17(++_0x3be12f);}(_0xda60,0x167));var _0x0da6=function(_0x9f0bdf,_0x14e6ca){_0x9f0bdf=_0x9f0bdf-0x0;var _0x523eca=_0xda60[_0x9f0bdf];return _0x523eca;};'use strict';var ChatGroupEvents=require(_0x0da6('0x0'));var events=[_0x0da6('0x1'),'remove',_0x0da6('0x2')];function createListener(_0x35eb65,_0x24ee48){return function(_0x4555db){_0x24ee48[_0x0da6('0x3')](_0x35eb65,_0x4555db);};}function removeListener(_0x375f9e,_0x29a905){return function(){ChatGroupEvents['removeListener'](_0x375f9e,_0x29a905);};}exports[_0x0da6('0x4')]=function(_0x4d5119){for(var _0x454f72=0x0,_0x217163=events['length'];_0x454f72<_0x217163;_0x454f72++){var _0x371757=events[_0x454f72];var _0x45ce53=createListener(_0x0da6('0x5')+_0x371757,_0x4d5119);ChatGroupEvents['on'](_0x371757,_0x45ce53);}};