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 _0x567f=['removeListener','register','chatGroup:','./chatGroup.events','save','remove','update'];(function(_0x44c974,_0x1bcfde){var _0x5214c6=function(_0x10aad5){while(--_0x10aad5){_0x44c974['push'](_0x44c974['shift']());}};_0x5214c6(++_0x1bcfde);}(_0x567f,0x7a));var _0xf567=function(_0x5da8e9,_0x3beb32){_0x5da8e9=_0x5da8e9-0x0;var _0x24a605=_0x567f[_0x5da8e9];return _0x24a605;};'use strict';var ChatGroupEvents=require(_0xf567('0x0'));var events=[_0xf567('0x1'),_0xf567('0x2'),_0xf567('0x3')];function createListener(_0x16c8e9,_0x16ff49){return function(_0x40a9c6){_0x16ff49['emit'](_0x16c8e9,_0x40a9c6);};}function removeListener(_0x5d2b41,_0x5376cd){return function(){ChatGroupEvents[_0xf567('0x4')](_0x5d2b41,_0x5376cd);};}exports[_0xf567('0x5')]=function(_0x598851){for(var _0x1d57e4=0x0,_0x34debf=events['length'];_0x1d57e4<_0x34debf;_0x1d57e4++){var _0x1d0645=events[_0x1d57e4];var _0x67f0be=createListener(_0xf567('0x6')+_0x1d0645,_0x598851);ChatGroupEvents['on'](_0x1d0645,_0x67f0be);}};