Built motion from commit 47436d59.|2.6.7
[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 _0x2e54=['user_settings','clientSideLoggingEnabled','clientSideLoggingEnabledSince','./user-setting.attributes','define','UserSetting'];(function(_0x867359,_0x134758){var _0x1516f2=function(_0x57dcfb){while(--_0x57dcfb){_0x867359['push'](_0x867359['shift']());}};_0x1516f2(++_0x134758);}(_0x2e54,0x1dd));var _0x42e5=function(_0x4a1c34,_0x3e5c56){_0x4a1c34=_0x4a1c34-0x0;var _0x279d08=_0x2e54[_0x4a1c34];return _0x279d08;};'use strict';var attributes=require(_0x42e5('0x0'));module['exports']=function(_0x527a1a){return _0x527a1a[_0x42e5('0x1')](_0x42e5('0x2'),attributes,{'tableName':_0x42e5('0x3'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x1c62bb){if(!_0x1c62bb[_0x42e5('0x4')])_0x1c62bb[_0x42e5('0x5')]=null;else if(_0x1c62bb[_0x42e5('0x5')]===null)_0x1c62bb['clientSideLoggingEnabledSince']=new Date();}}});};