1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x6e8d=['update','emit','user-setting:update','UserId','register','length','./user-setting.events','remove'];(function(_0x53f91c,_0x1a1c0f){var _0x2ff093=function(_0x407014){while(--_0x407014){_0x53f91c['push'](_0x53f91c['shift']());}};_0x2ff093(++_0x1a1c0f);}(_0x6e8d,0x19e));var _0xd6e8=function(_0x3c0388,_0x4c3569){_0x3c0388=_0x3c0388-0x0;var _0x388fac=_0x6e8d[_0x3c0388];return _0x388fac;};'use strict';var UserSettingEvents=require(_0xd6e8('0x0'));var events=['save',_0xd6e8('0x1'),_0xd6e8('0x2')];function createListener(_0x529fb1,_0x8b4fa0){return function(_0x1fe6d9){_0x8b4fa0[_0xd6e8('0x3')](_0x529fb1,_0x1fe6d9);if(_0x529fb1===_0xd6e8('0x4')){_0x8b4fa0[_0xd6e8('0x3')]('user-setting:update:user-'+_0x1fe6d9[_0xd6e8('0x5')],_0x1fe6d9);}};}exports[_0xd6e8('0x6')]=function(_0xf810e3){for(var _0x28d1de=0x0,_0x2af113=events[_0xd6e8('0x7')];_0x28d1de<_0x2af113;_0x28d1de++){var _0x46bf28=events[_0x28d1de];var _0x1cc32d=createListener('user-setting:'+_0x46bf28,_0xf810e3);UserSettingEvents['on'](_0x46bf28,_0x1cc32d);}};