'use strict';
|
|
|
|
const cron = require('node-cron');
|
|
|
|
|
|
|
|
const routineFetchAllInvestors = () => {
|
|
cron.schedule(process.env.SCHEDULER_RULE_FETCH_ALL_INVESTOR, () => {
|
|
console.log("running scheduler");
|
|
// recordingController.callExotelRecording();
|
|
})
|
|
};
|
|
const routineGetInvestmentSummary = () => {
|
|
cron.schedule(process.env.SCHEDULER_RULE_INVESTMENT_SUMMARY, () => {
|
|
console.log("running scheduler");
|
|
// recordingController.callExotelRecording();
|
|
})
|
|
};
|
|
const routineGetTransactionById = () => {
|
|
cron.schedule(process.env.SCHEDULER_RULE_TRANS_ID, () => {
|
|
console.log("running scheduler");
|
|
// recordingController.callExotelRecording();
|
|
})
|
|
};
|
|
|
|
module.exports = {
|
|
routineFetchAllInvestors,
|
|
routineGetInvestmentSummary,
|
|
routineGetTransactionById
|
|
};
|
|
|
Powered by TurnKey Linux.