(ns auto-ap.client-routes
  (:require [bidi.bidi :as bidi]))

(def routes ["/" {"" :index
                  "login/" :login
                  "needs-activation/" :needs-activation
                  "needs-activation" :needs-activation
                  "payments/" :payments
                  "admin/" {"" :admin
                            "clients" :admin-clients
                            "users" :admin-users
                            "rules" :admin-rules
                            "accounts" :admin-accounts
                            "import-batches" :admin-import-batches
                            "reminders" :admin-reminders
                            "vendors" :admin-vendors
                            "excel-import" :admin-excel-import
                            "yodlee" :admin-yodlee
                            "yodlee2" :admin-yodlee2}
                  "invoices/" {""  :invoices
                               "import" :import-invoices
                               "unpaid" :unpaid-invoices
                               "paid" :paid-invoices
                               "voided" :voided-invoices
                               "new" :new-invoice}
                  "pos/" {"sales-orders"  :sales-orders
                          "expected-deposits" :expected-deposits}
                  "transactions/" {"" :transactions
                                   "unapproved" :unapproved-transactions
                                   "approved" :approved-transactions
                                   "requires-feedback" :requires-feedback-transactions

                                   "excluded" :excluded-transactions}
                  "ledger/" {"" :ledger
                             "profit-and-loss" :profit-and-loss
                             "balance-sheet" :balance-sheet
                             "external" :external-ledger
                             "external-import" :external-import-ledger}}])
