-
Contacts Found: {{ results.totalCount }}
-
Total Handle Time: {{ results.totalHTDays }}
-
Active Handle Time: {{ results.activeHTDays }}
-
Total Active Time: {{ results.totalATHours }}
+
+
+
{{ results.totalCount }}
+
Contacts Found
+
+
+
+
{{ results.totalHTDays }}
+
Total Handle Time (days)
+
+
+
+
{{ results.activeHTDays }}
+
Active Handle Time (days)
+
+
+
+
{{ results.totalATHours }}
+
Total Active Time (days)
+
diff --git a/client/src/components/CustomerList.vue b/client/src/components/CustomerList.vue
index c9d1afb..1d5a414 100644
--- a/client/src/components/CustomerList.vue
+++ b/client/src/components/CustomerList.vue
@@ -4,5 +4,8 @@ defineProps(["customers"]);
- {{ customer.node.firstName }} {{ customer.node.lastName }} ({{ customer.node.ref }})
+
+
{{ customer.node.firstName }} {{ customer.node.lastName }} ({{ customer.node.ref }})
+
+ No Customer
\ No newline at end of file
diff --git a/client/src/components/EmailInteraction.vue b/client/src/components/EmailInteraction.vue
index 4064229..32fd4a3 100644
--- a/client/src/components/EmailInteraction.vue
+++ b/client/src/components/EmailInteraction.vue
@@ -3,7 +3,14 @@
defineProps(["email"]);
+ Interaction ID {{ email.systemId }}
To: {{ address }}
- From:{{ email.fromAddress }}
- Subject:{{ email.subject }}
-
\ No newline at end of file
+
From: {{ email.fromAddress }}
+
Subject: {{ email.subject }}
+
Thread ID: {{ email.threadId }}
+
+
\ No newline at end of file
diff --git a/client/src/components/OutcomeList.vue b/client/src/components/OutcomeList.vue
index 1301de9..e176e19 100644
--- a/client/src/components/OutcomeList.vue
+++ b/client/src/components/OutcomeList.vue
@@ -4,5 +4,5 @@ defineProps(["outcomes"]);
- {{ outcome.node.text }}
+ {{ outcome.node.text }}
\ No newline at end of file
diff --git a/client/src/main.js b/client/src/main.js
index 01433bc..fe1bcb6 100644
--- a/client/src/main.js
+++ b/client/src/main.js
@@ -1,4 +1,5 @@
-import { createApp } from 'vue'
-import App from './App.vue'
+import { createApp } from "vue";
+import App from "./App.vue";
+import "./assets/eo.css";
-createApp(App).mount('#app')
+createApp(App).mount("#app");
diff --git a/server/routes/threadTracker.js b/server/routes/threadTracker.js
index d043022..7eda590 100644
--- a/server/routes/threadTracker.js
+++ b/server/routes/threadTracker.js
@@ -2,12 +2,12 @@ const express = require("express");
const router = express.Router();
const axios = require("axios");
const qs = require("querystring");
-const { threadId } = require("worker_threads");
+const util = require("util");
router.get("/", (req, res) => {
// token in session -> get user data and send it back to the vue app
if (req.session.token) {
- query();
+ query(req.query.threadId);
}
// no token -> send nothing
else {
@@ -33,14 +33,14 @@ router.get("/", (req, res) => {
req.session.token = result.data.access_token;
console.log(result);
//redirect to Vue app
- query();
+ query(req.query.threadId);
})
.catch((err) => {
console.error(err);
});
}
- function query() {
+ function query(threadId) {
console.log("Executing Query");
var query = `query ($startTime: DateTime, $endTime: DateTime) {
@@ -137,7 +137,6 @@ router.get("/", (req, res) => {
}
)
.then((result) => {
- const threadId = "1000503";
var contacts = result.data.data.findContactsCompletedBetween.edges;
var filteredContacts = [];
for (const contact of contacts) {
@@ -184,6 +183,14 @@ router.get("/", (req, res) => {
totalATHours.toPrecision(5);
if (result.data) {
+ console.log(
+ util.inspect(result.data, {
+ showHidden: false,
+ depth: null,
+ colors: true,
+ })
+ );
+
res.send(result.data);
}