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 _0x6f66=['length','./chatGroup.events','save','remove','update','emit','register'];(function(_0x31061a,_0x5ab647){var _0x48d92a=function(_0x421130){while(--_0x421130){_0x31061a['push'](_0x31061a['shift']());}};_0x48d92a(++_0x5ab647);}(_0x6f66,0x94));var _0x66f6=function(_0x2534cf,_0x545be6){_0x2534cf=_0x2534cf-0x0;var _0x221461=_0x6f66[_0x2534cf];return _0x221461;};'use strict';var ChatGroupEvents=require(_0x66f6('0x0'));var events=[_0x66f6('0x1'),_0x66f6('0x2'),_0x66f6('0x3')];function createListener(_0x1661e2,_0x59c479){return function(_0x131305){_0x59c479[_0x66f6('0x4')](_0x1661e2,_0x131305);};}function removeListener(_0x266d88,_0x2847af){return function(){ChatGroupEvents['removeListener'](_0x266d88,_0x2847af);};}exports[_0x66f6('0x5')]=function(_0x590b34){for(var _0x23eb8d=0x0,_0x37afa3=events[_0x66f6('0x6')];_0x23eb8d<_0x37afa3;_0x23eb8d++){var _0x2342c5=events[_0x23eb8d];var _0x1e5880=createListener('chatGroup:'+_0x2342c5,_0x590b34);ChatGroupEvents['on'](_0x2342c5,_0x1e5880);}};