# API Keys
OPENAI_API_KEY=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
SHERIFF_API_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MjAxOCwiZmlyc3ROYW1lIjoiTWF1cmljaW8iLCJyb2xlSWQiOjIsImNvcnBvcmF0aW9uSWQiOjc3NCwidGVhbUlkIjpudWxsfQ.DVg7ob96uEQxVJ8Rs9OlsMl1xEFy8-4zHVN9V9CjhhM
#QA SHERIFF_API_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MTc5LCJmaXJzdE5hbWUiOiJBbGVzc2FuZHJvIiwicm9sZUlkIjoyLCJjb3Jwb3JhdGlvbklkIjoxMjIsImlhdCI6MTc1NTgzMzY5MX0.lOWUqGQkXVutB4AsWrdp22pOkyRebCbQBXvFfVwD9Yk

# Database
MONGODB_URI=mongodb://172.19.40.102:27017,172.19.40.103:27017/duxiter?replicaSet=rs0

# Server 
PORT=4040
RATE_LIMIT_WINDOW_MS=900000
RATE_LIMIT_MAX_REQUESTS=1000

# API URLs
API_URL=https://fastcheck.duxiter.cl/api
SHERIFF_API_URL=https://prod.api.thesheriff.cl/api/v1
#QA SHERIFF_API_URL=https://qa.api.thesheriff.cl/api/v1
SII_URL=https://zeus.sii.cl/cvc/stc/stc.html

# OpenAI Settings
OPENAI_MODEL_SUMMARY=gpt-3.5-turbo
OPENAI_MODEL_ANALYSIS=gpt-4o
OPENAI_MODEL_VISION=gpt-4-vision-preview
OPENAI_TEMPERATURE=0.3
OPENAI_MAX_TOKENS=1000
OPENAI_MAX_DATA_LENGTH=10000

# Sheriff API Settings
SHERIFF_CLIENT_IDENTIFIER=SheriffSecureClient-v1
SHERIFF_PAGINATION_LIMIT=10

# Risk Calculation Thresholds
RISK_TOTAL_PARAMS=10
RISK_CIVIL_CASES_THRESHOLD=70
RISK_LABORAL_CASES_THRESHOLD=10
RISK_CRITICAL_PERCENTAGE=70
RISK_HIGH_PERCENTAGE=50
RISK_MEDIUM_PERCENTAGE=30

# Contact Information
SUPPORT_EMAIL=support@duxiter.com

# SendGrid Configuration
SENDGRID_API_KEY=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
SENDGRID_FROM_EMAIL=notification@duxiter.com
SENDGRID_FROM_NAME=Duxiter Notifications

# RabbitMQ Configuration
RABBITMQ_ENABLED=true
RABBITMQ_HOST=localhost
RABBITMQ_PORT=5672
RABBITMQ_VHOST=/
RABBITMQ_USERNAME=guest
RABBITMQ_PASSWORD=guest
RABBITMQ_QUEUE=evaluation_queue
# If you prefer a single URL, it must include credentials and vhost
# RABBITMQ_URL=amqp://guest:guest@localhost:5672/

# OAuth Configuration for Testing (using OIDC mock server on port 9000)
GOOGLE_CLIENT_ID=dev-client
GOOGLE_CLIENT_SECRET=dev-secret
GOOGLE_CALLBACK_URL=http://localhost:4040/api/auth/google/callback
GOOGLE_AUTHORIZATION_URL=http://localhost:9000/auth
GOOGLE_TOKEN_URL=http://localhost:9000/token
GOOGLE_USERINFO_URL=http://localhost:9000/me

MICROSOFT_CLIENT_ID=dev-client
MICROSOFT_CLIENT_SECRET=dev-secret
MICROSOFT_CALLBACK_URL=http://localhost:4040/api/auth/microsoft/callback
MICROSOFT_AUTHORIZATION_URL=http://localhost:9000/auth
MICROSOFT_TOKEN_URL=http://localhost:9000/token
MICROSOFT_USERINFO_URL=http://localhost:9000/me

# Session Secret (for passport sessions)
SESSION_SECRET=dev-session-secret-for-testing

# JWT Configuration
VITE_JWT_SECRET=your-super-secret-jwt-key-here
VITE_JWT_EXPIRES_IN=7d

# Frontend URL (for CORS)
FRONTEND_URL=http://localhost:4031

# ELK Stack Configuration
ELASTICSEARCH_URL=http://172.203.210.8/elasticsearch
ELASTICSEARCH_INDEX=duxiter
ELASTICSEARCH_USERNAME=user
ELASTICSEARCH_PASSWORD=s.+ff+Fmvcs3
LOG_LEVEL=info
ELK_ENABLED=true

# OAuth2 client credentials (provided by provider)
#CLIENT_ID=zXGd87o83rjjl1qqKrxnzJKkejPY7cW5
#CLIENT_SECRET=sSXEYJeG4HuPwL0w

CLIENT_ID=3ohJc3Yv7zUhJpvzizrcjouD2GUwkHCx
CLIENT_SECRET=y4xaeibOVgNcHpR2

# Scope from the manual
SCOPE=https://api.uat.latam.equifax.com/datos-comerciales/transaction
# Request type: personal or empresarial (if empresarial, chileanSerialNumber will be excluded)
REQUEST_TYPE=empresarial


# === Request payload fields (all are mandatory per spec) ===
CHILEAN_RUT=77827780-8
CHILEAN_SERIAL=A000000002

#BILL_TO=003863B001
#SHIP_TO=003863B001S0001
#BILL_TO=142038B003
#SHIP_TO=142038B003S0001


EQUIFAX_UAT_URL=https://api.uat.latam.equifax.com/datos-comerciales/transaction
EQUIFAX_UAT_TOKEN_URL=https://api.uat.latam.equifax.com/oauth/token
EQUIFAX_PROD_URL=https://api.latam.equifax.com/datos-comerciales/transaction
EQUIFAX_PROD_TOKEN_URL=https://api.latam.equifax.com/oauth/token


EQUIFAX_CLIENT_ID=zXGd87o83rjjl1qqKrxnzJKkejPY7cW5
EQUIFAX_CLIENT_SECRET=sSXEYJeG4HuPwL0w
#EQUIFAX_ENVIRONMENT=uat
EQUIFAX_ENVIRONMENT=prod
# Equifax Product Data Configuration
#BILL_TO=003863B001
#SHIP_TO=003863B001S0001
BILL_TO=142038B003
SHIP_TO=142038B003S0001

PRODUCT_NAME=CLREPORTEEMPRESARIAL
PRODUCT_ORCH=REPORTEEMPRESARIALV1
CONFIGURATION=Config
CUSTOMER=CLREPROCSERV
MODEL=REPROCSERV

# Equifax Cache Configuration
EQUIFAX_CACHE_TTL_SECONDS=604800



