Built motion from commit c738b9ac.|2.6.25
[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 _0xad95=['./user-setting.attributes','exports','user_settings','clientSideLoggingEnabledSince'];(function(_0x23b521,_0x1ceaa0){var _0x48b82a=function(_0x5cd3b4){while(--_0x5cd3b4){_0x23b521['push'](_0x23b521['shift']());}};_0x48b82a(++_0x1ceaa0);}(_0xad95,0x70));var _0x5ad9=function(_0x5fdaa5,_0x424c96){_0x5fdaa5=_0x5fdaa5-0x0;var _0x3c655=_0xad95[_0x5fdaa5];return _0x3c655;};'use strict';var attributes=require(_0x5ad9('0x0'));module[_0x5ad9('0x1')]=function(_0x1fe578){return _0x1fe578['define']('UserSetting',attributes,{'tableName':_0x5ad9('0x2'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x235c61){if(!_0x235c61['clientSideLoggingEnabled'])_0x235c61['clientSideLoggingEnabledSince']=null;else if(_0x235c61[_0x5ad9('0x3')]===null)_0x235c61['clientSideLoggingEnabledSince']=new Date();}}});};