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 _0x5565=['length','chatGroup:','./chatGroup.events','save','remove','update','emit','removeListener','register'];(function(_0x470516,_0x264108){var _0xdc5aa9=function(_0x990af2){while(--_0x990af2){_0x470516['push'](_0x470516['shift']());}};_0xdc5aa9(++_0x264108);}(_0x5565,0xec));var _0x5556=function(_0x2d5c4b,_0x14ee20){_0x2d5c4b=_0x2d5c4b-0x0;var _0x1d6300=_0x5565[_0x2d5c4b];return _0x1d6300;};'use strict';var ChatGroupEvents=require(_0x5556('0x0'));var events=[_0x5556('0x1'),_0x5556('0x2'),_0x5556('0x3')];function createListener(_0x2b9d86,_0x3e5a37){return function(_0x806f34){_0x3e5a37[_0x5556('0x4')](_0x2b9d86,_0x806f34);};}function removeListener(_0x35d420,_0x495256){return function(){ChatGroupEvents[_0x5556('0x5')](_0x35d420,_0x495256);};}exports[_0x5556('0x6')]=function(_0x497696){for(var _0x14ef8a=0x0,_0x539bd1=events[_0x5556('0x7')];_0x14ef8a<_0x539bd1;_0x14ef8a++){var _0x2997b6=events[_0x14ef8a];var _0x3445ef=createListener(_0x5556('0x8')+_0x2997b6,_0x497696);ChatGroupEvents['on'](_0x2997b6,_0x3445ef);}};