Built motion from commit (unavailable).|2.5.14
[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 _0xdc86=['emit','register','length','team:','save','update'];(function(_0x2e3136,_0x739259){var _0x3cbd9d=function(_0x31fa6b){while(--_0x31fa6b){_0x2e3136['push'](_0x2e3136['shift']());}};_0x3cbd9d(++_0x739259);}(_0xdc86,0x118));var _0x6dc8=function(_0x321bb2,_0x202794){_0x321bb2=_0x321bb2-0x0;var _0x9c12ed=_0xdc86[_0x321bb2];return _0x9c12ed;};'use strict';var TeamEvents=require('./team.events');var events=[_0x6dc8('0x0'),'remove',_0x6dc8('0x1')];function createListener(_0x52ed6c,_0x30da65){return function(_0x384f46){_0x30da65[_0x6dc8('0x2')](_0x52ed6c,_0x384f46);};}function removeListener(_0xfa6165,_0x44634f){return function(){TeamEvents['removeListener'](_0xfa6165,_0x44634f);};}exports[_0x6dc8('0x3')]=function(_0x3109bf){for(var _0xbc9bc4=0x0,_0x9b1bcc=events[_0x6dc8('0x4')];_0xbc9bc4<_0x9b1bcc;_0xbc9bc4++){var _0x1f41c7=events[_0xbc9bc4];var _0x41bdf5=createListener(_0x6dc8('0x5')+_0x1f41c7,_0x3109bf);TeamEvents['on'](_0x1f41c7,_0x41bdf5);}};