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 _0x1c19=['./team.events','save','remove','removeListener','register','length'];(function(_0x1c4863,_0x426495){var _0x2678cb=function(_0x1dfb7a){while(--_0x1dfb7a){_0x1c4863['push'](_0x1c4863['shift']());}};_0x2678cb(++_0x426495);}(_0x1c19,0x1f2));var _0x91c1=function(_0x598b5d,_0x3f4d1e){_0x598b5d=_0x598b5d-0x0;var _0x54ab06=_0x1c19[_0x598b5d];return _0x54ab06;};'use strict';var TeamEvents=require(_0x91c1('0x0'));var events=[_0x91c1('0x1'),_0x91c1('0x2'),'update'];function createListener(_0x3d2df6,_0x44a264){return function(_0x546ff1){_0x44a264['emit'](_0x3d2df6,_0x546ff1);};}function removeListener(_0x31f1da,_0x5a8654){return function(){TeamEvents[_0x91c1('0x3')](_0x31f1da,_0x5a8654);};}exports[_0x91c1('0x4')]=function(_0x105260){for(var _0xc05b49=0x0,_0x1a2ff5=events[_0x91c1('0x5')];_0xc05b49<_0x1a2ff5;_0xc05b49++){var _0x2a60b1=events[_0xc05b49];var _0x5ca804=createListener('team:'+_0x2a60b1,_0x105260);TeamEvents['on'](_0x2a60b1,_0x5ca804);}};