Built motion from commit 3c2ce842.|2.6.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 _0x13cf=['emit','removeListener','register','length','team:','./team.events','save','remove'];(function(_0x5b3c1e,_0x12a421){var _0x1485c0=function(_0xc8fe9c){while(--_0xc8fe9c){_0x5b3c1e['push'](_0x5b3c1e['shift']());}};_0x1485c0(++_0x12a421);}(_0x13cf,0x11d));var _0xf13c=function(_0x32d457,_0x1a39c9){_0x32d457=_0x32d457-0x0;var _0x338386=_0x13cf[_0x32d457];return _0x338386;};'use strict';var TeamEvents=require(_0xf13c('0x0'));var events=[_0xf13c('0x1'),_0xf13c('0x2'),'update'];function createListener(_0x3d484c,_0x310591){return function(_0x3d0428){_0x310591[_0xf13c('0x3')](_0x3d484c,_0x3d0428);};}function removeListener(_0x59dc38,_0x5614c1){return function(){TeamEvents[_0xf13c('0x4')](_0x59dc38,_0x5614c1);};}exports[_0xf13c('0x5')]=function(_0x910ac1){for(var _0x5e61fc=0x0,_0x33f762=events[_0xf13c('0x6')];_0x5e61fc<_0x33f762;_0x5e61fc++){var _0x2aa4ee=events[_0x5e61fc];var _0x150450=createListener(_0xf13c('0x7')+_0x2aa4ee,_0x910ac1);TeamEvents['on'](_0x2aa4ee,_0x150450);}};