<?php
/**
 * Zoho CRM Configuration Template
 * 
 * Copy this file to zoho-config.php and fill in your credentials
 * DO NOT commit zoho-config.php to version control!
 */

// Zoho OAuth Credentials - Load from environment if available
define('ZOHO_CLIENT_ID', getenv('ZOHO_CLIENT_ID') ?: 'YOUR_CLIENT_ID_HERE');
define('ZOHO_CLIENT_SECRET', getenv('ZOHO_CLIENT_SECRET') ?: 'YOUR_CLIENT_SECRET_HERE');
define('ZOHO_REFRESH_TOKEN', getenv('ZOHO_REFRESH_TOKEN') ?: 'YOUR_REFRESH_TOKEN_HERE');
define('ZOHO_REDIRECT_URI', getenv('ZOHO_REDIRECT_URI') ?: 'http://localhost:8080/callback');

// Zoho API Settings
define('ZOHO_API_BASE_URL', 'https://www.zohoapis.com');
define('ZOHO_ACCOUNTS_URL', 'https://accounts.zoho.com');
define('ZOHO_ORGANIZATION_ID', 'YOUR_ORG_ID_HERE');

// API Scopes
define('ZOHO_SCOPES', 'ZohoCRM.settings.all,ZohoCRM.modules.all,ZohoCRM.users.all');

// Optional: Region-specific settings
// For EU: 'https://accounts.zoho.eu' and 'https://www.zohoapis.eu'
// For IN: 'https://accounts.zoho.in' and 'https://www.zohoapis.in'
// For AU: 'https://accounts.zoho.com.au' and 'https://www.zohoapis.com.au'

// Development/Production flag
define('ZOHO_ENVIRONMENT', 'development'); // 'development' or 'production'

// Error logging
define('ZOHO_DEBUG_MODE', true);
define('ZOHO_LOG_FILE', WP_CONTENT_DIR . '/zoho-crm-debug.log');