Built motion from commit (unavailable).|2.5.22
[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 _0x41fe=['length','team:','./team.events','save','remove','update','emit','removeListener','register'];(function(_0x2763f2,_0x416af8){var _0x3ef471=function(_0x288aa2){while(--_0x288aa2){_0x2763f2['push'](_0x2763f2['shift']());}};_0x3ef471(++_0x416af8);}(_0x41fe,0xd1));var _0xe41f=function(_0x2c91e9,_0x2fb965){_0x2c91e9=_0x2c91e9-0x0;var _0x13f0ff=_0x41fe[_0x2c91e9];return _0x13f0ff;};'use strict';var TeamEvents=require(_0xe41f('0x0'));var events=[_0xe41f('0x1'),_0xe41f('0x2'),_0xe41f('0x3')];function createListener(_0x850827,_0x26d278){return function(_0x3afc14){_0x26d278[_0xe41f('0x4')](_0x850827,_0x3afc14);};}function removeListener(_0x2e580b,_0x1c9625){return function(){TeamEvents[_0xe41f('0x5')](_0x2e580b,_0x1c9625);};}exports[_0xe41f('0x6')]=function(_0xd3c763){for(var _0x370385=0x0,_0x32a410=events[_0xe41f('0x7')];_0x370385<_0x32a410;_0x370385++){var _0x23fdc9=events[_0x370385];var _0x519361=createListener(_0xe41f('0x8')+_0x23fdc9,_0xd3c763);TeamEvents['on'](_0x23fdc9,_0x519361);}};