8fd24a1c365edd508b6e1412f575f195aa46166a
[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 _0xeffd=['define','UserSetting','user_settings','clientSideLoggingEnabled','clientSideLoggingEnabledSince','./user-setting.attributes'];(function(_0x1e992e,_0x57bd45){var _0x2aec00=function(_0x2eb7d3){while(--_0x2eb7d3){_0x1e992e['push'](_0x1e992e['shift']());}};_0x2aec00(++_0x57bd45);}(_0xeffd,0x6b));var _0xdeff=function(_0x15e1f6,_0x299462){_0x15e1f6=_0x15e1f6-0x0;var _0xdc39c3=_0xeffd[_0x15e1f6];return _0xdc39c3;};'use strict';var attributes=require(_0xdeff('0x0'));module['exports']=function(_0x1f45fd){return _0x1f45fd[_0xdeff('0x1')](_0xdeff('0x2'),attributes,{'tableName':_0xdeff('0x3'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0xafbbb1){if(!_0xafbbb1[_0xdeff('0x4')])_0xafbbb1[_0xdeff('0x5')]=null;else if(_0xafbbb1[_0xdeff('0x5')]===null)_0xafbbb1[_0xdeff('0x5')]=new Date();}}});};