Built motion from commit (unavailable).|2.5.12
[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 _0x50a5=['save','removeListener','register','length','team:','./team.events'];(function(_0x5286ee,_0x31a926){var _0x5c85ef=function(_0x1ff613){while(--_0x1ff613){_0x5286ee['push'](_0x5286ee['shift']());}};_0x5c85ef(++_0x31a926);}(_0x50a5,0xd1));var _0x550a=function(_0x5bd951,_0x1189d1){_0x5bd951=_0x5bd951-0x0;var _0x42c2cb=_0x50a5[_0x5bd951];return _0x42c2cb;};'use strict';var TeamEvents=require(_0x550a('0x0'));var events=[_0x550a('0x1'),'remove','update'];function createListener(_0x5d0141,_0x497aff){return function(_0x464e1a){_0x497aff['emit'](_0x5d0141,_0x464e1a);};}function removeListener(_0x357485,_0x2038f7){return function(){TeamEvents[_0x550a('0x2')](_0x357485,_0x2038f7);};}exports[_0x550a('0x3')]=function(_0x402f66){for(var _0x3b3c29=0x0,_0x1983bf=events[_0x550a('0x4')];_0x3b3c29<_0x1983bf;_0x3b3c29++){var _0x3e9984=events[_0x3b3c29];var _0x329303=createListener(_0x550a('0x5')+_0x3e9984,_0x402f66);TeamEvents['on'](_0x3e9984,_0x329303);}};