Built motion from commit d9028345.|2.5.43
[motion2.git] / server / api / team / team.socket.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0xc65f=['remove','update','emit','removeListener','register','length','./team.events','save'];(function(_0x39c734,_0x2f3e06){var _0xb2a2f9=function(_0x502f3f){while(--_0x502f3f){_0x39c734['push'](_0x39c734['shift']());}};_0xb2a2f9(++_0x2f3e06);}(_0xc65f,0x76));var _0xfc65=function(_0x599fe1,_0x113173){_0x599fe1=_0x599fe1-0x0;var _0xc52224=_0xc65f[_0x599fe1];return _0xc52224;};'use strict';var TeamEvents=require(_0xfc65('0x0'));var events=[_0xfc65('0x1'),_0xfc65('0x2'),_0xfc65('0x3')];function createListener(_0x2ebf64,_0x4b8e31){return function(_0x316983){_0x4b8e31[_0xfc65('0x4')](_0x2ebf64,_0x316983);};}function removeListener(_0x1dbc47,_0x2e96aa){return function(){TeamEvents[_0xfc65('0x5')](_0x1dbc47,_0x2e96aa);};}exports[_0xfc65('0x6')]=function(_0x1dcbbc){for(var _0x31e5d4=0x0,_0x328608=events[_0xfc65('0x7')];_0x31e5d4<_0x328608;_0x31e5d4++){var _0x4338da=events[_0x31e5d4];var _0xba6ab3=createListener('team:'+_0x4338da,_0x1dcbbc);TeamEvents['on'](_0x4338da,_0xba6ab3);}};