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 _0x74ab=['save','remove','update','emit','removeListener','length'];(function(_0xf91841,_0x182ae3){var _0x4b9c44=function(_0x2e216e){while(--_0x2e216e){_0xf91841['push'](_0xf91841['shift']());}};_0x4b9c44(++_0x182ae3);}(_0x74ab,0x114));var _0xb74a=function(_0x3dcc46,_0xa5335e){_0x3dcc46=_0x3dcc46-0x0;var _0x4ef9a7=_0x74ab[_0x3dcc46];return _0x4ef9a7;};'use strict';var ChatGroupEvents=require('./chatGroup.events');var events=[_0xb74a('0x0'),_0xb74a('0x1'),_0xb74a('0x2')];function createListener(_0x49baba,_0x421cda){return function(_0x4b2361){_0x421cda[_0xb74a('0x3')](_0x49baba,_0x4b2361);};}function removeListener(_0xfb6e08,_0x16797a){return function(){ChatGroupEvents[_0xb74a('0x4')](_0xfb6e08,_0x16797a);};}exports['register']=function(_0x4ae37e){for(var _0x404f39=0x0,_0x6cea38=events[_0xb74a('0x5')];_0x404f39<_0x6cea38;_0x404f39++){var _0x386170=events[_0x404f39];var _0x318476=createListener('chatGroup:'+_0x386170,_0x4ae37e);ChatGroupEvents['on'](_0x386170,_0x318476);}};