관리-도구
편집 파일: hooks.cpython-311.opt-1.pyc
� IMgI � � � d dl Z d dlZd dlmZ d dlmZ d dlmZ d dlm Z m Z d dlmZ d dl mZ d dlmZ e j e� � Z G d � d e � � ZdS )� N)� HookEvents)� EventHook)�ValidationError)� RootEndpoints�bind)�HooksConfig)�notifier)� LicenseCLNc �@ � e Zd Zdd�Z edd� � d� � � Z edd� � d� � � Z edd� � d � � � Z edd � � d� � � Z edd � � d� � � Z edd� � dd�� � Z edd� � dd�� � ZdS )�HooksEndpointsNc �v � |t j vr(||k r$t d� |� � � � �d S d S )Nz "{}" is not valid event for hook)r �EVENTSr �format)�self�event�extras �U/opt/imunify360/venv/lib/python3.11/site-packages/defence360agent/simple_rpc/hooks.py�_check_eventzHooksEndpoints._check_event sG � �� �)�)�)�e�u�n�n�!�2�9�9�%�@�@�� � � *�)�n�n� �hook�addc � � K � | � |� � t j ||�� � }|s#t d� ||� � � � �d|d<