const {
  ClientDetailsController,
  MarketController,
  ConfirmController,
} = require('./controllers')

module.exports = {
  '/': {
    entryPoint: true,
    resetJourney: true,
    skip: true,
    next: 'client-details',
  },
  '/client-details': {
    heading: 'Client details',
    backLink: null,
    editable: true,
    next: 'market',
    fields: ['company', 'contact'],
    controller: ClientDetailsController,
    templatePath: 'omis/apps/create/views',
    template: 'client-details',
  },
  '/market': {
    heading: 'Market (country) of interest',
    editable: true,
    next: 'subscribers',
    fields: ['primary_market'],
    controller: MarketController,
  },
  '/confirm': {
    heading: 'Check order details',
    backLink: null,
    templatePath: 'omis/apps/create/views',
    template: 'summary',
    controller: ConfirmController,
  },
}

const {
  ClientDetailsController,
  MarketController,
  ConfirmController,
} = require('./controllers')

module.exports = {
  '/': {
    entryPoint: true,
    resetJourney: true,
    skip: true,
    next: 'client-details',
  },
  '/client-details': {
    heading: 'Client details',
    backLink: null,
    editable: true,
    next: 'market',
    fields: ['company', 'contact'],
    controller: ClientDetailsController,
    templatePath: 'omis/apps/create/views',
    template: 'client-details',
  },
  '/market': {
    heading: 'Market (country) of interest',
    editable: true,
    next: 'confirm',
    fields: ['primary_market'],
    controller: MarketController,
  },
  '/confirm': {
    heading: 'Check order details',
    backLink: null,
    templatePath: 'omis/apps/create/views',
    template: 'summary',
    controller: ConfirmController,
  },
}

Fix next step for OMIS order creation
Fix next step for OMIS order creation

When removing the subscribers step the next step for market was
missed. This fixes that which caused an error after saving the primary
market.
