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 _0x36fd=['emit','removeListener','register','chatGroup:','./chatGroup.events','save','remove','update'];(function(_0x35b7d4,_0x5a5c43){var _0x4e8cee=function(_0x66859c){while(--_0x66859c){_0x35b7d4['push'](_0x35b7d4['shift']());}};_0x4e8cee(++_0x5a5c43);}(_0x36fd,0xfc));var _0xd36f=function(_0x226de1,_0xa5a217){_0x226de1=_0x226de1-0x0;var _0x5cff00=_0x36fd[_0x226de1];return _0x5cff00;};'use strict';var ChatGroupEvents=require(_0xd36f('0x0'));var events=[_0xd36f('0x1'),_0xd36f('0x2'),_0xd36f('0x3')];function createListener(_0x1344c1,_0x2d8c6b){return function(_0xea8bf3){_0x2d8c6b[_0xd36f('0x4')](_0x1344c1,_0xea8bf3);};}function removeListener(_0x30f5ba,_0x3c4e51){return function(){ChatGroupEvents[_0xd36f('0x5')](_0x30f5ba,_0x3c4e51);};}exports[_0xd36f('0x6')]=function(_0x441fe){for(var _0x423364=0x0,_0x2b79b3=events['length'];_0x423364<_0x2b79b3;_0x423364++){var _0x3e90af=events[_0x423364];var _0x305ab3=createListener(_0xd36f('0x7')+_0x3e90af,_0x441fe);ChatGroupEvents['on'](_0x3e90af,_0x305ab3);}};