MHx>a d Z ddlZddlmZ ddlmZ ddlmZmZ ddl m
Z
ddlmZ ddl
mZ ej e Zd Zd
Zg dZ G d d
e
ZdS )u
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License,
or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see .
Copyright © 2019 Cloud Linux Software Inc.
This software is also available under ImunifyAV commercial license,
see
N) lru_cache)Path)
hosting_panelplesk)MessageSink)HooksConfig)notifierzK/usr/local/psa/admin/plib/modules/imunify360/scripts/send-notifications.phpz@/opt/imunify360/venv/share/imunify360/scripts/send-notifications)CUSTOM_SCAN_MALWARE_FOUNDUSER_SCAN_MALWARE_FOUNDREALTIME_MALWARE_FOUNDc \ e Zd Zd Z ed defd ZdefdZd Zd Z d S )
PleskNotificationsHooksc $ K t j j t j j k rdS | r2| s| d{V dS dS | d{V dS )zMessageSink methodN) r HostingPanelNAMEr Pleskis_supported
is_applied add_hooksremove_hooks)selfloops U/opt/imunify360/venv/lib/python3.11/site-packages/imav/plugins/plesk_notifications.pycreate_sinkz#PleskNotificationsHooks.create_sink. s %'',0@@@F &??$$
'nn&&&&&&&&&&&
'
' ##%%%%%%%%%%% )maxsizereturnc t t o%t t S N)r SCRIPT_PATHexists HOOK_PATH)r s r r z$PleskNotificationsHooks.is_supported8 s3 K ''))Fd9oo.D.D.F.FFr c t }| di t fdt D sdS t fdt D S )Nrulesc 3 K | ]}|v V d S r .0eventconfig_ruless r z5PleskNotificationsHooks.is_applied..@ s( ==U5L(======r Fc 3 K | ];}t | d i dg v V