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 _0x65d2=['length','chatGroup:','./chatGroup.events','save','update','emit','register'];(function(_0x42af9f,_0x15463e){var _0x3c94c5=function(_0x4a4c65){while(--_0x4a4c65){_0x42af9f['push'](_0x42af9f['shift']());}};_0x3c94c5(++_0x15463e);}(_0x65d2,0xb8));var _0x265d=function(_0x239ed9,_0x291d9a){_0x239ed9=_0x239ed9-0x0;var _0x15a96c=_0x65d2[_0x239ed9];return _0x15a96c;};'use strict';var ChatGroupEvents=require(_0x265d('0x0'));var events=[_0x265d('0x1'),'remove',_0x265d('0x2')];function createListener(_0x12fc9b,_0x3a315b){return function(_0x59c81e){_0x3a315b[_0x265d('0x3')](_0x12fc9b,_0x59c81e);};}function removeListener(_0x233dd9,_0x2f91bf){return function(){ChatGroupEvents['removeListener'](_0x233dd9,_0x2f91bf);};}exports[_0x265d('0x4')]=function(_0xd49e24){for(var _0x27dc2d=0x0,_0x1020fa=events[_0x265d('0x5')];_0x27dc2d<_0x1020fa;_0x27dc2d++){var _0x5ca577=events[_0x27dc2d];var _0x36bf91=createListener(_0x265d('0x6')+_0x5ca577,_0xd49e24);ChatGroupEvents['on'](_0x5ca577,_0x36bf91);}};