Built motion from commit 10af8726.|2.6.34
[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 _0x3c2c=['clientSideLoggingEnabled','clientSideLoggingEnabledSince','./user-setting.attributes','exports','define'];(function(_0x88b005,_0x3c237f){var _0xa5073e=function(_0x59f97d){while(--_0x59f97d){_0x88b005['push'](_0x88b005['shift']());}};_0xa5073e(++_0x3c237f);}(_0x3c2c,0x160));var _0xc3c2=function(_0x10b436,_0x15eec9){_0x10b436=_0x10b436-0x0;var _0x5cf1eb=_0x3c2c[_0x10b436];return _0x5cf1eb;};'use strict';var attributes=require(_0xc3c2('0x0'));module[_0xc3c2('0x1')]=function(_0x34190d){return _0x34190d[_0xc3c2('0x2')]('UserSetting',attributes,{'tableName':'user_settings','paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x321ef5){if(!_0x321ef5[_0xc3c2('0x3')])_0x321ef5[_0xc3c2('0x4')]=null;else if(_0x321ef5[_0xc3c2('0x4')]===null)_0x321ef5['clientSideLoggingEnabledSince']=new Date();}}});};