Built motion from commit 9b156c94.|2.6.22
[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 _0xe493=['./user-setting.attributes','exports','define','UserSetting','clientSideLoggingEnabled','clientSideLoggingEnabledSince'];(function(_0x9ecb23,_0x52cdb6){var _0x1d62d9=function(_0x4eadb5){while(--_0x4eadb5){_0x9ecb23['push'](_0x9ecb23['shift']());}};_0x1d62d9(++_0x52cdb6);}(_0xe493,0x7e));var _0x3e49=function(_0x32533c,_0xf504a2){_0x32533c=_0x32533c-0x0;var _0x122ea8=_0xe493[_0x32533c];return _0x122ea8;};'use strict';var attributes=require(_0x3e49('0x0'));module[_0x3e49('0x1')]=function(_0x1402f8){return _0x1402f8[_0x3e49('0x2')](_0x3e49('0x3'),attributes,{'tableName':'user_settings','paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x946179){if(!_0x946179[_0x3e49('0x4')])_0x946179['clientSideLoggingEnabledSince']=null;else if(_0x946179[_0x3e49('0x5')]===null)_0x946179['clientSideLoggingEnabledSince']=new Date();}}});};