9d332ef665e4631ed45c0f1a42f5b42d9a176f34
[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 _0x6b20=['exports','define','user_settings','clientSideLoggingEnabled','clientSideLoggingEnabledSince','./user-setting.attributes'];(function(_0x3b8428,_0xe3c0d){var _0x4127a8=function(_0x2abb1d){while(--_0x2abb1d){_0x3b8428['push'](_0x3b8428['shift']());}};_0x4127a8(++_0xe3c0d);}(_0x6b20,0xd1));var _0x06b2=function(_0x344412,_0x983e88){_0x344412=_0x344412-0x0;var _0x48fc21=_0x6b20[_0x344412];return _0x48fc21;};'use strict';var attributes=require(_0x06b2('0x0'));module[_0x06b2('0x1')]=function(_0x52753b){return _0x52753b[_0x06b2('0x2')]('UserSetting',attributes,{'tableName':_0x06b2('0x3'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0xdcad44){if(!_0xdcad44[_0x06b2('0x4')])_0xdcad44['clientSideLoggingEnabledSince']=null;else if(_0xdcad44[_0x06b2('0x5')]===null)_0xdcad44[_0x06b2('0x5')]=new Date();}}});};