U
    @c                     @   sD   d dl T d dlmZ d dlmZ edddd Zedkr@e  d	S )
    )*)tqdm)CmfActiveEntityT)Zcommitc               
   C   sR   t  @ t  , tjjddd} | r:d| _| jdd W 5 Q R X W 5 Q R X d S )Nzsmtp-sender.local.evacrm.ru:25Zmail)Zext_smtptypeFT)Z	only_data)ZcmfutilZdisable_aclZdisable_notifyZmodelsZ	CmfPlugingetZ
verify_sslZsave)Zsmtp r   '/opt/crm/patch/202212071948_smtp_fix.pypatch   s
    r	   __main__N)Zpatch.includer   Zcommon.models.cmf_active_entityr   Zapp_contextr	   __name__r   r   r   r   <module>   s   
