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 _0xc288=['length','team:','./team.events','save','remove','update','emit','removeListener','register'];(function(_0x1a3087,_0x538b53){var _0x3e39b3=function(_0x1f7e27){while(--_0x1f7e27){_0x1a3087['push'](_0x1a3087['shift']());}};_0x3e39b3(++_0x538b53);}(_0xc288,0x197));var _0x8c28=function(_0x411841,_0x2bdc58){_0x411841=_0x411841-0x0;var _0x4f9918=_0xc288[_0x411841];return _0x4f9918;};'use strict';var TeamEvents=require(_0x8c28('0x0'));var events=[_0x8c28('0x1'),_0x8c28('0x2'),_0x8c28('0x3')];function createListener(_0x3e3742,_0x35649c){return function(_0x518692){_0x35649c[_0x8c28('0x4')](_0x3e3742,_0x518692);};}function removeListener(_0x42629d,_0x12f443){return function(){TeamEvents[_0x8c28('0x5')](_0x42629d,_0x12f443);};}exports[_0x8c28('0x6')]=function(_0x55bdaa){for(var _0x4ac558=0x0,_0x3e5436=events[_0x8c28('0x7')];_0x4ac558<_0x3e5436;_0x4ac558++){var _0x3096a5=events[_0x4ac558];var _0x5ec0e8=createListener(_0x8c28('0x8')+_0x3096a5,_0x55bdaa);TeamEvents['on'](_0x3096a5,_0x5ec0e8);}};