diff --git a/packages/adapter-ameyo/lib/api.ts b/packages/adapter-ameyo/lib/api.ts index 60d77d7..ddf234d 100644 --- a/packages/adapter-ameyo/lib/api.ts +++ b/packages/adapter-ameyo/lib/api.ts @@ -1,6 +1,7 @@ import getResponseWithoutCors from "@universal-call-sdk/common/lib/utils/getResponseWithoutCors.ts"; import {CallTransferData, RequestKeys} from "./types"; import RequestType from "@universal-call-sdk/common/lib/types/RequestType.ts"; +import {v4 as uuid} from 'uuid'; export const loginInAmeyo = (userId: string, password: string) => { @@ -20,7 +21,7 @@ export const loginInAmeyo = (userId: string, password: string) => { forceLogin: true, properties: null, captchaAuthenticationInputBean: null, - requestId: null + requestId: uuid(), } }); }; @@ -169,10 +170,10 @@ export const ameyoDisposeCall = (sessionId: string, campaignId: string, crtObjec campaignId, crtObjectId, userCRTObjectId, - "dispositionCodeId": 21, - "requestId": "d0045ff7-8419-0860-8621-2c67ad4eb02f", - "dispositionParams": {}, - "notes": "" + dispositionCodeId: 21, + requestId: uuid(), + dispositionParams: {}, + notes: "" }, headers: { sessionId @@ -219,7 +220,7 @@ export const transferCallToAgent = (data: CallTransferData, sessionId: string, c targetCampaignId: data?.campaignId, targetCRTObjectId: data?.targetCRTObjectId, transferredCRTObjectIds: [crtObjectId], - "requestId": "48ae79ab-faad-21f5-b694-ad3d9e4e0690" + requestId: uuid() }, headers: { sessionId diff --git a/packages/adapter-ameyo/package.json b/packages/adapter-ameyo/package.json index 1539833..f262df4 100644 --- a/packages/adapter-ameyo/package.json +++ b/packages/adapter-ameyo/package.json @@ -9,7 +9,8 @@ "preview": "vite preview" }, "dependencies": { - "@universal-call-sdk/common": "^1.0.43" + "@universal-call-sdk/common": "^1.0.43", + "uuid": "^11.0.3" }, "devDependencies": { "@eslint/js": "^9.11.1",