refactor phase 3 targeted actions imports
This commit is contained in:
@@ -44,7 +44,7 @@
|
||||
import axios from "axios";
|
||||
import CryptoJS from "crypto-js";
|
||||
import _ from "lodash";
|
||||
import { getToken } from "../../../actions";
|
||||
import { getToken } from "../../../actions/core/token";
|
||||
import { getCaseBlob } from "../../../actions/azurestorage";
|
||||
const WORDKEY = process.env.HASHKEY;
|
||||
|
||||
@@ -81,7 +81,7 @@ export default async function ApiProxy(req, res) {
|
||||
ceq: "4fddd7e8-7d26-ec11-a97f-00224800e98c", // Inspector Scheduling
|
||||
other: "8ffabad9-7c26-ec11-a97f-00224800e98c", // Casework
|
||||
postdec: "1357e457-7e26-ec11-a97f-00224800e98c", // SLT Team
|
||||
comp: "1357e457-7e26-ec11-a97f-00224800e98c", // SLT Team
|
||||
comp: "1357e457-7e26-ec11-a97f-00224800e98c" // SLT Team
|
||||
};
|
||||
|
||||
let teamId = teamMap[contactValue];
|
||||
@@ -93,7 +93,7 @@ export default async function ApiProxy(req, res) {
|
||||
"scheduledend": new Date(
|
||||
new Date().getTime() + 60 * 60000 * 24
|
||||
).toISOString(), // 30 mins
|
||||
...(teamId && { "ownerid@odata.bind": `/teams(${teamId})` }),
|
||||
...(teamId && { "ownerid@odata.bind": `/teams(${teamId})` })
|
||||
};
|
||||
|
||||
//console.log("/////Create Task:\n", payload, "\n//////////////");
|
||||
@@ -107,9 +107,9 @@ export default async function ApiProxy(req, res) {
|
||||
"Accept": "application/json",
|
||||
"Prefer": 'odata.include-annotations="*",return=representation',
|
||||
"Authorization": "Bearer " + token.access_token,
|
||||
"Content-Type": "application/json",
|
||||
"Content-Type": "application/json"
|
||||
},
|
||||
data: JSON.stringify(payload),
|
||||
data: JSON.stringify(payload)
|
||||
};
|
||||
|
||||
//console.log("/////Create Task config:\n", config, "\n//////////////");
|
||||
|
||||
Reference in New Issue
Block a user