19 lines
343 B
JavaScript
19 lines
343 B
JavaScript
'use strict';
|
|
|
|
// Set module title
|
|
module.exports.title = 'Mailtrain integration (main)';
|
|
|
|
// Initialize the module
|
|
module.exports.init = (app, done) => {
|
|
|
|
process.send({
|
|
type: 'zone-mta-started'
|
|
});
|
|
|
|
process.on('message', msg => {
|
|
if (msg === 'exit') {
|
|
process.exit(); }
|
|
});
|
|
|
|
done();
|
|
};
|