const challenges = require('./challenges/challenges.service');
const pledgeAdmins = require('./pledgeAdmins/pledgeAdmins.service');
const events = require('./events/events.service');

const dacs = require('./dacs/dacs.service.js');
const milestones = require('./milestones/milestones.service.js');
const campaigns = require('./campaigns/campaigns.service.js');
const users = require('./users/users.service.js');
const uploads = require('./uploads/uploads.service.js');
const donations = require('./donations/donations.service.js');
const whitelist = require('./whitelist/whitelist.service.js');
const gasprice = require('./gasprice/gasprice.service.js');
const ethconversion = require('./ethconversion/ethconversion.service.js');

const conversations = require('./conversations/conversations.service.js');

module.exports = function configure() {
  const app = this;
  app.configure(dacs);
  app.configure(milestones);
  app.configure(campaigns);
  app.configure(users);
  app.configure(uploads);
  app.configure(donations);
  app.configure(challenges);
  app.configure(pledgeAdmins);
  app.configure(whitelist);
  app.configure(gasprice);
  app.configure(ethconversion);
  app.configure(events);
  app.configure(conversations);
};
