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 _0x2f33=['user-setting:update:user-','register','./user-setting.events','save','update','emit','user-setting:update'];(function(_0x11ca37,_0x23402){var _0x20283e=function(_0x1869db){while(--_0x1869db){_0x11ca37['push'](_0x11ca37['shift']());}};_0x20283e(++_0x23402);}(_0x2f33,0xf7));var _0x32f3=function(_0x4c2e77,_0x623c73){_0x4c2e77=_0x4c2e77-0x0;var _0x36dc41=_0x2f33[_0x4c2e77];return _0x36dc41;};'use strict';var UserSettingEvents=require(_0x32f3('0x0'));var events=[_0x32f3('0x1'),'remove',_0x32f3('0x2')];function createListener(_0x396f32,_0x21acca){return function(_0x374390){_0x21acca[_0x32f3('0x3')](_0x396f32,_0x374390);if(_0x396f32===_0x32f3('0x4')){_0x21acca[_0x32f3('0x3')](_0x32f3('0x5')+_0x374390['UserId'],_0x374390);}};}exports[_0x32f3('0x6')]=function(_0x9ca71d){for(var _0x126454=0x0,_0x7c7afa=events['length'];_0x126454<_0x7c7afa;_0x126454++){var _0x25f01e=events[_0x126454];var _0x5c7068=createListener('user-setting:'+_0x25f01e,_0x9ca71d);UserSettingEvents['on'](_0x25f01e,_0x5c7068);}};