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 _0x42cf=['register','length','chatGroup:','./chatGroup.events','remove','emit','removeListener'];(function(_0x5c6b9a,_0x38c3fa){var _0x5d11a5=function(_0x14a76f){while(--_0x14a76f){_0x5c6b9a['push'](_0x5c6b9a['shift']());}};_0x5d11a5(++_0x38c3fa);}(_0x42cf,0xa4));var _0xf42c=function(_0x5f309e,_0x66e31){_0x5f309e=_0x5f309e-0x0;var _0x487b5e=_0x42cf[_0x5f309e];return _0x487b5e;};'use strict';var ChatGroupEvents=require(_0xf42c('0x0'));var events=['save',_0xf42c('0x1'),'update'];function createListener(_0x3ae36d,_0x15e914){return function(_0x162931){_0x15e914[_0xf42c('0x2')](_0x3ae36d,_0x162931);};}function removeListener(_0x4d15dc,_0x592f3d){return function(){ChatGroupEvents[_0xf42c('0x3')](_0x4d15dc,_0x592f3d);};}exports[_0xf42c('0x4')]=function(_0x3ff5d7){for(var _0x1d7e20=0x0,_0x58eac0=events[_0xf42c('0x5')];_0x1d7e20<_0x58eac0;_0x1d7e20++){var _0x5e6432=events[_0x1d7e20];var _0x3203b5=createListener(_0xf42c('0x6')+_0x5e6432,_0x3ff5d7);ChatGroupEvents['on'](_0x5e6432,_0x3203b5);}};