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 _0x5fa1=['./team.events','save','emit','removeListener','register','length','team:'];(function(_0x352e4f,_0x20cab3){var _0x451e89=function(_0x79897){while(--_0x79897){_0x352e4f['push'](_0x352e4f['shift']());}};_0x451e89(++_0x20cab3);}(_0x5fa1,0xcb));var _0x15fa=function(_0x1ed929,_0x107b14){_0x1ed929=_0x1ed929-0x0;var _0x5a5e2c=_0x5fa1[_0x1ed929];return _0x5a5e2c;};'use strict';var TeamEvents=require(_0x15fa('0x0'));var events=[_0x15fa('0x1'),'remove','update'];function createListener(_0x3e47d9,_0x1c70a0){return function(_0x50dd59){_0x1c70a0[_0x15fa('0x2')](_0x3e47d9,_0x50dd59);};}function removeListener(_0x1b5823,_0x304590){return function(){TeamEvents[_0x15fa('0x3')](_0x1b5823,_0x304590);};}exports[_0x15fa('0x4')]=function(_0x10d4bd){for(var _0x1b493a=0x0,_0x17db64=events[_0x15fa('0x5')];_0x1b493a<_0x17db64;_0x1b493a++){var _0x54ed87=events[_0x1b493a];var _0x169d79=createListener(_0x15fa('0x6')+_0x54ed87,_0x10d4bd);TeamEvents['on'](_0x54ed87,_0x169d79);}};