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 _0xa902=['update','removeListener','register','./team.events','save','remove'];(function(_0x20d7a4,_0x9b5654){var _0x37f2c1=function(_0x598d87){while(--_0x598d87){_0x20d7a4['push'](_0x20d7a4['shift']());}};_0x37f2c1(++_0x9b5654);}(_0xa902,0x8d));var _0x2a90=function(_0x5cce57,_0x3cbadd){_0x5cce57=_0x5cce57-0x0;var _0x114fc2=_0xa902[_0x5cce57];return _0x114fc2;};'use strict';var TeamEvents=require(_0x2a90('0x0'));var events=[_0x2a90('0x1'),_0x2a90('0x2'),_0x2a90('0x3')];function createListener(_0x1b4117,_0x4983a4){return function(_0x2da982){_0x4983a4['emit'](_0x1b4117,_0x2da982);};}function removeListener(_0x4961c2,_0x169808){return function(){TeamEvents[_0x2a90('0x4')](_0x4961c2,_0x169808);};}exports[_0x2a90('0x5')]=function(_0x21e1d2){for(var _0x4a32c7=0x0,_0x25bcfc=events['length'];_0x4a32c7<_0x25bcfc;_0x4a32c7++){var _0x4109e6=events[_0x4a32c7];var _0x570659=createListener('team:'+_0x4109e6,_0x21e1d2);TeamEvents['on'](_0x4109e6,_0x570659);}};