/* jshint node: true */

module.exports = function(environment) {
  var ENV = {
    modulePrefix: 'amoya',
    environment: environment,
    baseURL: '/',
    locationType: 'auto',
    EmberENV: {
      FEATURES: {
        // Here you can enable experimental features on an ember canary build
        // e.g. 'with-controller': true
      }
    },
    contentSecurityPolicy: {
      'default-src': "'none'",
      'script-src': "'self' 'unsafe-inline' 'unsafe-eval' https://www.dropbox.com https://apis.google.com",
      'font-src': "'self'",
      'connect-src': "'self' ws://localhost:8001 localhost:8001 https://*.googleusercontent.com",
      'img-src': "'self' data:",
      'report-uri':"'localhost'",
      'style-src': "'self' 'unsafe-inline'",
      'frame-src': "'self' https://accounts.google.com https://content.googleapis.com https://docs.google.com",
      'child-src': "'self' ws://localhost:8001 localhost:8001"
    },

    i18n: {
      defaultLocale: 'en'
    },
    APP: {
      // Here you can pass flags/options to your application instance
      // when it is created
      DROPBOX_APP_KEY: '***REMOVED***',
      GOOGLE_CLIENT_ID: '***REMOVED***' +
        '.apps.googleusercontent.com',
      GOOGLE_APP_ID: '***REMOVED***',
      GOOGLE_API_KEY: '***REMOVED***'
    }
  };

  if (environment === 'development') {
    // ENV.APP.LOG_RESOLVER = true;
    // ENV.APP.LOG_ACTIVE_GENERATION = true;
    // ENV.APP.LOG_TRANSITIONS = true;
    // ENV.APP.LOG_TRANSITIONS_INTERNAL = true;
    // ENV.APP.LOG_VIEW_LOOKUPS = true;
    ENV.APP.SERVER_URL = 'http://localhost:8001';
  }

  if (environment === 'test') {
    // Testem prefers this...
    ENV.baseURL = '/';
    ENV.locationType = 'none';

    // keep test console output quieter
    ENV.APP.LOG_ACTIVE_GENERATION = false;
    ENV.APP.LOG_VIEW_LOOKUPS = false;

    ENV.APP.rootElement = '#ember-testing';
  }

  if (environment === 'production') {
    ENV.APP.SERVER_URL = 'https://asciidoclive.com';
    ENV.googleAnalytics = {
      webPropertyId: 'UA-21264754-2'
    };
  }

  return ENV;
};

@@ -1108,29 +1108,33 @@
 P_KEY: '
-***REMOVED***
+%3CDropbox App Key%3E
 ',%0A     
@@ -1157,61 +1157,26 @@
 D: '
-***REMOVED***' +%0A        '.apps.googleusercontent.com
+%3CGoogle Client ID%3E
 ',%0A 
@@ -1196,29 +1196,31 @@
 PP_ID: '
-***REMOVED***
+%3CGoogle App ID%3E
 ',%0A     
@@ -1241,21 +1241,24 @@
 Y: '
-***REMOVED***
+%3CGoogle API Key%3E
 '%0A  
@@ -2002,21 +2002,29 @@
 d: '
-UA-21264754-2
+%3CGoogle Analytics ID%3E
 '%0A  

Delete app IDs and keys in config