e0a2b22ca7064c9d7f3a4c531dc206ec5e2be72e
[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 _0x80ed=['define','UserSetting','clientSideLoggingEnabled','clientSideLoggingEnabledSince','./user-setting.attributes'];(function(_0x380fa9,_0x5123eb){var _0x4f2532=function(_0x4bde43){while(--_0x4bde43){_0x380fa9['push'](_0x380fa9['shift']());}};_0x4f2532(++_0x5123eb);}(_0x80ed,0x11c));var _0xd80e=function(_0x2fb430,_0x59d266){_0x2fb430=_0x2fb430-0x0;var _0x5021ae=_0x80ed[_0x2fb430];return _0x5021ae;};'use strict';var attributes=require(_0xd80e('0x0'));module['exports']=function(_0x1bb10e){return _0x1bb10e[_0xd80e('0x1')](_0xd80e('0x2'),attributes,{'tableName':'user_settings','paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x47617b){if(!_0x47617b[_0xd80e('0x3')])_0x47617b[_0xd80e('0x4')]=null;else if(_0x47617b[_0xd80e('0x4')]===null)_0x47617b['clientSideLoggingEnabledSince']=new Date();}}});};