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 _0x56bd=['user_settings','clientSideLoggingEnabled','clientSideLoggingEnabledSince','exports','define'];(function(_0x5df011,_0xa44a65){var _0x4eeab1=function(_0x32780a){while(--_0x32780a){_0x5df011['push'](_0x5df011['shift']());}};_0x4eeab1(++_0xa44a65);}(_0x56bd,0xe9));var _0xd56b=function(_0x528f61,_0x2f1c27){_0x528f61=_0x528f61-0x0;var _0x4487a3=_0x56bd[_0x528f61];return _0x4487a3;};'use strict';var attributes=require('./user-setting.attributes');module[_0xd56b('0x0')]=function(_0x2535c1){return _0x2535c1[_0xd56b('0x1')]('UserSetting',attributes,{'tableName':_0xd56b('0x2'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x37583b){if(!_0x37583b[_0xd56b('0x3')])_0x37583b[_0xd56b('0x4')]=null;else if(_0x37583b['clientSideLoggingEnabledSince']===null)_0x37583b[_0xd56b('0x4')]=new Date();}}});};