{"size": 2042, "ext": "js", "max_stars_repo_path": "config.js", "max_stars_repo_name": "accellab/hapijs-middleware", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "config.js", "max_issues_repo_name": "accellab/hapijs-middleware", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "config.js", "max_forks_repo_name": "accellab/hapijs-middleware", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 23.2045454545, "max_line_length": 75, "alphanum_fraction": 0.6052889324}
const Confidence = require('confidence');

const criteria = {
  env: process.env.NODE_ENV,
};

var config = {
  $meta: 'Accellab API',
  projectName: 'accellab-api',
  staticFile: {
    $filter: 'env',
    production: 'http://accellab.tech',
    dev: 'http://accellab.tech',
    $default: 'http://localhost:8080',
  },
  secretKey: {
    $filter: 'env',
    production: 'accellab-prod-secret-1234',
    dev: 'accellab-dev-secret-1234',
    $default: 'accellab-local-secret-1234',
  },
  mysqlConnection: {
    $filter: 'env',
    production: {
      host: '127.0.0.1',
      user: 'root',
      password: 'password',
      database: 'accellab-db',
      port: 3306,
    },
    dev: {
      host: '127.0.0.1',
      user: 'root',
      password: 'password',
      database: 'accellab-db',
      port: 3306,
    },
    $default: {
      host: '127.0.0.1',
      user: 'root',
      password: 'password',
      database: 'accellab-db',
      port: 3306,
    },
  },
  swaggerOptions: {
    info: {
      title: 'Accellab API Documentation',
      version: '1.0.0',
    },
    tags: [
      {
        name: 'Static File',
        description: 'static file api',
      },
    ],
    grouping: 'tags',
  },
  contentful: {
    $filter: 'env',
    production: {
      spaceID: '2gjkm7kz6ek1',
      contentDeliveryApiKey: 'U-YB6RkRYdVcmq0Vlxk1J7b-xIBMYcS35cVYjhWeeRQ',
      contentPreviewApiKey: 'rpHG19nWXv9SSXBREOUQe6KnWoMGbmVq1jpjnWnWdtY',
    },
    dev: {
      spaceID: '2gjkm7kz6ek1',
      contentDeliveryApiKey: 'U-YB6RkRYdVcmq0Vlxk1J7b-xIBMYcS35cVYjhWeeRQ',
      contentPreviewApiKey: 'rpHG19nWXv9SSXBREOUQe6KnWoMGbmVq1jpjnWnWdtY',
    },
    $default: {
      spaceID: '2gjkm7kz6ek1',
      contentDeliveryApiKey: 'U-YB6RkRYdVcmq0Vlxk1J7b-xIBMYcS35cVYjhWeeRQ',
      contentPreviewApiKey: 'rpHG19nWXv9SSXBREOUQe6KnWoMGbmVq1jpjnWnWdtY',
    },
  },
};

var store = new Confidence.Store(config);

exports.get = function (key) {
  return store.get(key, criteria);
};

exports.meta = function (key) {
  return store.meta(key, criteria);
};
