2022-02-02 04:05:31 +00:00
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
schemaCol: 'EVENT_SCHEMA',
|
2022-02-07 10:46:13 +00:00
|
|
|
nameCol: 'EVENT_NAME',
|
|
|
|
escapeCols: [
|
|
|
|
'starts',
|
|
|
|
'ends',
|
2022-02-07 14:43:12 +00:00
|
|
|
'executeAt',
|
|
|
|
'comment'
|
|
|
|
],
|
2022-12-29 13:27:16 +00:00
|
|
|
defaults: {
|
|
|
|
type: 'RECURRING',
|
|
|
|
intervalValue: 1,
|
|
|
|
intervalField: 'DAY',
|
|
|
|
onCompletion: 'PRESERVE'
|
|
|
|
},
|
2022-02-07 14:43:12 +00:00
|
|
|
formatter(params) {
|
|
|
|
let status;
|
|
|
|
switch(params.status){
|
|
|
|
case 'DISABLED':
|
|
|
|
status = 'DISABLE';
|
|
|
|
break;
|
|
|
|
case 'SLAVESIDE_DISABLED':
|
|
|
|
status = 'DISABLE ON SLAVE';
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
status = 'ENABLE'
|
|
|
|
}
|
|
|
|
params.status = status;
|
|
|
|
}
|
2022-02-02 04:05:31 +00:00
|
|
|
};
|