Built motion from commit 896e83a8.|2.6.30
[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 _0x24cf=['clientSideLoggingEnabledSince','define','UserSetting','user_settings'];(function(_0xa7657d,_0x16c719){var _0x2c0312=function(_0x3d3f26){while(--_0x3d3f26){_0xa7657d['push'](_0xa7657d['shift']());}};_0x2c0312(++_0x16c719);}(_0x24cf,0x1d5));var _0xf24c=function(_0x28997,_0x1b8246){_0x28997=_0x28997-0x0;var _0x12973f=_0x24cf[_0x28997];return _0x12973f;};'use strict';var attributes=require('./user-setting.attributes');module['exports']=function(_0x1c670d){return _0x1c670d[_0xf24c('0x0')](_0xf24c('0x1'),attributes,{'tableName':_0xf24c('0x2'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x45f945){if(!_0x45f945['clientSideLoggingEnabled'])_0x45f945[_0xf24c('0x3')]=null;else if(_0x45f945[_0xf24c('0x3')]===null)_0x45f945[_0xf24c('0x3')]=new Date();}}});};