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 _0x463a=['register','length','chatGroup:','save','remove','update'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0x463a,0x1b3));var _0xa463=function(_0x18a79d,_0x57bd2c){_0x18a79d=_0x18a79d-0x0;var _0x4f8848=_0x463a[_0x18a79d];return _0x4f8848;};'use strict';var ChatGroupEvents=require('./chatGroup.events');var events=[_0xa463('0x0'),_0xa463('0x1'),_0xa463('0x2')];function createListener(_0x71c507,_0xa02da){return function(_0x35ddcd){_0xa02da['emit'](_0x71c507,_0x35ddcd);};}function removeListener(_0xd587e2,_0x532562){return function(){ChatGroupEvents['removeListener'](_0xd587e2,_0x532562);};}exports[_0xa463('0x3')]=function(_0x1fd56b){for(var _0x419efc=0x0,_0x35b634=events[_0xa463('0x4')];_0x419efc<_0x35b634;_0x419efc++){var _0x48b203=events[_0x419efc];var _0x1931c7=createListener(_0xa463('0x5')+_0x48b203,_0x1fd56b);ChatGroupEvents['on'](_0x48b203,_0x1931c7);}};