<cfsetting showdebugoutput="false">
<cfsetting enablecfoutputonly="true">
<cfcontent type="application/json; charset=utf-8">

<!---
    About Screen Content API
    Returns content for the mobile app's About screen.
    Edit this file to update the app's about information without releasing a new app version.
--->
<cfscript>
try {
    // Features displayed on the About screen
    // icon: Flutter icon name (see AboutFeature._iconMap in about_info.dart)
    features = [
        {
            "ICON": "qr_code_scanner",
            "TITLE": "Scan & Order",
            "DESCRIPTION": "Your phone automatically finds your table location, browse the menu and order directly from your phone"
        },
        {
            "ICON": "group",
            "TITLE": "Group Orders",
            "DESCRIPTION": "Separate checks for everyone, no more confusion about the bill"
        },
        {
            "ICON": "delivery_dining",
            "TITLE": "Delivery & Takeaway",
            "DESCRIPTION": "Order for delivery or pick up when dining in isn't an option (coming soon!)"
        },
        {
            "ICON": "payment",
            "TITLE": "Easy Payment",
            "DESCRIPTION": "Easily pay on your phone with just a few taps, no more awkward check danses with staff!"
        }
    ];

    // Contact links displayed on the About screen
    // icon: Flutter icon name (see AboutContact._iconMap in about_info.dart)
    contacts = [
        {
            "ICON": "help_outline",
            "LABEL": "help.payfrit.com",
            "URL": "https://help.payfrit.com"
        },
        {
            "ICON": "language",
            "LABEL": "www.payfrit.com",
            "URL": "https://www.payfrit.com"
        }
    ];

    writeOutput(serializeJSON({
        "OK": true,
        "DESCRIPTION": "Payfrit makes dining out easier. Order from your phone, separate checks for everyone, and pay without waiting.",
        "FEATURES": features,
        "CONTACTS": contacts,
        "COPYRIGHT": "© #year(now())# Payfrit. All rights reserved."
    }));

} catch (any e) {
    writeOutput(serializeJSON({
        "OK": false,
        "ERROR": "server_error",
        "MESSAGE": e.message
    }));
}
</cfscript>
