import { AxAuthenticationConfig } from '@atlasx/core/authentication'
import { ArcgisjsapiConfig } from '../app/gis/arcgisjsapi.config'
import { ApplicationConfig } from '../app/core/config/application.config'


// 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`.

export const environment: ApplicationConfig & AxAuthenticationConfig & ArcgisjsapiConfig = {
  production: false,
  // webServiceUrl: 'https://localhost:5001',
  webServiceUrl: 'https://atlasx.cdg.co.th/axws-demo',

  // OAuth client information.
  clientId: 'atlasx-web-application',
  clientSecret: '02FZf68/Xff0hrSQgc7Je5CNgdjaSgltNU4gb3AbJ9A=',

  // When use full secure authentication, application are required
  // the callbackUri property.
  fullSecureAuthentication: true,
  callbackUri: 'http://localhost:4200/callback',

  // If not use full secure authentication, application are required
  // the loginUri property.
  // fullSecureAuthentication: false,
  // loginUri: 'http://localhost:4200/login',

  // ArcGIS API for JavaScript.
  js: 'https://js.arcgis.com/4.17/',
  css: 'https://js.arcgis.com/4.17/esri/themes/light/main.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.
