Ë
    $i¹  ã                   ó  — 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mZ  e«       Zej                  dd¬	«       ee
«       ee«      fd
ededefd„«       Zej#                  dd¬	«       ee
«       ee«      fdededefd„«       Zy)é    )Ú	APIRouterÚDepends)ÚSession)ÚUserSimulationCreate)ÚUserSimulationService)Úget_db)ÚJWTPayloadSchemaÚget_current_userz/create_user_simulationT)Úresponse_model_exclude_noneÚrequestÚdbÚtokenc              ƒ   óT   K  — t        ||«      j                  | «      ƒ d {  –—† S 7 Œ­w©N)r   Úcreated)r   r   r   s      úE/var/www/html/retail-simulation-api/app/api/user_simulation/router.pyÚcreate_user_simulationr   
   s$   è ø€ ä& r¨%Ó0×8Ñ8¸ÓA×AÐAÐAúó   ‚(¡&¢(z/get_simulationÚuser_idc              ƒ   óT   K  — t        ||«      j                  | «      ƒ d {  –—† S 7 Œ­wr   )r   Úget_user_simulation_details)r   r   r   s      r   Úget_simulationr      s$   è ø€ ä& r¨%Ó0×LÑLÈWÓU×UÐUÐUúr   N)Úfastapir   r   Úsqlalchemy.ormr   Úapp.api.user_simulation.schemar   Úapp.api.user_simulation.servicer   Úapp.database.main.mysqlr   Úapp.dependency.authanticationr	   r
   Úuser_simulation_routerÚpostr   ÚgetÚintr   © ó    r   ú<module>r%      sÊ   ðß &Ý "Ý ?Ý AÝ *ß Lá"›Ð à×ÑÐ6ÐTXÐÓYÙLSÐTZËOÑv}ð  Oó  wPñ BÐ)=ð BÀ'ð BÐcsò Bó ZðBð ×ÑÐ-È4ÐÓPÙ3:¸6³?Ñ]dÐeuÓ]vñ V ð V¨ð VÐJZò Vó QñVr$   