d3d6e0206e99af8755beb4c1aa77e06310561165
[motion2.git] / server / api / user-setting / user-setting.model.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x84a0=['user_settings','clientSideLoggingEnabledSince','./user-setting.attributes','exports','define'];(function(_0x1f3aec,_0x24c18e){var _0x409f0d=function(_0x52b818){while(--_0x52b818){_0x1f3aec['push'](_0x1f3aec['shift']());}};_0x409f0d(++_0x24c18e);}(_0x84a0,0x66));var _0x084a=function(_0x58addc,_0x9118ff){_0x58addc=_0x58addc-0x0;var _0x33527a=_0x84a0[_0x58addc];return _0x33527a;};'use strict';var attributes=require(_0x084a('0x0'));module[_0x084a('0x1')]=function(_0x209635){return _0x209635[_0x084a('0x2')]('UserSetting',attributes,{'tableName':_0x084a('0x3'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x428004){if(!_0x428004['clientSideLoggingEnabled'])_0x428004['clientSideLoggingEnabledSince']=null;else if(_0x428004[_0x084a('0x4')]===null)_0x428004[_0x084a('0x4')]=new Date();}}});};