Files
Facilitor/APPL/API2/api2_dispatch.inc
Jos Groot Lipman 17a28679fc AAFM#51747 OfficeApp ruimte data opvragen
svn path=/Website/branches/v2017.2/; revision=36505
2018-01-08 11:20:11 +00:00

164 lines
13 KiB
PHP

<% /*
$Revision$
$Id$
File: api2_dispatch.inc
Description: Mapping tussen externe API-naam en interne bestandnaam
Notes:
Status:
*/
var api2_mapper = {
// De 'name' moet hier gelijk zijn aan model.records_name
"swagger" : { "filename": "appl/api2/api_swagger.asp" },
"realestateproperties" : { "filename": "appl/mgt/alg_kenmerk.asp", "docparam": "&level=R" },
"buildingfunctions" : { "filename": "appl/mgt/alg_srtgebouw.asp" },
"terrainfunctions" : { "filename": "appl/mgt/alg_srtterreinsector.asp" },
"regions" : { "filename": "appl/api2/api_regions.asp", "module": "ALG" },
"buildings" : { "filename": "appl/api2/api_buildings.asp", "module": "ALG" },
"floors" : { "filename": "appl/api2/api_floors.asp", "module": "ALG" },
"locations" : { "filename": "appl/api2/api_locations.asp", "module": "ALG" },
"rooms" : { "filename": "appl/api2/api_rooms.asp", "module": "ALG" },
"districts" : { "filename": "appl/api2/api_districts.asp", "module": "ALG" },
"orderdisciplines" : { "filename": "appl/mgt/bes_discipline.asp" },
"ordercatalogues" : { "filename": "appl/mgt/bes_disciplineprod.asp" },
"orderunits" : { "filename": "appl/mgt/bes_grootheid.asp" },
"orderlineproperties" : { "filename": "appl/mgt/bes_kenmerk.asp" },
"orderproperties" : { "filename": "appl/mgt/bes_kenmerkbestel.asp" },
"orderarticlegroups" : { "filename": "appl/mgt/bes_srtgroep.asp" },
"orderpropertytypes" : { "filename": "appl/mgt/bes_srtkenmerk.asp" },
"orderproductgroups" : { "filename": "appl/mgt/bes_srtprodgroep.asp", "lcl_name": "bes_srtgroep_m" },
"orderpacelisttables" : { "filename": "appl/mgt/bes_staffeltabel.asp" },
"visitoractions" : { "filename": "appl/mgt/bez_actie.asp" },
"visitorproperties" : { "filename": "appl/mgt/bez_kenmerk.asp" },
"appointments" : { "filename": "appl/api2/api_appointments.asp", "module": "BEZ" },
"visitors" : { "filename": "appl/api2/api_visitors.asp", "module": "BEZ" },
"budget" : { "filename": "appl/bgt/bgt_budget.asp" },
"budgetmutations" : { "filename": "appl/bgt/bgt_budgetmutatie.asp"},
"budgetdisciplines" : { "filename": "appl/bgt/bgt_discipline.asp" },
"budgetcostcategories" : { "filename": "appl/bgt/bgt_kostenrubriek.asp" },
"budgetprojects" : { "filename": "appl/bgt/bgt_project.asp" },
"graphiclabels" : { "filename": "appl/mgt/cad_label.asp" },
"graphiclegends" : { "filename": "appl/mgt/cad_legenda.asp" },
"graphiclegendvalues" : { "filename": "appl/mgt/cad_legendawaarde.asp" },
"graphicthemes" : { "filename": "appl/mgt/cad_thema.asp" },
"contractdisciplines" : { "filename": "appl/mgt/cnt_discipline.asp" },
"contractproperties" : { "filename": "appl/mgt/cnt_kenmerk.asp" },
"contractpropertytypes" : { "filename": "appl/mgt/cnt_srtkenmerk.asp" },
"contractperiods" : { "filename": "appl/mgt/cnt_termijn.asp" },
"taskdisciplines" : { "filename": "appl/mgt/ctr_discipline.asp" },
"audits" : { "filename": "appl/mgt/fac_audit.asp" },
"emailsettings" : { "filename": "appl/mgt/fac_email_setting.asp" },
"exportfunctions" : { "filename": "appl/mgt/fac_export_app.asp" },
"authorizationfunctions" : { "filename": "appl/mgt/fac_functie.asp" },
"authorizationgroups" : { "filename": "appl/api2/api_authorizationgroups.asp" },
"authorizations" : { "filename": "appl/mgt/fac_groeprechten.asp", "nodoc": true },
"identityproviders" : { "filename": "appl/mgt/aut_idp.asp" },
"importfunctions" : { "filename": "appl/mgt/fac_import_app.asp" },
"notificationjobs" : { "filename": "appl/mgt/fac_notificatie_job.asp" },
"profiles" : { "filename": "appl/mgt/fac_profiel.asp" },
"profilevalues" : { "filename": "appl/mgt/fac_profielwaarde.asp" },
"notificationtypes" : { "filename": "appl/mgt/fac_srtnotificatie.asp" },
"customgraphs" : { "filename": "appl/mgt/fac_usrgraph.asp", "nodoc": true },
"customtables" : { "filename": "appl/mgt/fac_usrtab.asp" },
"widgets" : { "filename": "appl/mgt/fac_widget.asp" },
"knowledgeproperties" : { "filename": "appl/mgt/faq_kenmerk.asp" },
"vattables" : { "filename": "appl/mgt/fin_btwtabel.asp" },
"invoiceproperties" : { "filename": "appl/mgt/fin_kenmerk.asp" },
// "saleinvoicelines" : { "filename": "appl/mgt/fin_verkoopfactuur.asp", "nodoc": true },
"taskhandlings" : { "filename": "appl/mgt/ins_controlemode.asp" },
"objectdisciplines" : { "filename": "appl/mgt/ins_discipline.asp" },
"objectproperties" : { "filename": "appl/mgt/ins_kenmerk.asp" },
"recurringtasks" : { "filename": "appl/mgt/ins_srtcontrole.asp" },
"objectgroups" : { "filename": "appl/mgt/ins_srtgroep.asp" },
"objectpropertytypes" : { "filename": "appl/mgt/ins_srtkenmerk.asp" },
"alldisciplines" : { "filename": "appl/mgt/ins_tab_discipline.asp" },
"issueclosingtexts" : { "filename": "appl/mgt/mld_afmeldtekst.asp" },
"backofficegroups" : { "filename": "appl/mgt/mld_behandelgroep.asp" },
"servicelevels" : { "filename": "appl/mgt/mld_dienstniveau.asp" },
"issuedisciplines" : { "filename": "appl/mgt/mld_discipline.asp" },
"unproductivetimes" : { "filename": "appl/mgt/mld_impropdr.asp" },
"issueproperties" : { "filename": "appl/mgt/mld_mld_kenmerk.asp" },
"issueorderproperties" : { "filename": "appl/mgt/mld_kenmerk.asp" },
"expenses" : { "filename": "appl/mgt/mld_kosten.asp" },
"callsources" : { "filename": "appl/mgt/mld_meldbron.asp" },
"disciplinetypes" : { "filename": "appl/mgt/mld_srtdiscipline.asp" },
"issuepropertytypes" : { "filename": "appl/mgt/mld_srtkenmerk.asp" },
"callgroups" : { "filename": "appl/mgt/mld_stdmeldinggroep.asp" },
"issueordertypes" : { "filename": "appl/mgt/mld_typeopdr.asp" },
"daysoff" : { "filename": "appl/mgt/mld_vrije_dagen.asp" },
"workflows" : { "filename": "appl/mgt/mld_workflow.asp" },
"workflowsteps" : { "filename": "appl/mgt/mld_workflowstep.asp", "nodoc": true },
"workflowexpressions" : { "filename": "appl/mgt/mld_workflow_expression.asp" },
"issuedisciplines" : { "filename": "appl/api2/api_issuedisciplines.asp", "module": "MLD" },
// "orders" : { "filename": "appl/api2/api_orders.asp", "module": "MLD" },
"orders" : { "filename": "appl/bgt/mld_opdr.asp", "module": "MLD" },
"issues" : { "filename": "appl/api2/api_issues.asp", "module": "MLD" },
"issuetypes" : { "filename": "appl/api2/api_issuetypes.asp", "module": "MLD" },
"pinboardcategories" : { "filename": "appl/mgt/mrk_discipline.asp" },
"services" : { "filename": "appl/mgt/prs_dienst.asp" },
"basisproperties" : { "filename": "appl/mgt/prs_kenmerk.asp", "docparam": "&level=P" },
"combinationvalidations" : { "filename": "appl/mgt/prs_kostencombinatie.asp" },
"costtypes" : { "filename": "appl/mgt/prs_kostensoort.asp" },
"costtypegroups" : { "filename": "appl/mgt/prs_kostensoortgrp.asp" },
"costcentregroups" : { "filename": "appl/mgt/prs_kostenplaatsgrp.asp" },
"costcentres" : { "filename": "appl/mgt/prs_kostenplaats.asp" },
"persons" : { "filename": "appl/api2/api_persons.asp", "nodoc": true },
"mandates" : { "filename": "appl/mgt/prs_perslidkostenplaats.asp" },
"relationtypes" : { "filename": "appl/mgt/prs_relatietype.asp" },
"employeefunctions" : { "filename": "appl/mgt/prs_srtperslid.asp" },
"basispacelists" : { "filename": "appl/mgt/prs_staffel.asp" },
"bookingactivities" : { "filename": "appl/mgt/res_activiteit.asp" },
"bookingconsumables" : { "filename": "appl/mgt/res_artikel.asp" },
"bookingcycles" : { "filename": "appl/mgt/res_cyclus.asp" },
"bookingitems" : { "filename": "appl/mgt/res_deel.asp" },
"bookingdisciplines" : { "filename": "appl/mgt/res_discipline.asp" },
"bookingproperties" : { "filename": "appl/mgt/res_kenmerk.asp" },
"bookingconfigurations" : { "filename": "appl/mgt/res_opstelling.asp" },
"bookingrooms" : { "filename": "appl/mgt/res_ruimte.asp" },
"bookingactivitytypes" : { "filename": "appl/mgt/res_srtactiviteit.asp" },
"bookingconsumablescopes" : { "filename": "appl/mgt/res_srtartikel_onrgoed.asp" },
"bookingpropertytypes" : { "filename": "appl/mgt/res_srtkenmerk.asp" },
"reservationequipment" : { "filename": "appl/api2/api_reservationequipment.asp", "module": "RES" },
"reservations" : { "filename": "appl/api2/api_reservations.asp", "module": "RES" },
"reservablerooms" : { "filename": "appl/api2/api_reservablerooms.asp", "module": "RES" },
"reservableconsumables" : { "filename": "appl/api2/api_reservableconsumables.asp", "module": "RES" },
"reservationconsumables" : { "filename": "appl/api2/api_reservationconsumables.asp", "module": "RES" },
"reservableequipment" : { "filename": "appl/api2/api_reservableequipment.asp", "module": "RES" },
"reservablecatalog" : { "filename": "appl/api2/api_reservablecatalog.asp", "module": "RES" },
"res_ruimtes" : { "filename": "appl/api2/api_res_ruimtes.asp", "module": "RES" },
"attachments" : { "filename": "appl/api2/api_attachments.asp", "module": "API", "nodoc": true },
"doc" : { "filename": "appl/api2/api_doc.asp", "module": "API" },
"apis" : { "filename": "appl/api2/api_apis.asp", "module": "API" },
"about" : { "filename": "appl/api2/api_about.asp", "module": "API" },
"cadcontours" : { "filename": "appl/api2/api_cadcontours.asp", "module": "CAD" },
"contracts" : { "filename": "appl/api2/api_contracts.asp", "module": "CNT" },
"notes" : { "filename": "appl/api2/api_notes.asp", "module": "FAC", "docparam": "&module=MLD" },
"approvals" : { "filename": "appl/api2/api_approvals.asp", "module": "FAC" },
"settings" : { "filename": "appl/api2/api_settings.asp", "module": "FAC" },
"reportsx" : { "filename": "appl/api2/api_reportsx.asp", "module": "FAC" },
"reports" : { "filename": "appl/api2/api_reports.asp", "module": "FAC", "nodoc": true },
"invoices" : { "filename": "appl/api2/api_invoices.asp", "module": "FIN" },
"objects" : { "filename": "appl/api2/api_objects.asp", "module": "INS" },
"inspections" : { "filename": "appl/api2/api_ins_deelsrtcontrole.asp", "module": "INS" },
"statehistory" : { "filename": "appl/mgt/ins_deel_state_history.asp", "module": "INS" },
"companies" : { "filename": "appl/api2/api_companies.asp", "module": "PRS" },
"departments" : { "filename": "appl/mgt/prs_afdeling.asp", "module": "PRS" },
"generictables" : { "filename": "appl/mgt/mgt_generic.asp", "hidden": true },
"systemtables" : { "filename": "appl/mgt/user_tables.asp", "hidden": true },
"workflowexpressions" : { "filename": "appl/mgt/mld_workflow_expression.asp", "hidden": true } // dit is geen model
}
function api2_dispatch(api2_name)
{
api2_name = api2_name.toLowerCase();
if (api2_name in api2_mapper)
return api2_mapper[api2_name].filename;
}
%>