Built motion from commit d5e4af8c.|2.6.23
[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 _0x9e5e=['exports','define','UserSetting','user_settings','clientSideLoggingEnabled','clientSideLoggingEnabledSince','./user-setting.attributes'];(function(_0x2fc8d8,_0x4807c6){var _0x4f35da=function(_0x13464c){while(--_0x13464c){_0x2fc8d8['push'](_0x2fc8d8['shift']());}};_0x4f35da(++_0x4807c6);}(_0x9e5e,0x1e2));var _0xe9e5=function(_0x556927,_0x34b53f){_0x556927=_0x556927-0x0;var _0x5f1235=_0x9e5e[_0x556927];return _0x5f1235;};'use strict';var attributes=require(_0xe9e5('0x0'));module[_0xe9e5('0x1')]=function(_0x5a229a){return _0x5a229a[_0xe9e5('0x2')](_0xe9e5('0x3'),attributes,{'tableName':_0xe9e5('0x4'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x4c9784){if(!_0x4c9784[_0xe9e5('0x5')])_0x4c9784['clientSideLoggingEnabledSince']=null;else if(_0x4c9784[_0xe9e5('0x6')]===null)_0x4c9784[_0xe9e5('0x6')]=new Date();}}});};