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 _0xc698=['update','emit','register','length','team:','./team.events','save','remove'];(function(_0x41a93b,_0x2fc19d){var _0x220a7e=function(_0x5ecb05){while(--_0x5ecb05){_0x41a93b['push'](_0x41a93b['shift']());}};_0x220a7e(++_0x2fc19d);}(_0xc698,0x85));var _0x8c69=function(_0x141e03,_0x18340e){_0x141e03=_0x141e03-0x0;var _0x2074e3=_0xc698[_0x141e03];return _0x2074e3;};'use strict';var TeamEvents=require(_0x8c69('0x0'));var events=[_0x8c69('0x1'),_0x8c69('0x2'),_0x8c69('0x3')];function createListener(_0x3ecc28,_0x4ed5d2){return function(_0x5d804c){_0x4ed5d2[_0x8c69('0x4')](_0x3ecc28,_0x5d804c);};}function removeListener(_0x55386c,_0x1b1dae){return function(){TeamEvents['removeListener'](_0x55386c,_0x1b1dae);};}exports[_0x8c69('0x5')]=function(_0x5e8069){for(var _0x5c0109=0x0,_0x350620=events[_0x8c69('0x6')];_0x5c0109<_0x350620;_0x5c0109++){var _0x434e14=events[_0x5c0109];var _0x20a688=createListener(_0x8c69('0x7')+_0x434e14,_0x5e8069);TeamEvents['on'](_0x434e14,_0x20a688);}};