Built motion from commit 775e2a94.|2.6.3
[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 _0xfe67=['length','./user-setting.events','save','remove','update','emit','user-setting:update:user-','UserId','register'];(function(_0x202e3c,_0x532538){var _0x2743d7=function(_0x4a18d9){while(--_0x4a18d9){_0x202e3c['push'](_0x202e3c['shift']());}};_0x2743d7(++_0x532538);}(_0xfe67,0xc7));var _0x7fe6=function(_0x5db1ce,_0x57ab66){_0x5db1ce=_0x5db1ce-0x0;var _0xb62cbb=_0xfe67[_0x5db1ce];return _0xb62cbb;};'use strict';var UserSettingEvents=require(_0x7fe6('0x0'));var events=[_0x7fe6('0x1'),_0x7fe6('0x2'),_0x7fe6('0x3')];function createListener(_0x84a57,_0x15158c){return function(_0xca306){_0x15158c[_0x7fe6('0x4')](_0x84a57,_0xca306);if(_0x84a57==='user-setting:update'){_0x15158c[_0x7fe6('0x4')](_0x7fe6('0x5')+_0xca306[_0x7fe6('0x6')],_0xca306);}};}exports[_0x7fe6('0x7')]=function(_0x2da89e){for(var _0xa63462=0x0,_0x19a37f=events[_0x7fe6('0x8')];_0xa63462<_0x19a37f;_0xa63462++){var _0x392b17=events[_0xa63462];var _0x11de64=createListener('user-setting:'+_0x392b17,_0x2da89e);UserSettingEvents['on'](_0x392b17,_0x11de64);}};