Built motion from commit 1fa89557.|2.6.10
[motion2.git] / server / api / user-setting / user-setting.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 _0x5bf0=['length','save','remove','update','user-setting:update','emit','user-setting:update:user-','UserId','register'];(function(_0x43786c,_0x173fc3){var _0x4dfb2a=function(_0x16850d){while(--_0x16850d){_0x43786c['push'](_0x43786c['shift']());}};_0x4dfb2a(++_0x173fc3);}(_0x5bf0,0xe2));var _0x05bf=function(_0x1fc39b,_0x511089){_0x1fc39b=_0x1fc39b-0x0;var _0x138c13=_0x5bf0[_0x1fc39b];return _0x138c13;};'use strict';var UserSettingEvents=require('./user-setting.events');var events=[_0x05bf('0x0'),_0x05bf('0x1'),_0x05bf('0x2')];function createListener(_0x250b4c,_0x14e266){return function(_0x5cd857){_0x14e266['emit'](_0x250b4c,_0x5cd857);if(_0x250b4c===_0x05bf('0x3')){_0x14e266[_0x05bf('0x4')](_0x05bf('0x5')+_0x5cd857[_0x05bf('0x6')],_0x5cd857);}};}exports[_0x05bf('0x7')]=function(_0x337d2e){for(var _0x55746f=0x0,_0x528512=events[_0x05bf('0x8')];_0x55746f<_0x528512;_0x55746f++){var _0x1b262c=events[_0x55746f];var _0x2c8378=createListener('user-setting:'+_0x1b262c,_0x337d2e);UserSettingEvents['on'](_0x1b262c,_0x2c8378);}};