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 _0x081c=['length','team:','./team.events','remove','update','emit','removeListener','register'];(function(_0x15c421,_0x6366f7){var _0x5e5ed5=function(_0x206e66){while(--_0x206e66){_0x15c421['push'](_0x15c421['shift']());}};_0x5e5ed5(++_0x6366f7);}(_0x081c,0x16a));var _0xc081=function(_0x7d62cb,_0x7622c){_0x7d62cb=_0x7d62cb-0x0;var _0x3a6266=_0x081c[_0x7d62cb];return _0x3a6266;};'use strict';var TeamEvents=require(_0xc081('0x0'));var events=['save',_0xc081('0x1'),_0xc081('0x2')];function createListener(_0x2a8e80,_0xfa398a){return function(_0x5fef56){_0xfa398a[_0xc081('0x3')](_0x2a8e80,_0x5fef56);};}function removeListener(_0x12db8f,_0x2c9b23){return function(){TeamEvents[_0xc081('0x4')](_0x12db8f,_0x2c9b23);};}exports[_0xc081('0x5')]=function(_0x4c7506){for(var _0x3e7bf7=0x0,_0x58a8fa=events[_0xc081('0x6')];_0x3e7bf7<_0x58a8fa;_0x3e7bf7++){var _0x4b539d=events[_0x3e7bf7];var _0x51b7a1=createListener(_0xc081('0x7')+_0x4b539d,_0x4c7506);TeamEvents['on'](_0x4b539d,_0x51b7a1);}};