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: true,
  cookieAcceptExpireDateNumber: 7,
  useHomePage: true,
  requireAuthenticationHomePage: false,
  fullSecureAuthentication: true,

  // WebServiceConfig
  backEndUrl: 'https://atlasx.cdg.co.th/axwa-demo',
  webServiceUrl: 'https://atlasx.cdg.co.th/axws-demo',
  appConfigPath: 'api/appconfig',
  appFilePath: 'api/appfile',
  appMailPath: 'api/appmail',
  directAccessUrl: 'http://localhost/webapp/authentication/DirectAccess.ashx',

  // AuthenticationConfig
  issuerUri: 'https://atlasx.cdg.co.th/axws-demo/api/appauthen',
  clientId: 'atlasx.cdg.co.th',
  clientSecret: null,
  redirectUri: 'https://atlasx.cdg.co.th/axwa-demo/callback',
  scope: 'atlasx',
  // redirectUrlAfterLogedIn: 'https://atlasx.cdg.co.th/axwa-demo',

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