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 _0x7d0c=['removeListener','register','team:','./team.events','remove','update','emit'];(function(_0x412435,_0x4ee7c4){var _0x280e4e=function(_0x1d60d8){while(--_0x1d60d8){_0x412435['push'](_0x412435['shift']());}};_0x280e4e(++_0x4ee7c4);}(_0x7d0c,0xce));var _0xc7d0=function(_0x23c477,_0x4c5dfc){_0x23c477=_0x23c477-0x0;var _0xa8ccc8=_0x7d0c[_0x23c477];return _0xa8ccc8;};'use strict';var TeamEvents=require(_0xc7d0('0x0'));var events=['save',_0xc7d0('0x1'),_0xc7d0('0x2')];function createListener(_0x42f325,_0x45af23){return function(_0x13ab4a){_0x45af23[_0xc7d0('0x3')](_0x42f325,_0x13ab4a);};}function removeListener(_0x4fa7d9,_0x27695a){return function(){TeamEvents[_0xc7d0('0x4')](_0x4fa7d9,_0x27695a);};}exports[_0xc7d0('0x5')]=function(_0x4736fb){for(var _0x5f59a8=0x0,_0x31ac6f=events['length'];_0x5f59a8<_0x31ac6f;_0x5f59a8++){var _0x43e2f7=events[_0x5f59a8];var _0x34a8eb=createListener(_0xc7d0('0x6')+_0x43e2f7,_0x4736fb);TeamEvents['on'](_0x43e2f7,_0x34a8eb);}};