Built motion from commit 0900f080.|2.5.45
[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 _0xfcd2=['update','emit','user-setting:update','UserId','register','user-setting:','./user-setting.events','save','remove'];(function(_0x2157ac,_0x1cb6bf){var _0x48d77a=function(_0x5deef1){while(--_0x5deef1){_0x2157ac['push'](_0x2157ac['shift']());}};_0x48d77a(++_0x1cb6bf);}(_0xfcd2,0x1c8));var _0x2fcd=function(_0x57deca,_0x25d587){_0x57deca=_0x57deca-0x0;var _0x23a464=_0xfcd2[_0x57deca];return _0x23a464;};'use strict';var UserSettingEvents=require(_0x2fcd('0x0'));var events=[_0x2fcd('0x1'),_0x2fcd('0x2'),_0x2fcd('0x3')];function createListener(_0x4f8667,_0x53fa51){return function(_0x2cd054){_0x53fa51[_0x2fcd('0x4')](_0x4f8667,_0x2cd054);if(_0x4f8667===_0x2fcd('0x5')){_0x53fa51[_0x2fcd('0x4')]('user-setting:update:user-'+_0x2cd054[_0x2fcd('0x6')],_0x2cd054);}};}exports[_0x2fcd('0x7')]=function(_0x2a384c){for(var _0x23f7f4=0x0,_0x408ba8=events['length'];_0x23f7f4<_0x408ba8;_0x23f7f4++){var _0x5899e1=events[_0x23f7f4];var _0x12c0c3=createListener(_0x2fcd('0x8')+_0x5899e1,_0x2a384c);UserSettingEvents['on'](_0x5899e1,_0x12c0c3);}};