U
    ¹"Šcñ  ã                   @   sd   d dl Z d dlmZ d dlmZ d dlmZmZ d dlZd dlm	Z	 d dl
T G dd„ dejjƒZdS )	é    N)Úcopy)Úuuid4)ÚurlparseÚparse_qs)Úcommit_all_ds)Ú*c                   @   s0   e Zd ZdZejjdd„ ƒZejjdd„ ƒZdS )ÚPublicApiViewz/pub/webhookc                 C   s   t j ¡ }|S ©N©ÚmodelsÚ
CmfWebhookÚcls_call©ÚselfÚresponse© r   ú./opt/crm/./modules/automation/views/webhook.pyÚpost   s    
zPublicApiView.postc                 C   s   t j ¡ }|S r	   r
   r   r   r   r   Úget   s    
zPublicApiView.getN)	Ú__name__Ú
__module__Ú__qualname__Ú__url__ÚcmfÚviewsÚactionr   r   r   r   r   r   r      s
   
r   )Ú	tracebackr   Úuuidr   Úurllib.parser   r   ÚujsonÚcmf.data_providers.baser   Úcmf.includer   r   ÚBaseViewr   r   r   r   r   Ú<module>   s   