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 _0xabfc=['register','remove','emit','user-setting:update','user-setting:update:user-'];(function(_0x5c9397,_0xe6bc88){var _0x194baf=function(_0x50d093){while(--_0x50d093){_0x5c9397['push'](_0x5c9397['shift']());}};_0x194baf(++_0xe6bc88);}(_0xabfc,0x137));var _0xcabf=function(_0x465a0c,_0x19d4d5){_0x465a0c=_0x465a0c-0x0;var _0x1e202e=_0xabfc[_0x465a0c];return _0x1e202e;};'use strict';var UserSettingEvents=require('./user-setting.events');var events=['save',_0xcabf('0x0'),'update'];function createListener(_0x9d2f9f,_0x25ea17){return function(_0x9ad181){_0x25ea17[_0xcabf('0x1')](_0x9d2f9f,_0x9ad181);if(_0x9d2f9f===_0xcabf('0x2')){_0x25ea17[_0xcabf('0x1')](_0xcabf('0x3')+_0x9ad181['UserId'],_0x9ad181);}};}exports[_0xcabf('0x4')]=function(_0x27c5b8){for(var _0x5db325=0x0,_0x2aeb9e=events['length'];_0x5db325<_0x2aeb9e;_0x5db325++){var _0x5557ac=events[_0x5db325];var _0x38fd8=createListener('user-setting:'+_0x5557ac,_0x27c5b8);UserSettingEvents['on'](_0x5557ac,_0x38fd8);}};