Built motion from commit e1760111.|2.6.18
[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 _0x644a=['user:','save','remove','update','emit','removeListener','register','length'];(function(_0x55879e,_0x4995f1){var _0x548b7f=function(_0x4c554a){while(--_0x4c554a){_0x55879e['push'](_0x55879e['shift']());}};_0x548b7f(++_0x4995f1);}(_0x644a,0x1e9));var _0xa644=function(_0x1e46a5,_0x5b094e){_0x1e46a5=_0x1e46a5-0x0;var _0x35a2cf=_0x644a[_0x1e46a5];return _0x35a2cf;};'use strict';var UserEvents=require('./user.events');var events=[_0xa644('0x0'),_0xa644('0x1'),_0xa644('0x2')];function createListener(_0x30f442,_0x591533){return function(_0x39e842){_0x591533[_0xa644('0x3')](_0x30f442,_0x39e842);};}function removeListener(_0x1281e9,_0x5f269a){return function(){UserEvents[_0xa644('0x4')](_0x1281e9,_0x5f269a);};}exports[_0xa644('0x5')]=function(_0x1b18d1){for(var _0xd58360=0x0,_0x4e3fa9=events[_0xa644('0x6')];_0xd58360<_0x4e3fa9;_0xd58360++){var _0x2e5986=events[_0xd58360];var _0x30d3a5=createListener(_0xa644('0x7')+_0x2e5986,_0x1b18d1);UserEvents['on'](_0x2e5986,_0x30d3a5);}};