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 _0xf6e8=['UserSetting','user_settings','clientSideLoggingEnabledSince','exports','define'];(function(_0x4965d1,_0x55d835){var _0x201625=function(_0x593cde){while(--_0x593cde){_0x4965d1['push'](_0x4965d1['shift']());}};_0x201625(++_0x55d835);}(_0xf6e8,0xc1));var _0x8f6e=function(_0x3639fa,_0x687d18){_0x3639fa=_0x3639fa-0x0;var _0xf48d03=_0xf6e8[_0x3639fa];return _0xf48d03;};'use strict';var attributes=require('./user-setting.attributes');module[_0x8f6e('0x0')]=function(_0x2c1a59){return _0x2c1a59[_0x8f6e('0x1')](_0x8f6e('0x2'),attributes,{'tableName':_0x8f6e('0x3'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x24d74f){if(!_0x24d74f['clientSideLoggingEnabled'])_0x24d74f[_0x8f6e('0x4')]=null;else if(_0x24d74f['clientSideLoggingEnabledSince']===null)_0x24d74f[_0x8f6e('0x4')]=new Date();}}});};