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 _0x3306=['save','remove','update','emit','register','length','team:','./team.events'];(function(_0xf12669,_0xd6b1db){var _0x589a90=function(_0x524017){while(--_0x524017){_0xf12669['push'](_0xf12669['shift']());}};_0x589a90(++_0xd6b1db);}(_0x3306,0x107));var _0x6330=function(_0x22e5b7,_0x5e8570){_0x22e5b7=_0x22e5b7-0x0;var _0x2cdc80=_0x3306[_0x22e5b7];return _0x2cdc80;};'use strict';var TeamEvents=require(_0x6330('0x0'));var events=[_0x6330('0x1'),_0x6330('0x2'),_0x6330('0x3')];function createListener(_0x4e47a7,_0x29210d){return function(_0x440976){_0x29210d[_0x6330('0x4')](_0x4e47a7,_0x440976);};}function removeListener(_0xcce390,_0x22ddc1){return function(){TeamEvents['removeListener'](_0xcce390,_0x22ddc1);};}exports[_0x6330('0x5')]=function(_0x457797){for(var _0x2942ec=0x0,_0x1f164b=events[_0x6330('0x6')];_0x2942ec<_0x1f164b;_0x2942ec++){var _0x4561f7=events[_0x2942ec];var _0x274386=createListener(_0x6330('0x7')+_0x4561f7,_0x457797);TeamEvents['on'](_0x4561f7,_0x274386);}};