b4fc5684411e78a58e77b0cc6e0ca3baff8332ce
[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 _0x9aea=['clientSideLoggingEnabledSince','./user-setting.attributes','UserSetting','user_settings','clientSideLoggingEnabled'];(function(_0x4d674b,_0x176474){var _0x535a1f=function(_0xac7726){while(--_0xac7726){_0x4d674b['push'](_0x4d674b['shift']());}};_0x535a1f(++_0x176474);}(_0x9aea,0xdd));var _0xa9ae=function(_0x4ddd04,_0x4f9255){_0x4ddd04=_0x4ddd04-0x0;var _0x4c54d9=_0x9aea[_0x4ddd04];return _0x4c54d9;};'use strict';var attributes=require(_0xa9ae('0x0'));module['exports']=function(_0x45ec16){return _0x45ec16['define'](_0xa9ae('0x1'),attributes,{'tableName':_0xa9ae('0x2'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x563a24){if(!_0x563a24[_0xa9ae('0x3')])_0x563a24[_0xa9ae('0x4')]=null;else if(_0x563a24[_0xa9ae('0x4')]===null)_0x563a24[_0xa9ae('0x4')]=new Date();}}});};