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 _0x1294=['register','length','./chatGroup.events','save','removeListener'];(function(_0x14add3,_0x13ce8d){var _0x4a174f=function(_0x2b3ed7){while(--_0x2b3ed7){_0x14add3['push'](_0x14add3['shift']());}};_0x4a174f(++_0x13ce8d);}(_0x1294,0xd4));var _0x4129=function(_0x1630f1,_0x2eba83){_0x1630f1=_0x1630f1-0x0;var _0x1531e6=_0x1294[_0x1630f1];return _0x1531e6;};'use strict';var ChatGroupEvents=require(_0x4129('0x0'));var events=[_0x4129('0x1'),'remove','update'];function createListener(_0xdc39ba,_0x583f94){return function(_0x7e1d5b){_0x583f94['emit'](_0xdc39ba,_0x7e1d5b);};}function removeListener(_0x3c9fa7,_0x3aaa69){return function(){ChatGroupEvents[_0x4129('0x2')](_0x3c9fa7,_0x3aaa69);};}exports[_0x4129('0x3')]=function(_0x104bb0){for(var _0x315689=0x0,_0xa567fc=events[_0x4129('0x4')];_0x315689<_0xa567fc;_0x315689++){var _0x551956=events[_0x315689];var _0x1d54a0=createListener('chatGroup:'+_0x551956,_0x104bb0);ChatGroupEvents['on'](_0x551956,_0x1d54a0);}};