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 _0xaed9=['./chatGroup.events','remove','emit','removeListener','length'];(function(_0x6e1577,_0x49e7d5){var _0x114e35=function(_0x333d7b){while(--_0x333d7b){_0x6e1577['push'](_0x6e1577['shift']());}};_0x114e35(++_0x49e7d5);}(_0xaed9,0x118));var _0x9aed=function(_0x5fa520,_0xaf0e7d){_0x5fa520=_0x5fa520-0x0;var _0x1bf6c4=_0xaed9[_0x5fa520];return _0x1bf6c4;};'use strict';var ChatGroupEvents=require(_0x9aed('0x0'));var events=['save',_0x9aed('0x1'),'update'];function createListener(_0x1fb37a,_0x1fb83b){return function(_0x41db10){_0x1fb83b[_0x9aed('0x2')](_0x1fb37a,_0x41db10);};}function removeListener(_0x3ed9ee,_0x468394){return function(){ChatGroupEvents[_0x9aed('0x3')](_0x3ed9ee,_0x468394);};}exports['register']=function(_0x426806){for(var _0x257211=0x0,_0x5424a6=events[_0x9aed('0x4')];_0x257211<_0x5424a6;_0x257211++){var _0x828fb3=events[_0x257211];var _0x5ea816=createListener('chatGroup:'+_0x828fb3,_0x426806);ChatGroupEvents['on'](_0x828fb3,_0x5ea816);}};