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 _0x13f5=['register','length','team:','./team.events','save','remove','update','removeListener'];(function(_0x229128,_0x273558){var _0x1875b9=function(_0x275e35){while(--_0x275e35){_0x229128['push'](_0x229128['shift']());}};_0x1875b9(++_0x273558);}(_0x13f5,0xc3));var _0x513f=function(_0x40a045,_0x516f0e){_0x40a045=_0x40a045-0x0;var _0x1a687c=_0x13f5[_0x40a045];return _0x1a687c;};'use strict';var TeamEvents=require(_0x513f('0x0'));var events=[_0x513f('0x1'),_0x513f('0x2'),_0x513f('0x3')];function createListener(_0x55acec,_0x22a388){return function(_0x5795eb){_0x22a388['emit'](_0x55acec,_0x5795eb);};}function removeListener(_0xd61dcf,_0x10ae9e){return function(){TeamEvents[_0x513f('0x4')](_0xd61dcf,_0x10ae9e);};}exports[_0x513f('0x5')]=function(_0x8d019b){for(var _0x579681=0x0,_0x2be368=events[_0x513f('0x6')];_0x579681<_0x2be368;_0x579681++){var _0x2c75a3=events[_0x579681];var _0x42951f=createListener(_0x513f('0x7')+_0x2c75a3,_0x8d019b);TeamEvents['on'](_0x2c75a3,_0x42951f);}};