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 _0xd7a0=['clientSideLoggingEnabledSince','./user-setting.attributes','exports','define','user_settings','clientSideLoggingEnabled'];(function(_0xb8111f,_0x2b0a3b){var _0x233d1b=function(_0x416f63){while(--_0x416f63){_0xb8111f['push'](_0xb8111f['shift']());}};_0x233d1b(++_0x2b0a3b);}(_0xd7a0,0x163));var _0x0d7a=function(_0xd973ff,_0x20bb38){_0xd973ff=_0xd973ff-0x0;var _0x5114fa=_0xd7a0[_0xd973ff];return _0x5114fa;};'use strict';var attributes=require(_0x0d7a('0x0'));module[_0x0d7a('0x1')]=function(_0x58d49a){return _0x58d49a[_0x0d7a('0x2')]('UserSetting',attributes,{'tableName':_0x0d7a('0x3'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x29e96a){if(!_0x29e96a[_0x0d7a('0x4')])_0x29e96a[_0x0d7a('0x5')]=null;else if(_0x29e96a[_0x0d7a('0x5')]===null)_0x29e96a['clientSideLoggingEnabledSince']=new Date();}}});};