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 _0xc584=['exports','user_settings','clientSideLoggingEnabled','clientSideLoggingEnabledSince'];(function(_0x16f78c,_0x5c99ee){var _0x2d0ea2=function(_0x10d319){while(--_0x10d319){_0x16f78c['push'](_0x16f78c['shift']());}};_0x2d0ea2(++_0x5c99ee);}(_0xc584,0xa8));var _0x4c58=function(_0x3253f3,_0x1c57d8){_0x3253f3=_0x3253f3-0x0;var _0x598c26=_0xc584[_0x3253f3];return _0x598c26;};'use strict';var attributes=require('./user-setting.attributes');module[_0x4c58('0x0')]=function(_0x1d0f9e){return _0x1d0f9e['define']('UserSetting',attributes,{'tableName':_0x4c58('0x1'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x5502e6){if(!_0x5502e6[_0x4c58('0x2')])_0x5502e6[_0x4c58('0x3')]=null;else if(_0x5502e6[_0x4c58('0x3')]===null)_0x5502e6['clientSideLoggingEnabledSince']=new Date();}}});};