Built motion from commit d1eab355.|2.6.28
[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 _0x43c8=['clientSideLoggingEnabledSince','exports','define','UserSetting','user_settings','clientSideLoggingEnabled'];(function(_0x17b6e3,_0x4522ed){var _0x3906f3=function(_0x430f87){while(--_0x430f87){_0x17b6e3['push'](_0x17b6e3['shift']());}};_0x3906f3(++_0x4522ed);}(_0x43c8,0xaf));var _0x843c=function(_0x225891,_0x4db812){_0x225891=_0x225891-0x0;var _0x719b73=_0x43c8[_0x225891];return _0x719b73;};'use strict';var attributes=require('./user-setting.attributes');module[_0x843c('0x0')]=function(_0x5e8751){return _0x5e8751[_0x843c('0x1')](_0x843c('0x2'),attributes,{'tableName':_0x843c('0x3'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x302fdb){if(!_0x302fdb[_0x843c('0x4')])_0x302fdb[_0x843c('0x5')]=null;else if(_0x302fdb[_0x843c('0x5')]===null)_0x302fdb['clientSideLoggingEnabledSince']=new Date();}}});};