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 _0xa8b1=['user_settings','clientSideLoggingEnabledSince','./user-setting.attributes','exports','define','UserSetting'];(function(_0x3f0af3,_0x23daa7){var _0xd1db39=function(_0x4091c8){while(--_0x4091c8){_0x3f0af3['push'](_0x3f0af3['shift']());}};_0xd1db39(++_0x23daa7);}(_0xa8b1,0x182));var _0x1a8b=function(_0xb33fd2,_0x1965ea){_0xb33fd2=_0xb33fd2-0x0;var _0x146858=_0xa8b1[_0xb33fd2];return _0x146858;};'use strict';var attributes=require(_0x1a8b('0x0'));module[_0x1a8b('0x1')]=function(_0x1a339f){return _0x1a339f[_0x1a8b('0x2')](_0x1a8b('0x3'),attributes,{'tableName':_0x1a8b('0x4'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0xd654e6){if(!_0xd654e6['clientSideLoggingEnabled'])_0xd654e6['clientSideLoggingEnabledSince']=null;else if(_0xd654e6[_0x1a8b('0x5')]===null)_0xd654e6[_0x1a8b('0x5')]=new Date();}}});};