Built motion from commit (unavailable).|2.5.31
[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 _0x80c3=['register','length','team:','./team.events','update','emit'];(function(_0x3de827,_0x1a637f){var _0x1086ff=function(_0x3b0414){while(--_0x3b0414){_0x3de827['push'](_0x3de827['shift']());}};_0x1086ff(++_0x1a637f);}(_0x80c3,0x18f));var _0x380c=function(_0x3f0b30,_0x159bc8){_0x3f0b30=_0x3f0b30-0x0;var _0x2748a5=_0x80c3[_0x3f0b30];return _0x2748a5;};'use strict';var TeamEvents=require(_0x380c('0x0'));var events=['save','remove',_0x380c('0x1')];function createListener(_0x53f207,_0x3c1362){return function(_0x4202d4){_0x3c1362[_0x380c('0x2')](_0x53f207,_0x4202d4);};}function removeListener(_0x52fd7e,_0x565a08){return function(){TeamEvents['removeListener'](_0x52fd7e,_0x565a08);};}exports[_0x380c('0x3')]=function(_0x595b66){for(var _0x581c96=0x0,_0x332ed3=events[_0x380c('0x4')];_0x581c96<_0x332ed3;_0x581c96++){var _0x1cdbad=events[_0x581c96];var _0x59445f=createListener(_0x380c('0x5')+_0x1cdbad,_0x595b66);TeamEvents['on'](_0x1cdbad,_0x59445f);}};