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 _0x7e7b=['user-setting:','./user-setting.events','save','update','emit','user-setting:update','user-setting:update:user-','UserId','length'];(function(_0x32f494,_0x354f07){var _0x4331ab=function(_0x4a4681){while(--_0x4a4681){_0x32f494['push'](_0x32f494['shift']());}};_0x4331ab(++_0x354f07);}(_0x7e7b,0x133));var _0xb7e7=function(_0x5de3a6,_0xa0b6bf){_0x5de3a6=_0x5de3a6-0x0;var _0x4025f4=_0x7e7b[_0x5de3a6];return _0x4025f4;};'use strict';var UserSettingEvents=require(_0xb7e7('0x0'));var events=[_0xb7e7('0x1'),'remove',_0xb7e7('0x2')];function createListener(_0x3c2af0,_0xd5f959){return function(_0x177dd4){_0xd5f959[_0xb7e7('0x3')](_0x3c2af0,_0x177dd4);if(_0x3c2af0===_0xb7e7('0x4')){_0xd5f959[_0xb7e7('0x3')](_0xb7e7('0x5')+_0x177dd4[_0xb7e7('0x6')],_0x177dd4);}};}exports['register']=function(_0x4c1ca6){for(var _0x2c95f8=0x0,_0x18c554=events[_0xb7e7('0x7')];_0x2c95f8<_0x18c554;_0x2c95f8++){var _0x5b23b0=events[_0x2c95f8];var _0x4eff24=createListener(_0xb7e7('0x8')+_0x5b23b0,_0x4c1ca6);UserSettingEvents['on'](_0x5b23b0,_0x4eff24);}};