2018-01-20 20:23:27 +01:00
|
|
|
const config = require('../../../conf/config.json');
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* simply prints out the found data to the console
|
|
|
|
|
* @param serviceName e.g immoscout
|
2018-02-06 13:57:32 +01:00
|
|
|
* @param newListings an array with newly found listings
|
2018-01-20 20:23:27 +01:00
|
|
|
*/
|
2018-02-06 13:57:32 +01:00
|
|
|
exports.send = (serviceName, newListings) => {
|
2018-02-13 12:43:37 +01:00
|
|
|
return [Promise.resolve(console.info(`Found entry from service ${serviceName}:`, newListings))];
|
2018-01-20 20:23:27 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* each integration needs to implement this method
|
|
|
|
|
*/
|
|
|
|
|
exports.enabled = () => {
|
|
|
|
|
return config.notification.console.enabled;
|
|
|
|
|
};
|