e7fdZddlZddlmZddlmZejeZdZ dZ dZ eZ dZ d 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 . Copyright © 2019 Cloud Linux Software Inc. This software is also available under ImunifyAV commercial license, see N)malware_response)PENDINGfpfnOKfailedcK|tkr tjn tj} tj||tjd{Vt S#tj$r1}td|d|tcYd}~Sd}~wtj $r1}t d|d|tcYd}~Sd}~wwxYw)a  Submit file to MRS for analysis :param filename: str -> path to file to submit :param type: str -> report type (fp or fn) :param scanner: int -> scanner id :return: one of SUBMIT_SUCCESS, SUBMIT_PENDING, SUBMIT_FAILED :raises LicenseError: ) upload_reasonnotify_timeoutNzFile z* uploading timed out. Marking as pending. z uploading failed. ) FALSE_POSITIVErFALSE_NEGATIVEupload_with_retriesSUBMIT_TIMEOUTSUBMIT_SUCCESS TimeoutErrorloggerwarningSUBMIT_PENDINGClientUploadErrorerror SUBMIT_FAILED)filenametypereasonr es Q/opt/imunify360/venv/lib/python3.11/site-packages/imav/malwarelib/utils/submit.pysubmit_malwarer%s- > ! ! ''  , 2 '+:            ( KH K K K K     - =X==!==>>>s/-AC$&B CC"&CCC)N)__doc__loggingimav.malwarelib.utilsrimav.malwarelib.configr getLogger__name__rr r rrrrrr&s*222222******  8 $ $ r%