mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 02:11:44 +03:00
76f06fae3c
This reverts commit fa8c3ebe99
.
Reverting the revert, which will allow us to fully switch to @tryghost/logging v2.
18 lines
609 B
JavaScript
18 lines
609 B
JavaScript
const config = require('../../../shared/config');
|
|
const db = require('../../data/db');
|
|
const settings = require('../../../shared/settings-cache');
|
|
const {EmailAnalyticsService} = require('@tryghost/email-analytics-service');
|
|
const EventProcessor = require('./lib/event-processor');
|
|
const MailgunProvider = require('@tryghost/email-analytics-provider-mailgun');
|
|
const queries = require('./lib/queries');
|
|
|
|
module.exports = new EmailAnalyticsService({
|
|
config,
|
|
settings,
|
|
eventProcessor: new EventProcessor({db}),
|
|
providers: [
|
|
new MailgunProvider({config, settings})
|
|
],
|
|
queries
|
|
});
|