diff --git a/headers.js b/headers.js
index 9b01933..7a57c46 100644
--- a/headers.js
+++ b/headers.js
@@ -1,6 +1,6 @@
// /etc/nginx/headers.js
function headers_json(r) {
- return JSON.stringify(r.headersIn)
- }
-
- export default {headers_json};
\ No newline at end of file
+ return JSON.stringify(r.headersIn);
+}
+
+export default { headers_json };
diff --git a/src/App.vue b/src/App.vue
index 3850d83..e437dab 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -5,13 +5,11 @@ export default {
+// }
+
diff --git a/src/router/index.js b/src/router/index.js
index 3162c7b..6b12651 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -7,45 +7,52 @@ import SearchByReferenceView from "../views/SearchByReferenceView.vue";
import InteractionsFlowView from "../views/InteractionsFlowView.vue";
import CustomerAccountView from "../views/CustomerAccountView.vue";
-
const routes = [
{
path: "/",
name: "home",
components: { default: HomeView, SideBarView: SideBarView },
- props: { default: false, SideBarView: true }
+ props: { default: false, SideBarView: true },
},
{
path: "/about",
name: "about",
components: { default: AboutView, SideBarView: SideBarView },
- props: { default: false, SideBarView: true }
+ props: { default: false, SideBarView: true },
},
{
path: "/referenceId",
name: "referenceId",
components: { default: SearchByReferenceView, SideBarView: SideBarView },
- props: { default: route => ({ sessionIdentifier: route.query._sessionIdentifier }) }
+ props: {
+ default: (route) => ({
+ sessionIdentifier: route.query._sessionIdentifier,
+ }),
+ },
},
{
path: "/interactionsFlow",
name: "interactionsFlow",
components: { default: InteractionsFlowView, SideBarView: SideBarView },
- props: { default: route => ({ sessionIdentifier: route.query._sessionIdentifier }) }
+ props: {
+ default: (route) => ({
+ sessionIdentifier: route.query._sessionIdentifier,
+ }),
+ },
},
{
path: "/customerAccount/:accountNumber",
name: "customerAccount",
component: CustomerAccountView,
components: { default: CustomerAccountView, SideBarView: SideBarView },
- props: { default: true, SideBarView: true }
+ props: { default: true, SideBarView: true },
},
{
path: "/debug",
name: "debug",
component: DebugFrameView,
components: { default: DebugFrameView },
- props: { default: true }
+ props: { default: true },
},
];
diff --git a/src/views/DebugFrameView.vue b/src/views/DebugFrameView.vue
index 5a6fb7c..ed38092 100644
--- a/src/views/DebugFrameView.vue
+++ b/src/views/DebugFrameView.vue
@@ -3,21 +3,20 @@ import { useCookies } from "vue3-cookies";
const { cookies } = useCookies();
export default {
- name: "DebugFrameView",
+ name: "DebugFrameView",
- data() {
-
- return {
- route : JSON.stringify(this.$route, null, 2),
- cookies : JSON.stringify(cookies.keys(), null, 2),
- }
- }
-}
+ data() {
+ return {
+ route: JSON.stringify(this.$route, null, 2),
+ cookies: JSON.stringify(cookies.keys(), null, 2),
+ };
+ },
+};
- Adaptive Frame Debug
- Route information
- {{ route }}
- Cookie information
- {{ cookies }}
-
\ No newline at end of file
+
Adaptive Frame Debug
+ Route information
+ {{ route }}
+ Cookie information
+ {{ cookies }}
+
diff --git a/src/views/InteractionsFlowView.vue b/src/views/InteractionsFlowView.vue
index 262cf48..666b134 100644
--- a/src/views/InteractionsFlowView.vue
+++ b/src/views/InteractionsFlowView.vue
@@ -9,10 +9,16 @@ import ErrorMessage from "../components/ErrorMessage.vue";
const props = defineProps({
username: { type: String, default: "" },
- sessionIdentifier: { type: String, default: "" }
+ sessionIdentifier: { type: String, default: "" },
});
-const filterOptions = ["Channel", "SubChannel", "Queue", "Outcome"];
+const filterOptions = [
+ "Direction",
+ "Channel",
+ "SubChannel",
+ "Queue",
+ "Outcome",
+];
const multiSelected = ref(filterOptions);
const alignOptions = ["Left", "Center", "Right", "Justify"];
@@ -35,11 +41,13 @@ function fetchData() {
} else if (props.username.length > 0) {
authKey = props.username;
} else {
- errorMessage.value = "_sessionIdentifier or username must be passed as query params."
+ errorMessage.value =
+ "_sessionIdentifier or username must be passed as query params.";
}
if (authKey) {
fetch(
- `${import.meta.env.VITE_EO_SERVICES_URL}/api/interactions-flow?filter=${multiSelected.value
+ `${import.meta.env.VITE_EO_SERVICES_URL}/api/interactions-flow?filter=${
+ multiSelected.value
}&authKey=${authKey}`,
{
credentials: "include", // fetch won't send cookies unless you set credentials
@@ -96,9 +104,9 @@ function generateSankey(data) {
.nodeId((d) => d.name)
.nodeAlign(
align[
- `sankey${alignSelected.value[0].toUpperCase()}${alignSelected.value.slice(
- 1
- )}`
+ `sankey${alignSelected.value[0].toUpperCase()}${alignSelected.value.slice(
+ 1
+ )}`
]
) // d3.sankeyLeft, etc.
.nodeWidth(15)
@@ -170,10 +178,10 @@ function generateSankey(data) {
linkColor === "source-target"
? (d) => `url(#${d.uid})`
: linkColor === "source"
- ? (d) => color(d.source.category)
- : linkColor === "target"
- ? (d) => color(d.target.category)
- : linkColor
+ ? (d) => color(d.source.category)
+ : linkColor === "target"
+ ? (d) => color(d.target.category)
+ : linkColor
)
.attr("stroke-width", (d) => Math.max(1, d.width));
@@ -201,16 +209,16 @@ function generateSankey(data) {
-