Built motion from commit da617fac.|2.6.6
[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 _0x93e6=['clientSideLoggingEnabledSince','./user-setting.attributes','define','user_settings','clientSideLoggingEnabled'];(function(_0xc63d49,_0x48e9f9){var _0x4ff3d9=function(_0x405098){while(--_0x405098){_0xc63d49['push'](_0xc63d49['shift']());}};_0x4ff3d9(++_0x48e9f9);}(_0x93e6,0x11e));var _0x693e=function(_0x268396,_0x864c1c){_0x268396=_0x268396-0x0;var _0x2d7b5d=_0x93e6[_0x268396];return _0x2d7b5d;};'use strict';var attributes=require(_0x693e('0x0'));module['exports']=function(_0x5f4d40){return _0x5f4d40[_0x693e('0x1')]('UserSetting',attributes,{'tableName':_0x693e('0x2'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x4e7e48){if(!_0x4e7e48[_0x693e('0x3')])_0x4e7e48[_0x693e('0x4')]=null;else if(_0x4e7e48[_0x693e('0x4')]===null)_0x4e7e48['clientSideLoggingEnabledSince']=new Date();}}});};