l#gtxddlZddlmZddlmZGddZGddeZGdd eZdS) N)Optional)GP_FILEcjeZdZedZedZedededeefdZdS) BaseConfigcJtj|jS)N)ospathexists _conf_path)clss Y/opt/imunify360/venv/lib/python3.11/site-packages/defence360agent/api/integration_conf.pyr zBaseConfig.existssw~~cn---cZddlm}|}||j|S)Nr) ConfigParser) configparserrreadr )r rintegration_confs r to_dictzBaseConfig.to_dict s<------'<>>cn---rsectionoptionreturncf |||S#t$rYdSwxYw)z` Return *option* value in *section* in config if exist, None otherwise. N)rKeyError)r rrs r getzBaseConfig.getsA  ;;==)&1 1   44 s " 00N) __name__ __module__ __qualname__ classmethodr rstrrrrr rrs..[.  [ #sx}[rrceZdZeZdS)IntegrationConfigN)rrrrr r rr r"r"!sJJJrr"ceZdZdZdS)ClIntegrationConfigz!/opt/cpvendor/etc/integration.iniN)rrrr r rr r$r$%s4JJJrr$)rtypingr3defence360agent.application.determine_hosting_panelrrr"r$r rr r's GGGGGG4 55555*55555r