4d7dc823999ddc3c83b297c8a517771659523813
[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 _0xdad1=['save','remove','update','emit','user-setting:update','user-setting:update:user-','UserId','register','./user-setting.events'];(function(_0x2b8e8d,_0x10672e){var _0x433be5=function(_0x1efddc){while(--_0x1efddc){_0x2b8e8d['push'](_0x2b8e8d['shift']());}};_0x433be5(++_0x10672e);}(_0xdad1,0x86));var _0x1dad=function(_0x26b31f,_0x1402a3){_0x26b31f=_0x26b31f-0x0;var _0x1cfd0d=_0xdad1[_0x26b31f];return _0x1cfd0d;};'use strict';var UserSettingEvents=require(_0x1dad('0x0'));var events=[_0x1dad('0x1'),_0x1dad('0x2'),_0x1dad('0x3')];function createListener(_0x2c18ee,_0x543dbc){return function(_0x181a2d){_0x543dbc[_0x1dad('0x4')](_0x2c18ee,_0x181a2d);if(_0x2c18ee===_0x1dad('0x5')){_0x543dbc[_0x1dad('0x4')](_0x1dad('0x6')+_0x181a2d[_0x1dad('0x7')],_0x181a2d);}};}exports[_0x1dad('0x8')]=function(_0x5edd5c){for(var _0x543248=0x0,_0x2260b0=events['length'];_0x543248<_0x2260b0;_0x543248++){var _0x886873=events[_0x543248];var _0x357685=createListener('user-setting:'+_0x886873,_0x5edd5c);UserSettingEvents['on'](_0x886873,_0x357685);}};