Built motion from commit e0fa946e.|2.6.5
[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 _0xf90b=['./user-setting.events','remove','update','user-setting:update','emit','user-setting:update:user-','UserId','length','user-setting:'];(function(_0x2a04a4,_0x2d321b){var _0x3ed6b4=function(_0x7c012a){while(--_0x7c012a){_0x2a04a4['push'](_0x2a04a4['shift']());}};_0x3ed6b4(++_0x2d321b);}(_0xf90b,0x171));var _0xbf90=function(_0x3a98a3,_0x4887ae){_0x3a98a3=_0x3a98a3-0x0;var _0x352e22=_0xf90b[_0x3a98a3];return _0x352e22;};'use strict';var UserSettingEvents=require(_0xbf90('0x0'));var events=['save',_0xbf90('0x1'),_0xbf90('0x2')];function createListener(_0x1eda71,_0x1254f9){return function(_0x563172){_0x1254f9['emit'](_0x1eda71,_0x563172);if(_0x1eda71===_0xbf90('0x3')){_0x1254f9[_0xbf90('0x4')](_0xbf90('0x5')+_0x563172[_0xbf90('0x6')],_0x563172);}};}exports['register']=function(_0x417064){for(var _0x2e5511=0x0,_0x342a11=events[_0xbf90('0x7')];_0x2e5511<_0x342a11;_0x2e5511++){var _0x22d160=events[_0x2e5511];var _0x186874=createListener(_0xbf90('0x8')+_0x22d160,_0x417064);UserSettingEvents['on'](_0x22d160,_0x186874);}};