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 _0x9070=['emit','removeListener','register','length','chatGroup:','./chatGroup.events','save','update'];(function(_0x2074db,_0x10b81b){var _0x27324c=function(_0x5c3d5c){while(--_0x5c3d5c){_0x2074db['push'](_0x2074db['shift']());}};_0x27324c(++_0x10b81b);}(_0x9070,0x1c5));var _0x0907=function(_0x3ff4a3,_0xa5bfa6){_0x3ff4a3=_0x3ff4a3-0x0;var _0x38676f=_0x9070[_0x3ff4a3];return _0x38676f;};'use strict';var ChatGroupEvents=require(_0x0907('0x0'));var events=[_0x0907('0x1'),'remove',_0x0907('0x2')];function createListener(_0x454b59,_0x4d76e3){return function(_0xbbf1d7){_0x4d76e3[_0x0907('0x3')](_0x454b59,_0xbbf1d7);};}function removeListener(_0x25ac57,_0x508bda){return function(){ChatGroupEvents[_0x0907('0x4')](_0x25ac57,_0x508bda);};}exports[_0x0907('0x5')]=function(_0x5d2118){for(var _0x40253b=0x0,_0x473380=events[_0x0907('0x6')];_0x40253b<_0x473380;_0x40253b++){var _0x59816f=events[_0x40253b];var _0x20c3ed=createListener(_0x0907('0x7')+_0x59816f,_0x5d2118);ChatGroupEvents['on'](_0x59816f,_0x20c3ed);}};