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 _0x304c=['removeListener','register','length','chatGroup:','save','remove','update','emit'];(function(_0x4e364c,_0x32af6b){var _0x213b5b=function(_0x56434e){while(--_0x56434e){_0x4e364c['push'](_0x4e364c['shift']());}};_0x213b5b(++_0x32af6b);}(_0x304c,0x154));var _0xc304=function(_0x1c16e5,_0x297035){_0x1c16e5=_0x1c16e5-0x0;var _0x38de4e=_0x304c[_0x1c16e5];return _0x38de4e;};'use strict';var ChatGroupEvents=require('./chatGroup.events');var events=[_0xc304('0x0'),_0xc304('0x1'),_0xc304('0x2')];function createListener(_0x3fce8f,_0x3c4c93){return function(_0x5bb45d){_0x3c4c93[_0xc304('0x3')](_0x3fce8f,_0x5bb45d);};}function removeListener(_0x2da327,_0x149f03){return function(){ChatGroupEvents[_0xc304('0x4')](_0x2da327,_0x149f03);};}exports[_0xc304('0x5')]=function(_0x2067e){for(var _0x30ad9f=0x0,_0xd40177=events[_0xc304('0x6')];_0x30ad9f<_0xd40177;_0x30ad9f++){var _0x4805fb=events[_0x30ad9f];var _0x59cca9=createListener(_0xc304('0x7')+_0x4805fb,_0x2067e);ChatGroupEvents['on'](_0x4805fb,_0x59cca9);}};