b029a44ee2c515d719f038033224f7fa548bef25
[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 _0xe605=['exports','define','UserSetting','user_settings','clientSideLoggingEnabled','clientSideLoggingEnabledSince','./user-setting.attributes'];(function(_0x227c55,_0x49db56){var _0x49e02b=function(_0x5bdd70){while(--_0x5bdd70){_0x227c55['push'](_0x227c55['shift']());}};_0x49e02b(++_0x49db56);}(_0xe605,0x92));var _0x5e60=function(_0x2ebdfd,_0x3e86bf){_0x2ebdfd=_0x2ebdfd-0x0;var _0x4a6531=_0xe605[_0x2ebdfd];return _0x4a6531;};'use strict';var attributes=require(_0x5e60('0x0'));module[_0x5e60('0x1')]=function(_0x5deab2){return _0x5deab2[_0x5e60('0x2')](_0x5e60('0x3'),attributes,{'tableName':_0x5e60('0x4'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x1133f0){if(!_0x1133f0[_0x5e60('0x5')])_0x1133f0[_0x5e60('0x6')]=null;else if(_0x1133f0[_0x5e60('0x6')]===null)_0x1133f0[_0x5e60('0x6')]=new Date();}}});};