<?php

// TODO: [not important] after the menu is redone, the id and path will be the same... (one of them may be eliminated)

// TODO: [not important] after the menu is redone, the id and path will be the same... ("path" may be eliminated)

// TODO: separatoare si titluri in meniu (dupa ce se rezolva nivelul de acces - momentan apar in acces user si separatoarele si titlurile)

$MENUXML2 = <<<MENUXML
<APPMenu hasNotifications="1">
	<section path="Modules/Home" access="always" />

	<section id="Group:Partners" type="group">
		<section id="Group:Partners/Corporates" type="group">
			<section path="Modules/Partners/Corporates" />
			<section path="Modules/Partners/Corporates/Offices"  />
			<section path="Modules/Partners/Corporates/ContactPersons"  />
			<section path="Modules/Partners/Corporates/Contracts" />
			<section path="Modules/Partners/Corporates/Contacts" />
			<section path="Modules/Partners/Corporates/Segments" />
			<section path="Modules/Partners/Corporates/Dashboard" />
			<section path="Modules/Partners/Corporates/CreditCards" />
		</section>
		<section id="Group:Partners/Customers" type="group">
			<section path="Modules/Partners/Customers" />
			<section path="Modules/Partners/Customers/FrequentBuyerCards" />
			<section path="Modules/Partners/Customers/Segments" />
			<section path="Modules/Partners/Customers/Dashboard" />
			<section path="Modules/Partners/Customers/Deduplicate" />
			<section path="Modules/Partners/Customers/CreditCards" />
		</section>
		<section id="Group:Partners/Suppliers" type="group">
			<section path="Modules/Partners/Suppliers" />
			<section path="Modules/Partners/Suppliers/ContactPersons" />
			<section path="Modules/Partners/Suppliers/Contracts" />
		</section>
		<section path="Modules/Partners/SupplierProducts" />
		<section path="Modules/Partners/Trusts" />
		<section path="Modules/Admin/ImportEntities" />
		<section path="Modules/Admin/OfferProfileRules" />
		<section path="Modules/Admin/QcRules" />
		<section path="Modules/Admin/KamSalesTargets" />

	</section>

	<section id="Group:Orders" type="group">
		<section id="orderForm" path="reservations/orderForm" nonMVC="1" />
		<section path="Modules/Orders/OrdersList" />
		<section path="Modules/Orders/ServicesList" />
		<section path="Modules/Orders/ImportedOrders/ServicesList" />
		<section path="Modules/Orders/Dashboard" />
		<section path="Modules/Orders/GdsSalesReport" />

		<section id="Group:Amadeus" type="group">
			<section path="Modules/Orders/Amadeus/ServicesList" />
			<section path="Modules/Orders/Amadeus/Collector" />
		</section>

		<section id="Group:Galileo" type="group">
			<section path="Modules/Orders/Galileo/ServicesList" />
			<section path="Modules/Orders/Galileo/Collector" />
		</section>

		<section id="Group:Apollo" type="group">
			<section path="Modules/Orders/Apollo/ServicesList" />
			<section path="Modules/Orders/Apollo/Collector" />
		</section>

		<section id="Group:Sabre" type="group">
			<section path="Modules/Orders/Sabre/ServicesList"/>
			<section path="Modules/Orders/Sabre/Collector"/>
		</section>

		<section id="Group:Worldspan" type="group">
			<section path="Modules/Orders/Worldspan/ServicesList"/>
			<section path="Modules/Orders/Worldspan/Collector"/>
		</section>

		<section id="Group:Orders/Mice" type="group" access="inactive">
			<section path="Modules/Orders/MiceProjects" access="inactive" />
			<section path="Modules/Orders/MiceProjects/Types" access="inactive" />
		</section>

		<section id="Group:Tools/TaskManagement" type="group">
			<section path="Modules/TaskManagement/Tasks" />
			<section path="Modules/TaskManagement/Categories" />
			<section path="Modules/TaskManagement/OperationTypes" />
		</section>

	</section>

	<section id="Group:Invoices" type="group">
		<section path="Modules/Invoices/InvoicesList" />
		<section path="Modules/Invoices/SupplierInvoices" />
		<section id="Group:Invoices/Balances" type="group">
			<section id="balanceInvoices" path="invoices/balanceInvoices" nonMVC="1" />
			<section path="Modules/Invoices/BalancesList" />
			<section path="Modules/Invoices/BalancesAuto" />
		</section>
		<section id="Group:Cashbook" type="group">
			<section id="cashBook" path="invoices/cashBook" nonMVC="1" />
			<section path="Modules/Invoices/CashBook/Documents" />
		</section>
		<section path="Modules/Invoices/Cashings/Listing" />
		<section path="Modules/Invoices/Payments/Listing" />
		<section path="Modules/Documents/ImportedDocuments" />
		<section path="Modules/Documents/DocumentsList" />
		<section path="Group:Bsp" type="group">
			<section path="Modules/Bsp/Listing" />
			<section path="Modules/Bsp/Settlement" />
            <section path="Modules/Bsp/ImportedRefunds" />
		</section>
		<section path="Modules/Admin/CurrencyExchange" />
	</section>

	<section id="Group:Reports" type="group">
		<section id="reportsGeneration" path="reports/reportsGeneration" nonMVC="1" />
		<section id="reportsManagement" path="reports/reportsManagement" nonMVC="1" />
		<section path="Modules/Reports/Generations" />
		<section id="Group:BspReports" type="group">
			<section path="Modules/Reports/BspStructure/TicketReport" />
			<section path="Modules/Reports/BspStructure/AirlineReport" />
		</section>
	</section>

	<section id="Group:Admin" type="group">

		<section id="Group:Admin/Agency" type="group">
			<section path="Modules/Admin/Users" />
			<section path="Modules/Admin/Offices" />
			<section path="Modules/Admin/Departments" />
			<section path="Modules/Admin/UsersProfiles" />
			<section path="Modules/Admin/UsersTrails"/>
			<section path="Modules/Admin/CompanyData" />
			<section path="Modules/Admin/BankAccounts" />
			<section path="Modules/Admin/AgencyCreditCards" />
		</section>

		<section id="Group:Admin/Config" type="group">

			<section id="Group:Admin/Config/Currencies" type="group">
				<section path="Modules/Admin/Config/Currencies" />
				<section path="Modules/Admin/Config/CurrencyTypes" />
			</section>

			<section id="Group:Admin/Config/Services" type="group">
				<section path="Modules/Admin/Config/Services/Basic" />
				<section path="Modules/Admin/Config/Services/Advanced" />
				<section path="Modules/Admin/Config/Services/Attributes" />
				<section path="Modules/Admin/Config/Services/AgencyCostCenters" />
				<section path="Modules/Admin/Config/Services/ActiveServices" />
			</section>

			<section id="Group:Admin/Config/Orders" type="group">
				<section path="Modules/Admin/Config/Orders/Types" />
				<section path="Modules/Admin/Config/Orders/ServicesTypes" />
				<section path="Modules/Admin/Config/Orders/Numbers" />
				<section path="Modules/Admin/Config/Orders/Flags" />
			</section>

			<section id="Group:Admin/ImportedOrders" type="group">
				<section path="Modules/Admin/Config/ImportedOrders/SystemManagement" />
				<section path="Modules/Admin/Config/ImportedOrders/Services" />
				<section path="Modules/Admin/Config/ImportedOrders/EntitiesMatch" />
			</section>

			<section path="Modules/Admin/Config/SupplierProducts/Fields" />

			<section id="Group:Admin/Config/ClientInvoices" type="group">
				<section path="Modules/Admin/Config/ClientInvoices/General" />
				<section path="Modules/Admin/Config/ClientInvoices/RowsDescriptions" />
				<section path="Modules/Admin/Config/ClientInvoices/TotalRounding" />
				<section path="Modules/Admin/Config/ClientInvoices/FormsOfPayment" />
				<section path="Modules/Admin/Config/ClientInvoices/CopyInvoiceRemarksFromService" />
				<section path="Modules/Admin/Config/ClientInvoices/Compensation" />
			</section>

			<section id="Group:Admin/Config/SupplierInvoices" type="group">
				<section path="Modules/Admin/Config/SupplierInvoices/General" />
				<section path="Modules/Admin/Config/SupplierInvoices/Fields" />
				<section path="Modules/Admin/Config/SupplierInvoices/Vats" />
				<section path="Modules/Admin/Config/SupplierInvoices/ActiveServices" />
			</section>

			<section id="Group:Admin/Config/InvoiceBalances" type="group">
				<section path="Modules/Admin/Config/Balances/Numbers" />
				<section path="Modules/Admin/Config/InvoiceBalances/Vats" />
				<section path="Modules/Admin/Config/InvoiceBalances/AutobalancingScoringCriteria" />
			</section>

			<section id="Group:Modules/Admin/Config/InvoiceCashings" type="group">
				<section path="Modules/Admin/Config/InvoiceCashings/DocsList" />
				<section path="Modules/Admin/Config/InvoiceCashings/General" />
			</section>

			<section id="Group:Modules/Admin/Config/SupplierInvoicesPayments" type="group">
				<section path="Modules/Admin/Config/SupplierInvoicesPayments/DocsList" />
				<section path="Modules/Admin/Config/SupplierInvoicesPayments/General" />
			</section>

			<section id="Group:Admin/Config/Documents" type="group">
				<section path="Modules/Admin/Config/Documents/IssueDocs" />
				<section path="Modules/Admin/Config/Documents/Email" />
			</section>

			<section id="Group:Admin/Config/ImportedDocuments" type="group">
				<section path="Modules/Admin/Config/ImportedDocuments/SystemManagement" />
				<section path="Modules/Admin/Config/ImportedDocuments/EntitiesMatch" />
				<section path="Modules/Admin/Config/ImportedDocuments/Compensate" />
			</section>

			<section id="Group:Admin/Config/Server" type="group">
				<section path="Modules/Admin/Config/Server/Email" />
				<section path="Modules/Admin/Config/Server/Proxy" />
				<section path="Modules/Admin/Config/Server/LoadLimits" />
			</section>
			<section path="Modules/Admin/Config/UsersPasswordSecurity" />

			<section path="Modules/Admin/Config/Remarks" />

			<section id="Group:Admin/Config/Gds" type="group">
				<section path="Modules/Admin/Config/Gds/Amadeus" />
				<section path="Modules/Admin/Config/Gds/Sabre" />
				<section path="Modules/Admin/Config/Gds/Worldspan" />
				<section path="Modules/Admin/Config/Gds/Galileo" />
				<section path="Modules/Admin/Config/Gds/Apollo" />
				<section type="separator" id="Modules/Admin/Config/Gds/Profiles-separator" />
				<section id="Group:Admin/Config/Gds/Profiles" type="group">
					<section path="Modules/Admin/Config/Gds/Profiles/Fields" />
					<section path="Modules/Admin/Config/Gds/Profiles/Templates" />
				</section>
				<section type="separator" id="Modules/Admin/Config/Gds/Bsp-separator" />
				<section path="Modules/Admin/Config/Gds/Bsp" />
                <section path="Modules/Admin/Config/Gds/Pccs" />
			</section>

			<section id="Group:Admin/Config/Corporate" type="group">
				<section path="Modules/Admin/Config/CorporateGroupsManagement" />
				<section path="Modules/Admin/Config/CorporateCreditLimitEmails" />
				<section path="Modules/Admin/Config/CorporateCollectionProfiles" />
			</section>

			<section id="Group:Admin/Config/Supplier" type="group">
				<section path="Modules/Admin/Config/SupplierGroupsManagement" />
				<section path="Modules/Admin/Config/ServiceClassCodeRules" />
			</section>

			<section id="Group:Admin/Config/Customer" type="group">
				<section path="Modules/Admin/Config/Customers/Flags" />
				<section path="Modules/Admin/Config/CustomerCollectionProfiles" />	
			</section>

			<section path="Modules/Admin/EntityMngWsAccounts" />

			<section path="Modules/Admin/Config/Assistant" />

		</section>

		<section id="Group:Admin/Entities" type="group">
			<section path="Modules/Admin/Countries" />
			<section path="Modules/Admin/Cities" />
			<section path="Modules/Admin/Stations" />
			<section path="Modules/Admin/Banks" />
			<section path="Modules/Admin/BankOffices" />
			<section path="Modules/Admin/ActivityDomainCategories" />
			<section path="Modules/Admin/ActivityDomains" />
		</section>

		<section id="Group:Admin/Documents" type="group">
			<section path="Modules/Admin/DocumentSeries" />
			<section path="Modules/Admin/DocumentTemplates" />
			<section path="Modules/Documents/FileExplorer" />
		</section>

		<section id="Group:Admin/AutoProcessRules" type="group">
			<section path="Modules/Admin/AutoProcessRules" />
			<section path="Modules/Admin/AutoProcessRulesLogs" />
		</section>


		<section id="Group:Admin/App" type="group">
			<section path="Modules/Admin/Licenses" />
			<section path="Modules/Utils/Updater" />
			<section path="Modules/Admin/FluxInstances" />
		</section>

		<section id="Group:Admin/Server" type="group">
			<section path="Modules/Admin/Server" />
			<section path="Modules/Admin/Server/Checks" />
			<section path="Modules/Admin/Server/Logs" />
		</section>

		<section id="Group:Admin/ExportData" type="group">
			<section path="Modules/Admin/ExportData/ClientInvoices" />
			<section path="Modules/Admin/ExportData/SupplierInvoices" />
			<section path="Modules/Admin/ExportData/Cashings" />
			<section path="Modules/Admin/ExportData/Payments" />
			<section path="Modules/Admin/ExportData/ExportConfig" />
			<section path="Modules/Admin/ExportData/ExportedFiles" />
			<section path="Modules/Admin/ExportData/Logs" />
		</section>

		<section id="Group:Admin/CronJobs" type="group">
            <section path="Modules/Admin/CronJobs/Management" />
			<section path="Modules/Admin/CronJobs/Logs" />
		</section>

        <section path="Modules/Admin/ReportsDataStatus" />

        <section path="Modules/Admin/WebhookQueue" />
        <section path="Modules/Admin/EmailsQueue" />

	</section>

	<section type="spotlight" id="spotlight" access="always" ></section>

	<section type="userMenu" id="userMenu" access="always" >
		<section path="Modules/Admin/UserProfile" access="always" />
		<section path="Modules/Utils/Calendar/Listing" access="always" />
		<section id="logout" jsAction="logout" access="always" />
	</section>
</APPMenu>
MENUXML;

return $MENUXML2;
