decopled crm for new appeals - all made on storage
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import jsonpath from "jsonpath";
|
||||
import { v4 as uuidv4 } from "uuid";
|
||||
import data from "../../data/collections.json";
|
||||
import {
|
||||
getBasicSearchDetails,
|
||||
@@ -341,3 +342,18 @@ export const getProgressObj = (
|
||||
//console.log(progObj);
|
||||
return progObj;
|
||||
};
|
||||
|
||||
export const getTempCaseRef = () => {
|
||||
function randomString(length) {
|
||||
return Math.random().toString(36).substr(2, length);
|
||||
}
|
||||
|
||||
const randomGUID = uuidv4();
|
||||
|
||||
return (
|
||||
"TMP-" +
|
||||
randomString(5).toUpperCase() +
|
||||
"-" +
|
||||
randomString(6).toUpperCase()
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user