Built motion from commit (unavailable).|2.4.13
[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 _0xb7ac=['save','remove','update','register','./team.events'];(function(_0x5a60ce,_0x48f080){var _0x393e5e=function(_0x1c58fc){while(--_0x1c58fc){_0x5a60ce['push'](_0x5a60ce['shift']());}};_0x393e5e(++_0x48f080);}(_0xb7ac,0x18a));var _0xcb7a=function(_0x274581,_0x3be242){_0x274581=_0x274581-0x0;var _0x201c2a=_0xb7ac[_0x274581];return _0x201c2a;};'use strict';var TeamEvents=require(_0xcb7a('0x0'));var events=[_0xcb7a('0x1'),_0xcb7a('0x2'),_0xcb7a('0x3')];function createListener(_0x296b98,_0x55c534){return function(_0x3dfd37){_0x55c534['emit'](_0x296b98,_0x3dfd37);};}function removeListener(_0x41408c,_0xaa5a21){return function(){TeamEvents['removeListener'](_0x41408c,_0xaa5a21);};}exports[_0xcb7a('0x4')]=function(_0x39e229){for(var _0x5dc16=0x0,_0x4fe4a9=events['length'];_0x5dc16<_0x4fe4a9;_0x5dc16++){var _0x2fb36a=events[_0x5dc16];var _0x170859=createListener('team:'+_0x2fb36a,_0x39e229);TeamEvents['on'](_0x2fb36a,_0x170859);}};