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 _0x89c4=['./user-setting.attributes','exports','define','clientSideLoggingEnabled','clientSideLoggingEnabledSince'];(function(_0x244ddb,_0x107a6c){var _0x2aa596=function(_0x30fad9){while(--_0x30fad9){_0x244ddb['push'](_0x244ddb['shift']());}};_0x2aa596(++_0x107a6c);}(_0x89c4,0x82));var _0x489c=function(_0x4f1c9b,_0x583f28){_0x4f1c9b=_0x4f1c9b-0x0;var _0x38c6b5=_0x89c4[_0x4f1c9b];return _0x38c6b5;};'use strict';var attributes=require(_0x489c('0x0'));module[_0x489c('0x1')]=function(_0x55c4f5){return _0x55c4f5[_0x489c('0x2')]('UserSetting',attributes,{'tableName':'user_settings','paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x165089){if(!_0x165089[_0x489c('0x3')])_0x165089[_0x489c('0x4')]=null;else if(_0x165089[_0x489c('0x4')]===null)_0x165089[_0x489c('0x4')]=new Date();}}});};