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 _0x13f7=['emit','./team.events','save','remove','update'];(function(_0x274c57,_0x21d3de){var _0x4a5be1=function(_0x414558){while(--_0x414558){_0x274c57['push'](_0x274c57['shift']());}};_0x4a5be1(++_0x21d3de);}(_0x13f7,0x164));var _0x713f=function(_0x20a584,_0xe384a5){_0x20a584=_0x20a584-0x0;var _0x4b41a8=_0x13f7[_0x20a584];return _0x4b41a8;};'use strict';var TeamEvents=require(_0x713f('0x0'));var events=[_0x713f('0x1'),_0x713f('0x2'),_0x713f('0x3')];function createListener(_0x5df4df,_0x979621){return function(_0x485551){_0x979621[_0x713f('0x4')](_0x5df4df,_0x485551);};}function removeListener(_0x241a8f,_0x3bcf08){return function(){TeamEvents['removeListener'](_0x241a8f,_0x3bcf08);};}exports['register']=function(_0x5ea16f){for(var _0x463eea=0x0,_0x2571f6=events['length'];_0x463eea<_0x2571f6;_0x463eea++){var _0x4f7a31=events[_0x463eea];var _0x2a47f5=createListener('team:'+_0x4f7a31,_0x5ea16f);TeamEvents['on'](_0x4f7a31,_0x2a47f5);}};