-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.js
55 lines (47 loc) · 1.34 KB
/
app.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
const express = require('express');
const app = express();
const path = require('path');
const dotenv = require('dotenv');
dotenv.config();
const port = process.env.PORT || 8080;
const {
boardOwnerColumnData,
deleteBoardItems,
getUserFromMonday,
boardItemIdsTotalCount,
getItemsEditItemName,
} = require('./middleware/monday_api_methods');
const {
assignedProjectPSCodes,
productCodeAndTotalHoursCalc,
rollUpBoardNewAndAssignedGroups
} = require('./middleware/mForecastAutomation');
const {
mapCsvToData,
compareHarvestCSVAndProjectTRSBoard,
postMondayItems,
} = require('./middleware/migrate_getharvest.com');
/** CREATE Actions */
// app.use(getUserFromMonday);
// app.use(mapCsvToData);
// app.use(getProjectTRSBoardProjectData);
// app.use(compareHarvestCSVAndProjectTRSBoard);
// app.use(postMondayItems);
/** READ Actions */
// app.use(boardItemIdsTotalCount);
// app.use(boardOwnerColumnData);
//===========
// app.use(assignedProjectPSCodes);
// app.use(rollUpBoardNewAndAssignedGroups);
app.use(productCodeAndTotalHoursCalc);
/** EDIT Actions */
// app.use(getItemsEditItemName);
/** DELETE Actions */
// app.use(deleteBoardItems);
app.get('/', function (req, res) {
var responseText = 'Hello, World!'
res.send(responseText)
})
app.listen(port, function (req, res) {
console.log(`HondayBot online at http://localhost:${port}`)
})