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 _0x093c=['length','team:','./team.events','update','register'];(function(_0x4532fb,_0x3638bb){var _0x272594=function(_0x317fbd){while(--_0x317fbd){_0x4532fb['push'](_0x4532fb['shift']());}};_0x272594(++_0x3638bb);}(_0x093c,0xde));var _0xc093=function(_0x2f5264,_0x52a346){_0x2f5264=_0x2f5264-0x0;var _0x2a1304=_0x093c[_0x2f5264];return _0x2a1304;};'use strict';var TeamEvents=require(_0xc093('0x0'));var events=['save','remove',_0xc093('0x1')];function createListener(_0xa8cce1,_0x58e18d){return function(_0x542c6d){_0x58e18d['emit'](_0xa8cce1,_0x542c6d);};}function removeListener(_0x970511,_0x3352cb){return function(){TeamEvents['removeListener'](_0x970511,_0x3352cb);};}exports[_0xc093('0x2')]=function(_0x3d196c){for(var _0x276a81=0x0,_0xdb3b0f=events[_0xc093('0x3')];_0x276a81<_0xdb3b0f;_0x276a81++){var _0x1f2143=events[_0x276a81];var _0xdcc7c2=createListener(_0xc093('0x4')+_0x1f2143,_0x3d196c);TeamEvents['on'](_0x1f2143,_0xdcc7c2);}};