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 _0xb79e=['user-setting:update:user-','register','length','user-setting:','./user-setting.events','save','emit','user-setting:update'];(function(_0x462dfc,_0x5ca8e1){var _0x14d933=function(_0x2d55e8){while(--_0x2d55e8){_0x462dfc['push'](_0x462dfc['shift']());}};_0x14d933(++_0x5ca8e1);}(_0xb79e,0x7c));var _0xeb79=function(_0x2c9553,_0x90df0b){_0x2c9553=_0x2c9553-0x0;var _0x42b3d6=_0xb79e[_0x2c9553];return _0x42b3d6;};'use strict';var UserSettingEvents=require(_0xeb79('0x0'));var events=[_0xeb79('0x1'),'remove','update'];function createListener(_0x548e4b,_0x47152a){return function(_0x47ae70){_0x47152a[_0xeb79('0x2')](_0x548e4b,_0x47ae70);if(_0x548e4b===_0xeb79('0x3')){_0x47152a[_0xeb79('0x2')](_0xeb79('0x4')+_0x47ae70['UserId'],_0x47ae70);}};}exports[_0xeb79('0x5')]=function(_0x3b7c15){for(var _0x38c124=0x0,_0x2445e8=events[_0xeb79('0x6')];_0x38c124<_0x2445e8;_0x38c124++){var _0x4df4b8=events[_0x38c124];var _0xba7e80=createListener(_0xeb79('0x7')+_0x4df4b8,_0x3b7c15);UserSettingEvents['on'](_0x4df4b8,_0xba7e80);}};