Files
crm.clientright.ru/erv_ticket/debug-config.js
Fedor 9245768987 🚀 CRM Files Migration & Real-time Features
 Features:
- Migrated ALL files to new S3 structure (Projects, Contacts, Accounts, HelpDesk, Invoice, etc.)
- Added Nextcloud folder buttons to ALL modules
- Fixed Nextcloud editor integration
- WebSocket server for real-time updates
- Redis Pub/Sub integration
- File path manager for organized storage
- Redis caching for performance (Functions.php)

📁 New Structure:
Documents/Project/ProjectName_ID/file_docID.ext
Documents/Contacts/FirstName_LastName_ID/file_docID.ext
Documents/Accounts/AccountName_ID/file_docID.ext

🔧 Technical:
- FilePathManager for standardized paths
- S3StorageService integration
- WebSocket server (Node.js + Docker)
- Redis cache for getBasicModuleInfo()
- Predis library for Redis connectivity

📝 Scripts:
- Migration scripts for all modules
- Test pages for WebSocket/SSE/Polling
- Documentation (MIGRATION_*.md, REDIS_*.md)

🎯 Result: 15,000+ files migrated successfully!
2025-10-24 19:59:28 +03:00

45 lines
1.8 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* ============================================
* КОНФИГУРАЦИЯ РЕЖИМА ОТЛАДКИ
* ============================================
*
* Этот файл управляет режимом отладки для формы ERV Ticket
*
* ВАЖНО: Не забудьте установить DEBUG_MODE = false перед продакшеном!
*/
// Главный флаг режима отладки
var DEBUG_MODE = true;
/**
* Когда DEBUG_MODE = true:
*
* ✅ SMS не отправляется реально (экономия баланса)
* ✅ Принимается любой 6-значный код вместо реального
* ✅ В консоли выводятся отладочные сообщения
* ✅ В интерфейсе появляются пометки 🔧 DEBUG
*
* Когда DEBUG_MODE = false:
*
* ❌ SMS отправляется через SigmaSMS API
* ❌ Требуется реальный код из SMS
* ❌ Обычная работа для продакшена
*/
console.log('🔧 DEBUG CONFIG загружен. DEBUG_MODE =', DEBUG_MODE);
// Показать индикатор режима отладки
if (DEBUG_MODE) {
console.log('%c🔧 ВНИМАНИЕ: Работает РЕЖИМ ОТЛАДКИ!', 'background: #ff9800; color: white; font-size: 16px; padding: 10px; font-weight: bold;');
console.log('%cSMS не отправляются. Принимается любой 6-значный код.', 'background: #ff9800; color: white; font-size: 14px; padding: 5px;');
// Показываем визуальный индикатор на странице
document.addEventListener('DOMContentLoaded', function() {
var indicator = document.getElementById('debug-indicator');
if (indicator) {
indicator.style.display = 'block';
}
});
}