// This file can be replaced during build by using the `fileReplacements` array.
// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.
// The list of file replacements can be found in `angular.json`.

import { GeneralEnvironmentConfig } from 'app/core/environment-config';
import { WebServiceConfig } from 'app/core/web-service-config';
import { AuthenticationConfig } from 'app/core/authentication-config';
import { ArcgisjsapiConfig } from 'app/core/arcgisjsapi-config';

export const environment:
  GeneralEnvironmentConfig &
  WebServiceConfig &
  AuthenticationConfig &
  ArcgisjsapiConfig = {
  // GeneralEnvironmentConfig
  production: false,
  cookieAcceptExpireDateNumber: 7,
  useHomePage: true,
  requireAuthenticationHomePage: false,
  fullSecureAuthentication: true,

  // WebServiceConfig
  backEndUrl: 'https://localhost:5003',
  webServiceUrl: 'https://localhost:5001',
  appConfigPath: 'api/appconfig',
  appFilePath: 'api/appfile',
  appMailPath: 'api/appmail',
  directAccessUrl: 'http://localhost/webapp/authentication/DirectAccess.ashx',

  // AuthenticationConfig
  issuerUri: 'https://localhost:5001/api/appauthen',
  clientId: 'atlasx.cdg.co.th',
  clientSecret: null,
  redirectUri: 'http://localhost:4200/callback',
  scope: 'atlasx',
  // redirectUrlAfterLogedIn: 'http://localhost:4200',

  // ArcgisjsapiConfig
  js: 'https://js.arcgis.com/3.32/',
  css: 'https://js.arcgis.com/3.32/esri/css/esri.css'
};

/*
 * For easier debugging in development mode, you can import the following file
 * to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.
 *
 * This import should be commented out in production mode because it will have a negative impact
 * on performance if an error is thrown.
 */
// import 'zone.js/dist/zone-error';  // Included with Angular CLI.
