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 _0xaf17=['removeListener','register','length','chatGroup:','save','remove','update','emit'];(function(_0x13d46e,_0xb71980){var _0x30e59b=function(_0x239cfc){while(--_0x239cfc){_0x13d46e['push'](_0x13d46e['shift']());}};_0x30e59b(++_0xb71980);}(_0xaf17,0x18c));var _0x7af1=function(_0x2ff760,_0x350065){_0x2ff760=_0x2ff760-0x0;var _0x3df8af=_0xaf17[_0x2ff760];return _0x3df8af;};'use strict';var ChatGroupEvents=require('./chatGroup.events');var events=[_0x7af1('0x0'),_0x7af1('0x1'),_0x7af1('0x2')];function createListener(_0x31a2a3,_0x7b94ce){return function(_0x3aca3f){_0x7b94ce[_0x7af1('0x3')](_0x31a2a3,_0x3aca3f);};}function removeListener(_0x16a701,_0x535e73){return function(){ChatGroupEvents[_0x7af1('0x4')](_0x16a701,_0x535e73);};}exports[_0x7af1('0x5')]=function(_0x3dfd88){for(var _0x11e9db=0x0,_0x1714f8=events[_0x7af1('0x6')];_0x11e9db<_0x1714f8;_0x11e9db++){var _0x3f9519=events[_0x11e9db];var _0x40fe93=createListener(_0x7af1('0x7')+_0x3f9519,_0x3dfd88);ChatGroupEvents['on'](_0x3f9519,_0x40fe93);}};