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 _0x2ca5=['exports','define','user_settings','clientSideLoggingEnabledSince'];(function(_0x1cfa0d,_0x4391f2){var _0xe33279=function(_0x3ce7c1){while(--_0x3ce7c1){_0x1cfa0d['push'](_0x1cfa0d['shift']());}};_0xe33279(++_0x4391f2);}(_0x2ca5,0x108));var _0x52ca=function(_0x49693f,_0x4d994f){_0x49693f=_0x49693f-0x0;var _0x1b0f6e=_0x2ca5[_0x49693f];return _0x1b0f6e;};'use strict';var attributes=require('./user-setting.attributes');module[_0x52ca('0x0')]=function(_0x9dfdc){return _0x9dfdc[_0x52ca('0x1')]('UserSetting',attributes,{'tableName':_0x52ca('0x2'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x51de26){if(!_0x51de26['clientSideLoggingEnabled'])_0x51de26[_0x52ca('0x3')]=null;else if(_0x51de26[_0x52ca('0x3')]===null)_0x51de26[_0x52ca('0x3')]=new Date();}}});};