+
    (i                        ^ RI t ^ RIt^ RIHtHtHtHtHtHtH	t	H
t
 ^ RIHt ^ RIHt ^ RIHtHt ^ RIHt ^ RIHt ^ RIHt ^ R	IHt ^ R
IHt ^ RIHt ^ RIHt ^ RIH t  ^ RI!H"t" ^ RI#H$t% ^ RI&H$t' ^ RI(H$t) ]! 4       t*RR lt+R# )    N)Flaskrequestredirecturl_forrender_templatemake_responsesessionsend_from_directory)Mail)Babel)config
Productivo)register_clientes_routes)register_ventas_routes)register_operaciones_routes)register_supyctrol_routes)
init_babel)PreRegister_routes)register_security_routes)check_user_access)business_central_router)routerc                P  a \        \        4      oSP                  P                  \        P                  ! V \        R,          4      4       \        S4       \        P                  S4       \        S\        4       SP                  \        RR7       SP                  \        RR7       SP                  \        RR7       SP                  \        RR7       SP                  R4      V3R l4       pSP                  R	4      R
 4       pSP                  R4      R 4       pSP                  R4      R 4       p\        S4       SP                  R4      R 4       p\!        S\        4       SP                  R4      R 4       p\#        S\        4       SP                  R4      R 4       p\%        S\        4       \'        S\        4       SP                  R4      R 4       pSP                  R4      R 4       p	SP                  R4      R 4       p
SP                  R4      V3R l4       pS# )u9   Crea e inicializa la aplicación Flask según el entorno.defaultz/api/bc)
url_prefixz/api/quotationz/api/ftpz/api/quotation/cotizz/set_language/<lang_code>c                    < V SP                   R ,          9   dL   \        P                  ;'       g    \        R4      p\	        \        V4      4      pVP                  RV 4       V# \        \        R4      4      # )BABEL_SUPPORTED_LOCALESwelcomelang)r   r   referrerr   r   r   
set_cookie)	lang_coder    respapps   &  BC:\Users\victor.barrera\Documents\proyectos\elepV3\Elep\src\app.pyset_language create_app.<locals>.set_language:   s_    

#<==''==79+=H (!34DOOFI.K	*++    z/templates/<path:filename>c                     \        R V 4      # )	templates)r
   )filenames   &r%   serve_template"create_app.<locals>.serve_templateD   s    ";99r(   /c                     \        R4      # )uG   
Página principal de bienvenida.
Renderiza el archivo `welcome.html`.
zwelcome.htmlr    r(   r%   r   create_app.<locals>.welcomeI   s     ~..r(   z/loginc                     \        R4      # )uB   
Página de inicio de sesión.
Renderiza el archivo `login.html`.
zSecurity/login.htmlr0   r1   r(   r%   logincreate_app.<locals>.loginQ   s     455r(   z/indexc                 N    \         P                  ! R4      p RpRp\        WV4      # )u=   
Página de inicio (index).
Renderiza el archivo index.html.
user_idz/index.htmlF)r	   getr   )UserIDrutaRestricted_Accesss      r%   indexcreate_app.<locals>.index^   s+     Y'! /@AAr(   z
/Direccionc                     R# )uP   
Página del menú de Dirección.
Actualmente muestra un mensaje de desarrollo.
u"   Página en desarrollo - Direcciónr1   r1   r(   r%   	Direccioncreate_app.<locals>.Direccionl   s     4r(   z
/Serviciosc                     R# )uO   
Página del menú de Servicios.
Actualmente muestra un mensaje de desarrollo.
u!   Página en desarrollo - Serviciosr1   r1   r(   r%   	Servicioscreate_app.<locals>.Serviciosw   s     3r(   z/Sitiosc                     R# )uL   
Página del menú de Sitios.
Actualmente muestra un mensaje de desarrollo.
u   Página en desarrollo - Sitiosr1   r1   r(   r%   Sitioscreate_app.<locals>.Sitios   s     0r(   z	/About_usc                     R# )uP   
Página de Acerca de (About Us).
Actualmente muestra un mensaje de desarrollo.
u    Página en desarrollo - About Usr1   r1   r(   r%   About_uscreate_app.<locals>.About_us   s     2r(   z/mi_htmlc                  
    R p V # )a/  
        <html>
        <head>
            <meta charset="UTF-8">
            <title>Prueba de PDF</title>
        </head>
        <body>
            <h1>Hola, este es un HTML de prueba </h1>
            <p>Convirtiendo HTML a PDF usando Node.js + Puppeteer.</p>
        </body>
        </html>
        r1   )htmls    r%   mi_htmlcreate_app.<locals>.mi_html   s     r(   z/generar_pdfc                  &  < \        R RR7      p \        '       d   RpMRp\        P                  P	                  SP
                  RR4      p \        P                  ! RW V.RR7       R	V 2#   \        P                   d   pR
T 2u Rp?# Rp?ii ; i)rL   T)	_externalz/mnt/pruebapdf/prueba.pdfzD:\PruebasPDF\prueba.pdfpuppeteer_pdfzgenerate_pdf.jsnode)checkzPDF generado en: zError al generar PDF: N)	r   r   ospathjoin	root_path
subprocessrunCalledProcessError)	flask_urlpdf_pathscript_pather$   s       r%   generar_pdfcreate_app.<locals>.generar_pdf   s     I6	 :3H2H
 ggll3==/CTU	0 NNFKHETR&xj11,, 	0+A3//	0s   A, ,BBBB)r   __name__r   from_objectr8   r   mailinit_appr   register_blueprintr   quotation_router
ftp_routerquotation_cotiz_routerrouter   r   r   r   r   )entornor&   r,   r   r4   r<   r?   rB   rE   rH   rL   r^   r$   s   &           @r%   
create_apprj   #   s#    /CJJ6::gvi/@AB sOMM# S$' 2yI +8HI:*=1>TU 	YY*+, ,, 	YY+,: -: 	YYs^/ / 	YYx6 6 s 	YYxB B S$'YY|4 4 3%YY|3 3  T* c4(YYy0 0 	YY{2 2 	YYz   	YY~0 02 Jr(   )development),rS   rW   flaskr   r   r   r   r   r   r	   r
   
flask_mailr   flask_babelr   r   r   App.Clientesr   
App.Ventasr   App.Operacionesr   App.SupyCtrolr   App.Traduccionr   App.PreRegisterr   App.Securityr   App.Security_Module.UserAccessr   .App.api.controller.business_central_controllerr   'App.api.controller.quotation_Controllerr   re    App.api.controller.FtpControllerrf   -App.api.controller.quotation_cotiz_controllerrg   rb   rj   r1   r(   r%   <module>r{      sU   
 
  q q q   % 1 - 7 3 % . 1 < R O A Z v_r(   