bb0633aa02b4c844860705912eb59f6fb4441f19
[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 _0x152f=['./user-setting.attributes','exports','define','UserSetting','clientSideLoggingEnabled','clientSideLoggingEnabledSince'];(function(_0x568758,_0x72a9cd){var _0x1120fe=function(_0x397fdc){while(--_0x397fdc){_0x568758['push'](_0x568758['shift']());}};_0x1120fe(++_0x72a9cd);}(_0x152f,0x144));var _0xf152=function(_0x5e3b04,_0xbb6795){_0x5e3b04=_0x5e3b04-0x0;var _0x1fc44d=_0x152f[_0x5e3b04];return _0x1fc44d;};'use strict';var attributes=require(_0xf152('0x0'));module[_0xf152('0x1')]=function(_0x3649e1){return _0x3649e1[_0xf152('0x2')](_0xf152('0x3'),attributes,{'tableName':'user_settings','paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x2d77c1){if(!_0x2d77c1[_0xf152('0x4')])_0x2d77c1[_0xf152('0x5')]=null;else if(_0x2d77c1[_0xf152('0x5')]===null)_0x2d77c1['clientSideLoggingEnabledSince']=new Date();}}});};