
    WWljb              
       l    d dl Z d dlZd dlmZ d dlmZ  ej                  e      Zde	de	de	de	de	f
d	Z
y)
    N)settings)get_hotel_detailsemailconfirmation_numberspecial_requesthotel_idsub_hotel_idc           
      <  K   	 t        j                  d      4 d {   }|j                  t        j                  dz   | ||d||d       d {   }|j                         }|j                  d      r	 	 d d d       d {    y	 	 d d d       d {    y	7 7 M7 7 # 1 d {  7  sw Y   y xY w# t        $ rU}t        j                  d
|        t                d {  7  }	|	|   }
d|
d    d|
d    d|
d    d|
d    d	cY d }~S d }~ww xY ww)Ng      N@)timeoutz$frontend/Reservations/specialRequest)r   r   r   )r   r	   )jsonheaderssuccessz

Your special request has been successfully added to your reservation. While we'll do our best to accommodate it, fulfillment is subject to availability. Is there anything else I can assist you with today?z

I couldn't locate a reservation with the email address and confirmation number you provided. Please double-check both details and try again. Is there anything else I can assist you with?zError adding special request: z

I'm sorry, looks like system is not able to add your special request at the moment. Please try again after some time, or contact the front desk directly for assistance. Name: 
hotel_namez

Address: hotel_addressz
Phone: hotel_phonez
Email: hotel_emailz0


Is there anything else I can assist you with?)httpxAsyncClientpostr   
LS_API_URLr   get	Exceptionloggererrorr   )r   r   r   r   r	   clientresponsedatae
HOTEL_INFO
hotel_datas              A/var/www/html/ls-ibe-bot-apis/app/agents/tools/special_request.pyr   r      s\    #
$$T22f#[[##&LL"+>'6 !)$0 ) 
 
H ==?Dxx	"J 322,D+ 322
 322224  
5aS9:,...
)
-.k*_:U9VV_`jkx`y_z  {D  EO  P]  E^  D_ _@@	
	
s   DB; BB; 0B&B 'B&:B; B"B; 
DB&B; B$B; DB;  B&"B; $B; &B8,B/-B84B; 7D8B; ;	D%D)C,*$DDDDD)r   loggingapp.configs.settingsr   app.utils.constantsr   	getLogger__name__r   strr        r!   <module>r*      sN      ) 1			8	$$
 $
3 $
QT $
`c $
sv $
r)   