995b93501d4d72af8b1a3f25f668c64bc82883cf
[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 _0xdca3=['UserSetting','user_settings','clientSideLoggingEnabled','clientSideLoggingEnabledSince','./user-setting.attributes','define'];(function(_0x4f083c,_0xb9bf2d){var _0x3ccd71=function(_0x37bea1){while(--_0x37bea1){_0x4f083c['push'](_0x4f083c['shift']());}};_0x3ccd71(++_0xb9bf2d);}(_0xdca3,0x64));var _0x3dca=function(_0x19a677,_0x427306){_0x19a677=_0x19a677-0x0;var _0x4d7858=_0xdca3[_0x19a677];return _0x4d7858;};'use strict';var attributes=require(_0x3dca('0x0'));module['exports']=function(_0x42da3c){return _0x42da3c[_0x3dca('0x1')](_0x3dca('0x2'),attributes,{'tableName':_0x3dca('0x3'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x1754d1){if(!_0x1754d1[_0x3dca('0x4')])_0x1754d1[_0x3dca('0x5')]=null;else if(_0x1754d1[_0x3dca('0x5')]===null)_0x1754d1[_0x3dca('0x5')]=new Date();}}});};