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 _0xd787=['length','chatGroup:','./chatGroup.events','remove','update','emit','removeListener','register'];(function(_0x2d2c16,_0x4e88b6){var _0x53f2fb=function(_0x6b6dac){while(--_0x6b6dac){_0x2d2c16['push'](_0x2d2c16['shift']());}};_0x53f2fb(++_0x4e88b6);}(_0xd787,0x1da));var _0x7d78=function(_0x2c084f,_0x15a73e){_0x2c084f=_0x2c084f-0x0;var _0x61b15=_0xd787[_0x2c084f];return _0x61b15;};'use strict';var ChatGroupEvents=require(_0x7d78('0x0'));var events=['save',_0x7d78('0x1'),_0x7d78('0x2')];function createListener(_0x497c12,_0x5b5406){return function(_0xe4e4e2){_0x5b5406[_0x7d78('0x3')](_0x497c12,_0xe4e4e2);};}function removeListener(_0x42e370,_0x4d666b){return function(){ChatGroupEvents[_0x7d78('0x4')](_0x42e370,_0x4d666b);};}exports[_0x7d78('0x5')]=function(_0x1c19fc){for(var _0x48143f=0x0,_0x3795d4=events[_0x7d78('0x6')];_0x48143f<_0x3795d4;_0x48143f++){var _0x556345=events[_0x48143f];var _0x2e54db=createListener(_0x7d78('0x7')+_0x556345,_0x1c19fc);ChatGroupEvents['on'](_0x556345,_0x2e54db);}};