aboutsummaryrefslogtreecommitdiff
path: root/src/clj/queue_api/db/core.clj
blob: 2d327366742e457695c2a0b06699e898831d27e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
(ns queue-api.db.core)


(defn add-agent [{:keys [id name primary-skillset secondary-skillset]}]
  (println (str "Dummy " name)))

(defn add-job [{:keys [id type urgent]}]
  (println (str "Dummy " type)))

(defn request-job [id]
  {:job_request {:job_id "Dummy" :agent_id "Dummy"}})

(defn get-agent [id]
  [{:type "reward_question" :jobs 2}
   {:type "bills_question" :jobs 3}])

(defn get-queue []
  {:completed ["1" "2" "3"]
   :in_process["2" "3" "4"]
   :waiting ["2" "5" "6"]})