Built motion from commit (unavailable).|2.5.6
[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 _0xcd2f=['removeListener','length','team:','update','emit'];(function(_0x178e48,_0x3c9509){var _0x440d7e=function(_0xc2f8a0){while(--_0xc2f8a0){_0x178e48['push'](_0x178e48['shift']());}};_0x440d7e(++_0x3c9509);}(_0xcd2f,0xf8));var _0xfcd2=function(_0x525c7b,_0x488fcc){_0x525c7b=_0x525c7b-0x0;var _0x27b33e=_0xcd2f[_0x525c7b];return _0x27b33e;};'use strict';var TeamEvents=require('./team.events');var events=['save','remove',_0xfcd2('0x0')];function createListener(_0xdef4fa,_0xe4b158){return function(_0x17ddf1){_0xe4b158[_0xfcd2('0x1')](_0xdef4fa,_0x17ddf1);};}function removeListener(_0x248361,_0x8a26c){return function(){TeamEvents[_0xfcd2('0x2')](_0x248361,_0x8a26c);};}exports['register']=function(_0x108480){for(var _0x3c9c83=0x0,_0x41e836=events[_0xfcd2('0x3')];_0x3c9c83<_0x41e836;_0x3c9c83++){var _0x467e4f=events[_0x3c9c83];var _0x13d9fa=createListener(_0xfcd2('0x4')+_0x467e4f,_0x108480);TeamEvents['on'](_0x467e4f,_0x13d9fa);}};