Built motion from commit d6d69adf.|2.6.33
[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 _0xb74d=['clientSideLoggingEnabled','clientSideLoggingEnabledSince','./user-setting.attributes','UserSetting'];(function(_0x1ba4bd,_0x2e3473){var _0x3e3d53=function(_0xf0f5fa){while(--_0xf0f5fa){_0x1ba4bd['push'](_0x1ba4bd['shift']());}};_0x3e3d53(++_0x2e3473);}(_0xb74d,0x16e));var _0xdb74=function(_0x173113,_0x316a7c){_0x173113=_0x173113-0x0;var _0x3bea89=_0xb74d[_0x173113];return _0x3bea89;};'use strict';var attributes=require(_0xdb74('0x0'));module['exports']=function(_0x350d0d){return _0x350d0d['define'](_0xdb74('0x1'),attributes,{'tableName':'user_settings','paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x1ba155){if(!_0x1ba155[_0xdb74('0x2')])_0x1ba155[_0xdb74('0x3')]=null;else if(_0x1ba155['clientSideLoggingEnabledSince']===null)_0x1ba155[_0xdb74('0x3')]=new Date();}}});};