const env = process.env;

module.exports = {
  // core
  environment: env.NODE_ENV || 'development', // dev, prod, test
  PORT: env.PORT || env.APP_PORT || 3000, // env to run karma on
  defaultLanguage: env.DEFAULT_LANGUAGE || 'en',
  conversationTimeout: env.CONVERSATION_TIMEOUT || 120000,

  // facebook
  facebookPageAccessToken: env.FACEBOOK_PAGE_ACCESS_TOKEN,
  facebookAppSecret: env.FACEBOOK_APP_SECRET,
  facebookApiVersion: env.FACEBOOK_API_VERSION || 'v2.10',
  facebookVerifyToken: env.FACEBOOK_VERIFY_TOKEN || 'karma',

  // external data stores
  onadataApiToken: env.ONADATA_API_TOKEN,
  rapidproApiToken: env.RAPIDPRO_API_TOKEN,
  rapidproGroups: env.RAPIDPRO_GROUPS ? JSON.parse(env.RAPIDPRO_GROUPS) : [],

  // logging and error reporting
  sentryDSN: env.SENTRY_DSN,
  karmaAccessLogFile: env.KARMA_ACCESS_LOG_FILE || 'bot.access.log',
  debugTranslations: env.DEBUG_TRANSLATIONS === 'true' || false,
};

const env = process.env;

module.exports = {
  // core
  environment: env.NODE_ENV || 'development', // dev, prod, test
  PORT: env.PORT || env.APP_PORT || 3000, // env to run karma on
  defaultLanguage: env.DEFAULT_LANGUAGE || 'en',
  conversationTimeout: env.CONVERSATION_TIMEOUT || 120000,

  // facebook
  facebookPageAccessToken: env.FACEBOOK_PAGE_ACCESS_TOKEN,
  facebookAppSecret: env.FACEBOOK_APP_SECRET,
  facebookApiVersion: env.FACEBOOK_API_VERSION || 'v2.10',
  facebookVerifyToken: env.FACEBOOK_VERIFY_TOKEN || 'karma',

  // external data stores
  onaOrg: env.ONA_ORG,
  onadataApiToken: env.ONADATA_API_TOKEN,
  rapidproApiToken: env.RAPIDPRO_API_TOKEN,
  rapidproGroups: env.RAPIDPRO_GROUPS ? JSON.parse(env.RAPIDPRO_GROUPS) : [],

  // logging and error reporting
  sentryDSN: env.SENTRY_DSN,
  karmaAccessLogFile: env.KARMA_ACCESS_LOG_FILE || 'bot.access.log',
  debugTranslations: env.DEBUG_TRANSLATIONS === 'true' || false,
};

Add an ONA_ORG env var
Add an ONA_ORG env var

This env var allows it to take the name of the user's Ona organization

Signed-off-by: Njagi Mwaniki <b6a4ba60ad861b9c9afb6daea7294be4be68f44c@urbanslug.com>
