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 _0x0972=['exports','define','user_settings','clientSideLoggingEnabledSince'];(function(_0x5e542c,_0x2ccf1f){var _0x123e02=function(_0x169524){while(--_0x169524){_0x5e542c['push'](_0x5e542c['shift']());}};_0x123e02(++_0x2ccf1f);}(_0x0972,0x64));var _0x2097=function(_0x5543a8,_0xafa7d0){_0x5543a8=_0x5543a8-0x0;var _0x486750=_0x0972[_0x5543a8];return _0x486750;};'use strict';var attributes=require('./user-setting.attributes');module[_0x2097('0x0')]=function(_0x517422){return _0x517422[_0x2097('0x1')]('UserSetting',attributes,{'tableName':_0x2097('0x2'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x12f523){if(!_0x12f523['clientSideLoggingEnabled'])_0x12f523[_0x2097('0x3')]=null;else if(_0x12f523[_0x2097('0x3')]===null)_0x12f523[_0x2097('0x3')]=new Date();}}});};