How bsosagg/denuncias-scsp works
This repository is a multi-application institutional suite backed by a shared Express API. A principal user workflow is HR staff managing collaborator records and related personnel services through the Core Humanis portal; the API routes authenticated requests to domain controllers, which access PostgreSQL (with a mock-store fallback) and may record audits or calculate record-integrity indicators. Other product branches cover procurement, media planning, legal cases, calendars, and administration. Several frontend-to-API links are plausible from the product structure but are not evidenced in the sampled excerpts, so they are omitted or marked unverified.
Main entry points: collaborators.controller.js Collaborator records · core-humanis.routes.js HR API routes · ExpedienteDetailView.vue Media planning workflow · App.vue Core Humanis portal
Components 27
HR portal
- Core Humanis portal
core-humanis-app/src/App.vue - Administration panel
admin-panel/src/views/agendas/MatrixDashboardView.vue
Shared API
- Collaborator records
api/src/controllers/collaborators.controller.js - HR API routes
api/src/routes/core-humanis.routes.js - HR catalogs
api/src/controllers/catalogs.controller.js - Certificates
api/src/controllers/certificates.controller.js - Personnel documents
api/src/controllers/documents.controller.js - Occupational health
api/src/controllers/occupational-health.controller.js - Payroll
api/src/controllers/payrolls.controller.js - Recruitment
api/src/controllers/recruitments.controller.js - Audit logging
api/src/services/audit.service.js - Record integrity
api/src/services/traffic-light.service.js - Resource links
api/src/utils/hateoas.helper.js - Legal case controller
api/src/controllers/juridica.controller.js
Media planning
- Media planning workflow
plan-medios-app/src/views/ExpedienteDetailView.vue - Language review
plan-medios-app/src/composables/useLanguageReview.js - Media API client
plan-medios-app/src/services/planMedios.service.js - Candidate scoring
api/src/services/plan-medios/domain/scoring/engine.js - Expediente files
api/src/services/plan-medios/storage.js
Business applications
- Procurement workflow
adquisiciones-app/src/views/expedientes/ExpedienteDetailView.vue - Legal case application
juridica-app/src/views/CaseDetail.vue - Calendar application
calendar-app/src/views/CalendarView.vue - Calendar client
calendar-app/src/services/calendar.service.js
Data and integrations
- Core Humanis data
api/src/config/db-core-humanis.js - Fallback store
api/src/config/mock-store.js - Legal case data
api/src/config/db-juridica.js
Other components
- HR staff
Connections 17
- HR staff → Core Humanis portal: manages records
core-humanis-app/src/App.vue - Core Humanis portal → HR API routes: requests HR services
- HR API routes → Collaborator records: routes requests
api/src/routes/core-humanis.routes.js - Collaborator records → Core Humanis data: queries data
api/src/controllers/collaborators.controller.js - Collaborator records → Audit logging: records changes
api/src/controllers/collaborators.controller.js - Collaborator records → Record integrity: checks integrity
api/src/controllers/collaborators.controller.js - Collaborator records → Resource links: builds links
api/src/controllers/collaborators.controller.js - Core Humanis data → Fallback store: falls back to
api/src/config/db-core-humanis.js - Media planning workflow → Media API client: uses client
- Language review → Media API client: requests review
plan-medios-app/src/composables/useLanguageReview.js - Media planning workflow → Candidate scoring: requests recommendations
- Media planning workflow → Expediente files: manages documents
- Legal case application → Legal case controller: requests case operations
- Legal case controller → Legal case data: queries case data
api/src/controllers/juridica.controller.js - Calendar application → Calendar client: uses client
- Administration panel → HR API routes: requests administration
- Procurement workflow → HR API routes: uses shared services