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 _0xdb06=['save','remove','emit','removeListener','./team.events'];(function(_0x3b380d,_0x4bf247){var _0x54502b=function(_0x35d207){while(--_0x35d207){_0x3b380d['push'](_0x3b380d['shift']());}};_0x54502b(++_0x4bf247);}(_0xdb06,0x194));var _0x6db0=function(_0x5b5404,_0x1a5784){_0x5b5404=_0x5b5404-0x0;var _0x14a27f=_0xdb06[_0x5b5404];return _0x14a27f;};'use strict';var TeamEvents=require(_0x6db0('0x0'));var events=[_0x6db0('0x1'),_0x6db0('0x2'),'update'];function createListener(_0x1e037e,_0x32d489){return function(_0x368f63){_0x32d489[_0x6db0('0x3')](_0x1e037e,_0x368f63);};}function removeListener(_0x493037,_0x2bcac9){return function(){TeamEvents[_0x6db0('0x4')](_0x493037,_0x2bcac9);};}exports['register']=function(_0x461aa7){for(var _0x1db4cc=0x0,_0x53af74=events['length'];_0x1db4cc<_0x53af74;_0x1db4cc++){var _0x3f76fe=events[_0x1db4cc];var _0x397fc6=createListener('team:'+_0x3f76fe,_0x461aa7);TeamEvents['on'](_0x3f76fe,_0x397fc6);}};