Built motion from commit (unavailable).|2.3.94
[motion2.git] / server / api / user / user.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 _0x00d4=['user:','save','remove','update','emit','removeListener','register','length'];(function(_0x178e48,_0x3c9509){var _0x440d7e=function(_0xc2f8a0){while(--_0xc2f8a0){_0x178e48['push'](_0x178e48['shift']());}};_0x440d7e(++_0x3c9509);}(_0x00d4,0xf1));var _0x400d=function(_0x4a9fb1,_0x273043){_0x4a9fb1=_0x4a9fb1-0x0;var _0x348672=_0x00d4[_0x4a9fb1];return _0x348672;};'use strict';var UserEvents=require('./user.events');var events=[_0x400d('0x0'),_0x400d('0x1'),_0x400d('0x2')];function createListener(_0x8f73f8,_0x11908b){return function(_0x380f39){_0x11908b[_0x400d('0x3')](_0x8f73f8,_0x380f39);};}function removeListener(_0x2483f8,_0xbb1b21){return function(){UserEvents[_0x400d('0x4')](_0x2483f8,_0xbb1b21);};}exports[_0x400d('0x5')]=function(_0x5cfe53){for(var _0x366bfc=0x0,_0x2cd5d1=events[_0x400d('0x6')];_0x366bfc<_0x2cd5d1;_0x366bfc++){var _0x5f0123=events[_0x366bfc];var _0x5b53cc=createListener(_0x400d('0x7')+_0x5f0123,_0x5cfe53);UserEvents['on'](_0x5f0123,_0x5b53cc);}};