From 2198d8990da4535b6d81cf7008b85e5c14c3e0f3 Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Sat, 17 Feb 2018 16:03:31 -0200 Subject: Adds service endpoints --- src/clj/queue_api/db/core.clj | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/clj/queue_api/db/core.clj (limited to 'src/clj/queue_api/db/core.clj') diff --git a/src/clj/queue_api/db/core.clj b/src/clj/queue_api/db/core.clj new file mode 100644 index 0000000..2d32736 --- /dev/null +++ b/src/clj/queue_api/db/core.clj @@ -0,0 +1,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"]}) \ No newline at end of file -- cgit v1.2.3