Built motion from commit (unavailable).|2.5.17
[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 _0xf1c6=['remove','update','register','length','team:'];(function(_0x57928b,_0x29a111){var _0x49aad6=function(_0x34a268){while(--_0x34a268){_0x57928b['push'](_0x57928b['shift']());}};_0x49aad6(++_0x29a111);}(_0xf1c6,0x145));var _0x6f1c=function(_0x10c83e,_0x2a8bd7){_0x10c83e=_0x10c83e-0x0;var _0x547583=_0xf1c6[_0x10c83e];return _0x547583;};'use strict';var TeamEvents=require('./team.events');var events=['save',_0x6f1c('0x0'),_0x6f1c('0x1')];function createListener(_0x26cd1b,_0x405b3c){return function(_0xc393e2){_0x405b3c['emit'](_0x26cd1b,_0xc393e2);};}function removeListener(_0x5f0d77,_0x43775d){return function(){TeamEvents['removeListener'](_0x5f0d77,_0x43775d);};}exports[_0x6f1c('0x2')]=function(_0xa275f4){for(var _0x462c85=0x0,_0x537c4f=events[_0x6f1c('0x3')];_0x462c85<_0x537c4f;_0x462c85++){var _0x564a8f=events[_0x462c85];var _0x275f11=createListener(_0x6f1c('0x4')+_0x564a8f,_0xa275f4);TeamEvents['on'](_0x564a8f,_0x275f11);}};