# Django Settings
DEBUG=True
SECRET_KEY=your-secret-key-here-change-in-production
ALLOWED_HOSTS=localhost,127.0.0.1

# Database
DATABASE_URL=postgresql://px360:px360@db:5432/px360

# Celery
CELERY_BROKER_URL=redis://redis:6379/0
CELERY_RESULT_BACKEND=redis://redis:6379/0
CELERY_TASK_ALWAYS_EAGER=False

# Email Configuration
EMAIL_BACKEND=django.core.mail.backends.console.EmailBackend
EMAIL_HOST=smtp.gmail.com
EMAIL_PORT=587
EMAIL_USE_TLS=True
EMAIL_HOST_USER=
EMAIL_HOST_PASSWORD=
DEFAULT_FROM_EMAIL=noreply@px360.sa

# AI Configuration (LiteLLM with OpenRouter)
OPENROUTER_API_KEY=
AI_MODEL=z-ai/glm-4.5-air:free
AI_TEMPERATURE=0.3
AI_MAX_TOKENS=500

# Notification Channels
SMS_ENABLED=False
SMS_PROVIDER=console
WHATSAPP_ENABLED=False
WHATSAPP_PROVIDER=console
EMAIL_ENABLED=True
EMAIL_PROVIDER=console

# Twilio Configuration
# Set SMS_PROVIDER=twilio and fill in credentials to send real SMS
TWILIO_ACCOUNT_SID=
TWILIO_AUTH_TOKEN=
TWILIO_PHONE_NUMBER=
# Alternatively, use a Messaging Service SID (for sender phone number pooling)
TWILIO_MESSAGING_SERVICE_SID=

# External API Notification Configuration

# Email API
EMAIL_API_ENABLED=False
EMAIL_API_URL=https://api.yourservice.com/send-email/
EMAIL_API_KEY=your-api-key-here
EMAIL_API_AUTH_METHOD=bearer
EMAIL_API_METHOD=POST
EMAIL_API_TIMEOUT=10
EMAIL_API_MAX_RETRIES=3
EMAIL_API_RETRY_DELAY=2

# SMS API
SMS_API_ENABLED=False
SMS_API_URL=https://api.yourservice.com/send-sms/
SMS_API_KEY=your-api-key-here
SMS_API_AUTH_METHOD=bearer
SMS_API_METHOD=POST
SMS_API_TIMEOUT=10
SMS_API_MAX_RETRIES=3
SMS_API_RETRY_DELAY=2

# Mshastra SMS API
# Set SMS_PROVIDER=mshastra and fill in credentials to send real SMS via Mshastra
MSHASTRA_USERNAME=
MSHASTRA_PASSWORD=
MSHASTRA_SENDER_ID=

# Dev SMS Recipient - when DEBUG=True, all SMS are redirected to this number
# Leave empty to disable redirection (SMS will go to the actual recipient)
DEV_SMS_RECIPIENT=

# Simulator API (for testing - sends real emails, prints SMS to terminal)
# To enable simulator, set these URLs and enable the APIs:
# EMAIL_API_ENABLED=True
# EMAIL_API_URL=http://localhost:8000/api/simulator/send-email/
# EMAIL_API_KEY=simulator-test-key
# SMS_API_ENABLED=True
# SMS_API_URL=http://localhost:8000/api/simulator/send-sms/
# SMS_API_KEY=simulator-test-key

# Admin URL (change in production)
ADMIN_URL=admin/

# Integration APIs
# HIS API - Hospital Information System for fetching patient discharge data
HIS_API_URL=https://his.alhammadi.med.sa/SSRCE/API/FetchPatientVisitTimeStamps
HIS_API_USERNAME=your_his_username
HIS_API_PASSWORD=your_his_password
HIS_API_KEY=

# Other Integration APIs (Stubs - Replace with actual credentials)
MOH_API_URL=
MOH_API_KEY=
CHI_API_URL=
CHI_API_KEY=

# Social Media API Configuration
# YouTube
YOUTUBE_API_KEY=your-youtube-api-key
YOUTUBE_CHANNEL_ID=your-channel-id

# Facebook
FACEBOOK_PAGE_ID=your-facebook-page-id
FACEBOOK_ACCESS_TOKEN=your-facebook-access-token

# Instagram
INSTAGRAM_ACCOUNT_ID=your-instagram-account-id
INSTAGRAM_ACCESS_TOKEN=your-instagram-access-token

# Twitter/X
TWITTER_BEARER_TOKEN=your-twitter-bearer-token
TWITTER_USERNAME=your-twitter-username

# LinkedIn
LINKEDIN_ACCESS_TOKEN=your-linkedin-access-token
LINKEDIN_ORGANIZATION_ID=your-linkedin-organization-id

# Google Reviews
GOOGLE_CREDENTIALS_FILE=client_secret.json
GOOGLE_TOKEN_FILE=token.json
GOOGLE_LOCATIONS=location1,location2,location3

# OpenRouter AI Configuration
OPENROUTER_API_KEY=your-openrouter-api-key
OPENROUTER_MODEL=anthropic/claude-3-haiku
ANALYSIS_BATCH_SIZE=10
ANALYSIS_ENABLED=True
