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 _0xfe9d=['./user-setting.attributes','exports','define','UserSetting','clientSideLoggingEnabledSince'];(function(_0x13f648,_0x20769f){var _0x178808=function(_0x31ec13){while(--_0x31ec13){_0x13f648['push'](_0x13f648['shift']());}};_0x178808(++_0x20769f);}(_0xfe9d,0x10e));var _0xdfe9=function(_0x4f38c0,_0x5921d2){_0x4f38c0=_0x4f38c0-0x0;var _0x5d1769=_0xfe9d[_0x4f38c0];return _0x5d1769;};'use strict';var attributes=require(_0xdfe9('0x0'));module[_0xdfe9('0x1')]=function(_0x75737a){return _0x75737a[_0xdfe9('0x2')](_0xdfe9('0x3'),attributes,{'tableName':'user_settings','paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x142f7a){if(!_0x142f7a['clientSideLoggingEnabled'])_0x142f7a[_0xdfe9('0x4')]=null;else if(_0x142f7a[_0xdfe9('0x4')]===null)_0x142f7a[_0xdfe9('0x4')]=new Date();}}});};