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 _0x4f4f=['./chatGroup.events','save','remove','emit','removeListener','register','chatGroup:'];(function(_0x254feb,_0x325df6){var _0x29f721=function(_0x1e546b){while(--_0x1e546b){_0x254feb['push'](_0x254feb['shift']());}};_0x29f721(++_0x325df6);}(_0x4f4f,0x10a));var _0xf4f4=function(_0x5deea5,_0x230d81){_0x5deea5=_0x5deea5-0x0;var _0x3d1998=_0x4f4f[_0x5deea5];return _0x3d1998;};'use strict';var ChatGroupEvents=require(_0xf4f4('0x0'));var events=[_0xf4f4('0x1'),_0xf4f4('0x2'),'update'];function createListener(_0x345964,_0x4ec824){return function(_0x11cb0f){_0x4ec824[_0xf4f4('0x3')](_0x345964,_0x11cb0f);};}function removeListener(_0x17d31d,_0x5e9289){return function(){ChatGroupEvents[_0xf4f4('0x4')](_0x17d31d,_0x5e9289);};}exports[_0xf4f4('0x5')]=function(_0x175da5){for(var _0x21d465=0x0,_0x4831e1=events['length'];_0x21d465<_0x4831e1;_0x21d465++){var _0xee04c4=events[_0x21d465];var _0x3fbfc4=createListener(_0xf4f4('0x6')+_0xee04c4,_0x175da5);ChatGroupEvents['on'](_0xee04c4,_0x3fbfc4);}};