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 _0xe3b3=['register','length','team:','./team.events','save','remove','update','emit'];(function(_0xf0d8b,_0x113cf6){var _0x254ed6=function(_0x47ed87){while(--_0x47ed87){_0xf0d8b['push'](_0xf0d8b['shift']());}};_0x254ed6(++_0x113cf6);}(_0xe3b3,0x1b3));var _0x3e3b=function(_0x3a6dce,_0x5885ca){_0x3a6dce=_0x3a6dce-0x0;var _0x291b33=_0xe3b3[_0x3a6dce];return _0x291b33;};'use strict';var TeamEvents=require(_0x3e3b('0x0'));var events=[_0x3e3b('0x1'),_0x3e3b('0x2'),_0x3e3b('0x3')];function createListener(_0x2636c4,_0x35e8c2){return function(_0x1e813f){_0x35e8c2[_0x3e3b('0x4')](_0x2636c4,_0x1e813f);};}function removeListener(_0xcfab31,_0x2011b1){return function(){TeamEvents['removeListener'](_0xcfab31,_0x2011b1);};}exports[_0x3e3b('0x5')]=function(_0x3fd79a){for(var _0x410458=0x0,_0x57c8f9=events[_0x3e3b('0x6')];_0x410458<_0x57c8f9;_0x410458++){var _0x46c928=events[_0x410458];var _0x3d7821=createListener(_0x3e3b('0x7')+_0x46c928,_0x3fd79a);TeamEvents['on'](_0x46c928,_0x3d7821);}};