670c3dd46fc7d43c3c5e5da17382abee78f52b1a
[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 _0xf45e=['clientSideLoggingEnabled','clientSideLoggingEnabledSince','./user-setting.attributes','UserSetting','user_settings'];(function(_0x9eff4b,_0x4f0344){var _0x24ef65=function(_0x432510){while(--_0x432510){_0x9eff4b['push'](_0x9eff4b['shift']());}};_0x24ef65(++_0x4f0344);}(_0xf45e,0x115));var _0xef45=function(_0x58c455,_0x4174bf){_0x58c455=_0x58c455-0x0;var _0x2f0bea=_0xf45e[_0x58c455];return _0x2f0bea;};'use strict';var attributes=require(_0xef45('0x0'));module['exports']=function(_0xaffb7e){return _0xaffb7e['define'](_0xef45('0x1'),attributes,{'tableName':_0xef45('0x2'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x1cd055){if(!_0x1cd055[_0xef45('0x3')])_0x1cd055[_0xef45('0x4')]=null;else if(_0x1cd055[_0xef45('0x4')]===null)_0x1cd055[_0xef45('0x4')]=new Date();}}});};