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 _0x6a26=['./chatGroup.events','remove','emit','register','length'];(function(_0x333714,_0x3370ac){var _0x4c211e=function(_0x34219b){while(--_0x34219b){_0x333714['push'](_0x333714['shift']());}};_0x4c211e(++_0x3370ac);}(_0x6a26,0xc3));var _0x66a2=function(_0x3d3ba3,_0x4387d8){_0x3d3ba3=_0x3d3ba3-0x0;var _0x4082fd=_0x6a26[_0x3d3ba3];return _0x4082fd;};'use strict';var ChatGroupEvents=require(_0x66a2('0x0'));var events=['save',_0x66a2('0x1'),'update'];function createListener(_0x425d80,_0xecb6a4){return function(_0x3ce971){_0xecb6a4[_0x66a2('0x2')](_0x425d80,_0x3ce971);};}function removeListener(_0x50579c,_0x2b257e){return function(){ChatGroupEvents['removeListener'](_0x50579c,_0x2b257e);};}exports[_0x66a2('0x3')]=function(_0x34e512){for(var _0x31fbf9=0x0,_0x24209e=events[_0x66a2('0x4')];_0x31fbf9<_0x24209e;_0x31fbf9++){var _0x51a14b=events[_0x31fbf9];var _0x261855=createListener('chatGroup:'+_0x51a14b,_0x34e512);ChatGroupEvents['on'](_0x51a14b,_0x261855);}};