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 _0x06af=['register','length','chatGroup:','save','remove','update','emit','removeListener'];(function(_0x5e94e4,_0x32f8ee){var _0x59b607=function(_0x1f9d6e){while(--_0x1f9d6e){_0x5e94e4['push'](_0x5e94e4['shift']());}};_0x59b607(++_0x32f8ee);}(_0x06af,0x19b));var _0xf06a=function(_0x1ce601,_0x6c8314){_0x1ce601=_0x1ce601-0x0;var _0x3e3e36=_0x06af[_0x1ce601];return _0x3e3e36;};'use strict';var ChatGroupEvents=require('./chatGroup.events');var events=[_0xf06a('0x0'),_0xf06a('0x1'),_0xf06a('0x2')];function createListener(_0x3148ed,_0x4df3cd){return function(_0x25aed8){_0x4df3cd[_0xf06a('0x3')](_0x3148ed,_0x25aed8);};}function removeListener(_0x5ba736,_0x2739e1){return function(){ChatGroupEvents[_0xf06a('0x4')](_0x5ba736,_0x2739e1);};}exports[_0xf06a('0x5')]=function(_0x5bb196){for(var _0x4038ea=0x0,_0x2926c6=events[_0xf06a('0x6')];_0x4038ea<_0x2926c6;_0x4038ea++){var _0x41793d=events[_0x4038ea];var _0x53ae30=createListener(_0xf06a('0x7')+_0x41793d,_0x5bb196);ChatGroupEvents['on'](_0x41793d,_0x53ae30);}};