File: //opt/imunify360/venv/share/imunify360/config_schema/__pycache__/antivirus.cpython-38.pyc
U
�Ćd�8 � @ sL d Z d\ZZd\ZZZZdZdZdZ dZ
dZdZdd� Z
dd � Zd
d� 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 <https://www.gnu.org/licenses/>.
Copyright © 2019 Cloud Linux Software Inc.
This software is also available under ImunifyAV commercial license,
see <https://www.imunify360.com/legal/eula>
)�notify�cleanup)�none�day�week�month� i �� c s � fdd�}|S )Nc s | d kr| S � | �S �N� )�value��coercer
�@/opt/imunify360/venv/share/imunify360/config_schema/antivirus.py�f$ s znullable.<locals>.fr
)r
r r
r r �nullable# s r c C s� ddt ddd�ddd�dd d�d
�i d�dddd�dt ddd�d
�i d�ddd d�dtttgd�dd d�ddd�ddd�ddd�ddd�ddd�dd dd�ddd�dd dd�dtt �dd d�dt dd�dt dd�dt dd�dd dd�dd d d�dd dd�dd dd�d�i d�ddttttgtd�dt dddd�dt dddd�dt dddd�d�i d�ddt ddtd�dt ddt d�dt dt
d�dt ddd d�dt ddd d�dt ddd�d!�i d�dd"dd d�ii d�ddt ddtd�dt ddtd�dt d#t
d�d$�i d�dd"ddd�ii d�dd"ddd�ii d�dd%d&did g d'�dd dd�d(�i d�ddddd�dddd�ddd d�dd dd�ddd d�dd d d�dd d d�d)�i d�ddd*d�dd+d�dd d�d,�i d�di d�ddd d�dd-d�d.�i d�dd/ddd�ii d�d0�S )1N�dict�integer� �Z )�typer
�min�default�booleanT�r r F)�max_days_in_backup�cl_backup_allowed�cl_on_premise_backup_allowed�r �schemar � )�trim_file_instead_of_removal�keep_original_files_days�string)r r �allowed)r r r �r r r )r r
r r i )r r
r i � )�try_restore_from_backup_first�default_actionZnotify_on_detect�enable_scan_inotifyZoptimize_realtime_scanZenable_scan_modsec�sends_file_for_analysis�enable_scan_pure_ftpd�scan_modified_files�cloud_assisted_scan�
rapid_scan�,rapid_scan_rescan_unchanging_files_frequency�max_signature_size_to_scan�max_cloudscan_size_to_scan�max_mrs_upload_fileZ
detect_elf� hyperscan�enable_scan_cpanel�crontabs)r r# r � � � )r r
r �maxr � � )�interval�hour�day_of_week�day_of_monthi r )�cpu�io�ram�
user_scan_cpu�user_scan_io�
user_scan_ram�enabler )� cpu_limit�io_limit� ram_limit�listr )r r r r )Zemails�enable_icontact_notifications)Zsupport_formZadvisor�user_ignore_listZupgrade_button�allow_malware_scan�user_override_malware_actions�user_override_proactive_defensei �� )�max_log_file_size�backup_countZsyscall_monitor�#unspecified_purchase_page_url�rD Zpurchase_page_url�generic_user_notifications)�BACKUP_RESTORE�MALWARE_CLEANUP�MALWARE_SCANNING�MALWARE_SCAN_SCHEDULE�MALWARE_SCAN_INTENSITY�MALWARE_DATABASE_SCAN�RESOURCE_MANAGEMENT�ERROR_REPORTINGZSEND_ADDITIONAL_DATA�ADMIN_CONTACTS�PERMISSIONS�LOGGER�SECURE_SITE�
MY_IMUNIFY�
CONTROL_PANEL)�int�CLEANUP�NOTIFYr �NONE�DAY�WEEK�MONTH�DEFAULT_INTENSITY_CPU�DEFAULT_INTENSITY_IO�DEFAULT_INTENSITY_RAM�%DEFAULT_RESOURCE_MANAGEMENT_CPU_LIMIT�$DEFAULT_RESOURCE_MANAGEMENT_IO_LIMIT�%DEFAULT_RESOURCE_MANAGEMENT_RAM_LIMITr
r
r
r �get_root_config, s: �����������������������������Z�_
������!�������*�/���������������
���������%�*��������
����� � �ro c
C s� dddddd� dd d�ii d �dd
d t tgdd�ddd d
�d�i d �di d�dddd�d
dd�d�i d �ddddd d
�ii d �d�S )Nr r r Tc S s | o
t | �S r )rb )�xr
r
r �<lambda>� � z%get_non_root_config.<locals>.<lambda>r )r r r
r r r r"