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 _0xc153=['remove','emit','removeListener','register','chatGroup:','./chatGroup.events','save'];(function(_0x185c6c,_0x194ae5){var _0x3a41ba=function(_0x3f50a2){while(--_0x3f50a2){_0x185c6c['push'](_0x185c6c['shift']());}};_0x3a41ba(++_0x194ae5);}(_0xc153,0x9f));var _0x3c15=function(_0x29d177,_0x19dc91){_0x29d177=_0x29d177-0x0;var _0x4380bb=_0xc153[_0x29d177];return _0x4380bb;};'use strict';var ChatGroupEvents=require(_0x3c15('0x0'));var events=[_0x3c15('0x1'),_0x3c15('0x2'),'update'];function createListener(_0x31263e,_0x3fe833){return function(_0x53c15f){_0x3fe833[_0x3c15('0x3')](_0x31263e,_0x53c15f);};}function removeListener(_0x54aa01,_0x111e4d){return function(){ChatGroupEvents[_0x3c15('0x4')](_0x54aa01,_0x111e4d);};}exports[_0x3c15('0x5')]=function(_0x22dddc){for(var _0x5d8fc2=0x0,_0x2cf615=events['length'];_0x5d8fc2<_0x2cf615;_0x5d8fc2++){var _0x502d5e=events[_0x5d8fc2];var _0x5cd981=createListener(_0x3c15('0x6')+_0x502d5e,_0x22dddc);ChatGroupEvents['on'](_0x502d5e,_0x5cd981);}};