o
    !†Öi   ã                   @   sN   zd dl mZ W n ey   d dlmZ Y nw d dlmZmZ ddd„ZdS )é    )Údumps)Úmake_responseÚcurrent_appNc                 C   sR   t j di ¡}t jr| dd¡ t| fi |¤Žd }t||ƒ}|j |p%i ¡ |S )z/Makes a Flask response with a JSON encoded bodyÚ
RESTX_JSONÚindenté   Ú
)	r   ÚconfigÚgetÚdebugÚ
setdefaultr   r   ÚheadersÚextend)ÚdataÚcoder   ÚsettingsÚdumpedÚresp© r   ú`/var/www/html/crm_dreinet/venv_linux/lib/python3.10/site-packages/flask_restx/representations.pyÚoutput_json	   s   
r   )N)Úujsonr   ÚImportErrorÚjsonÚflaskr   r   r   r   r   r   r   Ú<module>   s    ÿ