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 _0x10dc=['emit','removeListener','register','team:','./team.events','save','update'];(function(_0x2be8c2,_0x14a4b5){var _0x97f531=function(_0xcee58d){while(--_0xcee58d){_0x2be8c2['push'](_0x2be8c2['shift']());}};_0x97f531(++_0x14a4b5);}(_0x10dc,0x107));var _0xc10d=function(_0xe6894,_0x5a1755){_0xe6894=_0xe6894-0x0;var _0x4e2ea7=_0x10dc[_0xe6894];return _0x4e2ea7;};'use strict';var TeamEvents=require(_0xc10d('0x0'));var events=[_0xc10d('0x1'),'remove',_0xc10d('0x2')];function createListener(_0x5d70d3,_0x412754){return function(_0x10ff44){_0x412754[_0xc10d('0x3')](_0x5d70d3,_0x10ff44);};}function removeListener(_0x396299,_0x21a1b8){return function(){TeamEvents[_0xc10d('0x4')](_0x396299,_0x21a1b8);};}exports[_0xc10d('0x5')]=function(_0x25e10c){for(var _0x48baac=0x0,_0x266240=events['length'];_0x48baac<_0x266240;_0x48baac++){var _0x591e4d=events[_0x48baac];var _0x315fff=createListener(_0xc10d('0x6')+_0x591e4d,_0x25e10c);TeamEvents['on'](_0x591e4d,_0x315fff);}};