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 _0xd4c9=['team:','./team.events','save','emit','register','length'];(function(_0x432682,_0x253044){var _0x463d05=function(_0xa73403){while(--_0xa73403){_0x432682['push'](_0x432682['shift']());}};_0x463d05(++_0x253044);}(_0xd4c9,0x1bd));var _0x9d4c=function(_0x13342f,_0x3d6303){_0x13342f=_0x13342f-0x0;var _0x2fc1fc=_0xd4c9[_0x13342f];return _0x2fc1fc;};'use strict';var TeamEvents=require(_0x9d4c('0x0'));var events=[_0x9d4c('0x1'),'remove','update'];function createListener(_0x452de2,_0x581560){return function(_0x5f09d5){_0x581560[_0x9d4c('0x2')](_0x452de2,_0x5f09d5);};}function removeListener(_0x2ce959,_0x4d87d2){return function(){TeamEvents['removeListener'](_0x2ce959,_0x4d87d2);};}exports[_0x9d4c('0x3')]=function(_0x11af20){for(var _0x4ab37a=0x0,_0x6bc2b8=events[_0x9d4c('0x4')];_0x4ab37a<_0x6bc2b8;_0x4ab37a++){var _0xf353de=events[_0x4ab37a];var _0x22ba7c=createListener(_0x9d4c('0x5')+_0xf353de,_0x11af20);TeamEvents['on'](_0xf353de,_0x22ba7c);}};