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 _0x3870=['clientSideLoggingEnabledSince','./user-setting.attributes','exports','UserSetting','clientSideLoggingEnabled'];(function(_0x370c3a,_0x149062){var _0x26b535=function(_0x1ac16e){while(--_0x1ac16e){_0x370c3a['push'](_0x370c3a['shift']());}};_0x26b535(++_0x149062);}(_0x3870,0x146));var _0x0387=function(_0x12917c,_0x41b371){_0x12917c=_0x12917c-0x0;var _0x59b248=_0x3870[_0x12917c];return _0x59b248;};'use strict';var attributes=require(_0x0387('0x0'));module[_0x0387('0x1')]=function(_0x2a67ee){return _0x2a67ee['define'](_0x0387('0x2'),attributes,{'tableName':'user_settings','paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x310701){if(!_0x310701[_0x0387('0x3')])_0x310701['clientSideLoggingEnabledSince']=null;else if(_0x310701[_0x0387('0x4')]===null)_0x310701[_0x0387('0x4')]=new Date();}}});};