From 931724b0bcdf1954486bfa8ab11339c8b079148f Mon Sep 17 00:00:00 2001 From: Pierre Marx Date: Thu, 4 Sep 2025 17:03:34 -0400 Subject: [PATCH] refactor: Nettoyage complet du fichier config.json MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Suppression des sections obsolètes (agents, centres, CTI, preferences) - Conservation uniquement de la configuration SignalR nécessaire - Les agents et centres sont maintenant gérés côté serveur via SignalR - Réduction du fichier de 118 lignes à 8 lignes (93% de réduction) - terminalsSimulation conservé comme fallback pour le mode dégradé - Mise à jour du changelog pour documenter ce nettoyage --- config.json | 112 +--------------------------------------------- docs/changelog.md | 9 ++++ 2 files changed, 10 insertions(+), 111 deletions(-) diff --git a/config.json b/config.json index fd0b49c..943971d 100644 --- a/config.json +++ b/config.json @@ -1,118 +1,8 @@ { - "agents": [ - { - "id": "agent1", - "accessCode": "AGENT001", - "name": "Marie DUPONT", - "email": "AGENT001@callcenter.fr", - "password": "demo123", - "centresAssignes": ["centre1", "centre2", "centre3"] - }, - { - "id": "agent2", - "accessCode": "AGENT002", - "name": "Jean MARTIN", - "email": "AGENT002@callcenter.fr", - "password": "demo456", - "centresAssignes": ["centre2", "centre4", "centre5"] - }, - { - "id": "agent3", - "accessCode": "AGENT003", - "name": "Sophie BERNARD", - "email": "AGENT003@callcenter.fr", - "password": "demo789", - "centresAssignes": ["centre1", "centre3", "centre4", "centre5"] - } - ], - "centres": [ - { - "id": "centre1", - "nom": "Centre Cardio Lyon", - "url": "https://www.doctolib.fr/centre-de-sante/lyon/centre-de-cardiologie-lyon", - "telephone": "+33478901234", - "couleur": "#FF6B6B", - "credentials": { - "username": "agent_cardio", - "password": "pass123" - } - }, - { - "id": "centre2", - "nom": "Clinique Saint-Jean", - "url": "https://www.doctolib.fr/clinique-privee/lyon/clinique-saint-jean", - "telephone": "+33478905678", - "couleur": "#4ECDC4", - "credentials": { - "username": "agent_stjean", - "password": "pass456" - } - }, - { - "id": "centre3", - "nom": "Cabinet Dr Martin", - "url": "https://www.doctolib.fr/medecin-generaliste/villeurbanne/martin", - "telephone": "+33472334455", - "couleur": "#45B7D1", - "credentials": { - "username": "cabinet_martin", - "password": "pass789" - } - }, - { - "id": "centre4", - "nom": "Centre Radiologie Villeurbanne", - "url": "https://www.doctolib.fr/centre-de-radiologie/villeurbanne/centre-imagerie-medicale", - "telephone": "+33472667788", - "couleur": "#96CEB4", - "credentials": { - "username": "radio_vlb", - "password": "passabc" - } - }, - { - "id": "centre5", - "nom": "Laboratoire BioLab", - "url": "https://www.doctolib.fr/laboratoire/lyon/laboratoire-biolab", - "telephone": "+33478112233", - "couleur": "#DDA0DD", - "credentials": { - "username": "lab_bio", - "password": "passdef" - } - } - ], - "cti": { - "simulationMode": true, - "webhookUrl": "http://localhost:3000/cti-webhook", - "appelSimules": [ - { - "numero": "+33612345678", - "nom": "Patient Test 1", - "centreId": "centre1" - }, - { - "numero": "+33687654321", - "nom": "Patient Test 2", - "centreId": "centre2" - }, - { - "numero": "+33611223344", - "nom": "Patient Test 3", - "centreId": "centre3" - } - ] - }, - "preferences": { - "tempsSessionMinutes": 480, - "autoConnexion": true, - "notificationSonore": true, - "affichageCompact": false - }, "signalR": { + "enabled": true, "serverUrl": "http://10.90.20.201:8002/signalR", "serviceProvider": "RDVPREM", - "enabled": true, "terminalsSimulation": ["3001", "3002", "3003", "3004", "3005"] } } \ No newline at end of file diff --git a/docs/changelog.md b/docs/changelog.md index 3a702e5..ce86c5d 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -24,6 +24,15 @@ - Roadmap des fonctionnalités futures - Structure moderne avec emojis et organisation claire +### Configuration +- **Nettoyage complet du config.json** : Suppression des éléments obsolètes + - Suppression de la section agents (maintenant géré via SignalR) + - Suppression de la section centres (fournis par le serveur) + - Suppression de la section CTI (ancien système de simulation) + - Suppression de la section preferences (non utilisée) + - Conservation uniquement de la configuration SignalR essentielle + - Fichier réduit de 118 lignes à 8 lignes + ## [1.2.14] - 2025-09-04 ### Ajouté