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 _0x26bf=['emit','removeListener','register','length','chatGroup:','./chatGroup.events','save','remove','update'];(function(_0x13b8f3,_0x442821){var _0x1a6d06=function(_0x5126f2){while(--_0x5126f2){_0x13b8f3['push'](_0x13b8f3['shift']());}};_0x1a6d06(++_0x442821);}(_0x26bf,0x1c7));var _0xf26b=function(_0x40afb3,_0x439f90){_0x40afb3=_0x40afb3-0x0;var _0x1aeb25=_0x26bf[_0x40afb3];return _0x1aeb25;};'use strict';var ChatGroupEvents=require(_0xf26b('0x0'));var events=[_0xf26b('0x1'),_0xf26b('0x2'),_0xf26b('0x3')];function createListener(_0x16d68b,_0xfb080a){return function(_0x32d994){_0xfb080a[_0xf26b('0x4')](_0x16d68b,_0x32d994);};}function removeListener(_0x42b7ec,_0x390e90){return function(){ChatGroupEvents[_0xf26b('0x5')](_0x42b7ec,_0x390e90);};}exports[_0xf26b('0x6')]=function(_0x167d07){for(var _0x288855=0x0,_0x1f2151=events[_0xf26b('0x7')];_0x288855<_0x1f2151;_0x288855++){var _0x74a5dd=events[_0x288855];var _0x5be904=createListener(_0xf26b('0x8')+_0x74a5dd,_0x167d07);ChatGroupEvents['on'](_0x74a5dd,_0x5be904);}};