????
Current Path : /opt/cloudlinux/venv/lib/python3.11/site-packages/xray/adviser/__pycache__/ |
Current File : //opt/cloudlinux/venv/lib/python3.11/site-packages/xray/adviser/__pycache__/cli_api.cpython-311.pyc |
� z�]f9� � �6 � d Z ddlZddlZddlZddlZddlZddlZddlmZ ddl m Z mZ ddlm Z mZmZmZmZ ddlmZ ddlmZ ddlmZmZmZmZmZmZmZmZmZm Z m!Z! dd l"m#Z#m$Z$m%Z%m&Z&m'Z'm(Z( dd l)m*Z* ddl+m,Z, ddl-m.Z. dd l/m0Z1 ddl2m3Z3 ddl4m5Z5 ddl6m7Z7m8Z8 ddl9m:Z:m;Z;m<Z<m=Z=m>Z> ddl?m@Z@mAZA ddlBmCZCmDZDmEZE ddlFmGZGmHZHmIZImJZJ ddlKmLZL ddlMmNZN ddlOmPZPmQZQ ddlRmSZSmTZT ddlUmVZV dZW G d� de� � ZXe G d� d � � � � ZY G d!� d"� � ZZdS )#zB This module contains X Ray Smart Advice local utility main class � N)�contextmanager)�asdict� dataclass)�Any�Tuple�Optional�List�Dict)�Enum)�LicenseApproveStatus)�is_feature_allowed�is_subscription_pending�get_subscription_upgrade_url�get_license_approve_status�approve_license_agreement�get_license_agreement_text�get_subscriptions_info�get_user_auth_key�2is_smart_advice_notifications_disabled_server_wide�.is_smart_advice_reminders_disabled_server_wide�5is_smart_advice_wordpress_plugin_disabled_server_wide)�docroot�is_panel_feature_supported�get_user_emails_list�panel_awp_link� getCPName�userdomains)� is_wp_path)�drop_privileges)�Feature)�gettext� )�get_advice_instance)�SmartAdviceProgress� )� get_client� api_client)�advice_pending_storage�advice_processed_storage�advice_list_cache�advice_list_im360_cache�advice_reason_max_len)� XRayError�SmartAdvicePluginError)�user_mode_advice_verification�username_verification�get_xray_exec_user)� timestamp� safe_move�get_user_php_version�filelock)�report_usage_action_or_error)�ClWposGetter)�get_mu_directory�"create_mu_plugins_dir_if_not_exist)�plugin_installed�prepare_system_analytics_data)�report_analytics�;c � � e Zd ZdZdZdS )� AdviceActions�apply�rollbackN)�__name__� __module__�__qualname__�APPLY�ROLLBACK� � �K/opt/cloudlinux/venv/lib64/python3.11/site-packages/xray/adviser/cli_api.pyr? r? J s � � � � � ��E��H�H�HrH r? c �V � e Zd ZU eed<