define([
	'Global',
    'SchedulingResourceDirectory'
],
    function (Global, SchedulingResourceDirectory) {
        'use strict';
        var RequestMetaData = Backbone.Model.extend({
            initialize: function () {
                this.url = SchedulingResourceDirectory.instance().get("appointments-metadata").href;
                this.fetch({
	                cache: false,
                    async: false
                });
            },
            defaults: {
                appointmentTypes: [
                    "Primary Care",
                    "Mental Health"
                ],
                userEmail: "",
                userPhone: "",
                bestTimetoCallOptions: [
                    "9 AM - 11 AM",
                    "11 AM - 1 PM",
                    "1 PM - 3 PM",
                    "3 PM - 4 PM"
                ],
                visitTypes: [
                    "Office Visit",
                    "Phone Call",
                    "Video Conference"
                ],
                purposeOfVisitOptions: [
                    "Medication concern",
                    "Routine follow-up",
                    "New issue",
                    "Other"
                ],
                earliestTimeVeteranCanRequestAppointmentInDays: 4,
                farthestTimeVeteranCanRequestAppointmentInDays: 120,
                appointmentRequestStatusOptions: [
                    "Submitted",
                    "Booked",
                    "Not Booked",
                    "Cancelled"
                ]
            }
        });

        return new RequestMetaData();
    }
);
