Ë
    7úh#  ã                   ó8  — d dl mZmZ d dlmZ d dlmZ d dlmZ d dl	m
Z
 d dlmZ d dlmZmZ  e«       Zej#                  dej$                  ¬	«      d
 ee«       ee«      fdededefd„«       Zej#                  d«       ee«       ee«      fdedefd„«       Zy
)é    )Ú	APIRouterÚDepends)ÚFileResponse)ÚSession)Úschema)ÚKPIDashboardService)Úget_db)ÚJWTPayloadSchemaÚget_current_studentz	/overview)Úresponse_modelNÚsimulation_idÚdbÚtokenc              ƒ   óT   K  — t        ||«      j                  | «      ƒ d{  –—† S 7 Œ­w)zAGet KPI Overview Dashboard with optional simulation-specific dataN)r   Úget_kpi_overview)r   r   r   s      úC/var/www/html/retail-simulation-api/app/api/kpi_dashboard/router.pyr   r      s&   è ø€ ô % R¨Ó/×@Ñ@ÀÓO×OÐOÐOús   ‚(¡&¢(z/download-pdfc              ƒ   óR   K  — t        | |«      j                  «       ƒ d{  –—† S 7 Œ­w)z$Download Module 10 KPI Report as PDFN)r   Úgenerate_kpi_pdf)r   r   s     r   Údownload_kpi_pdfr      s$   è ø€ ô % R¨Ó/×@Ñ@ÓB×BÐBÐBús   ‚' %¡')Úfastapir   r   Úfastapi.responsesr   Úsqlalchemy.ormr   Úapp.api.kpi_dashboardr   Úapp.api.kpi_dashboard.servicer   Úapp.database.main.mysqlr	   Úapp.dependency.authanticationr
   r   Úkpi_dashboard_routerÚgetÚKPIDashboardResponseÚintr   r   © ó    r   ú<module>r#      sÀ   ðß &Ý *Ý "Ý (Ý =Ý *ß Oá “{Ð à×Ñ˜+°f×6QÑ6QÐÓRàÙ˜&“/Ù%Ð&9Ó:ñPØðPàðPð òPó SðPð ×Ñ˜/Ó*á˜&“/Ù%Ð&9Ó:ñCØðCàòCó +ñCr"   