1 export const getEOToken = (id: string) => ({
3 url: `mail/v4/eo/token/${id}`,
6 export const getEOMessage = (decryptedToken: string, id: string) => ({
8 url: `mail/v4/eo/message`,
10 Authorization: decryptedToken,
15 export const getEOAttachment = (attachmentId: string, decryptedToken: string, id: string) => ({
17 url: `mail/v4/eo/attachment/${attachmentId}`,
19 Authorization: decryptedToken,
22 output: 'arrayBuffer',
25 export const EOReply = (
26 decryptedToken: string,
31 'Filename[]': string[];
32 'MIMEType[]': string[];
33 'ContentID[]': string[];
34 'KeyPackets[]': Blob[];
35 'DataPacket[]': Blob[];
39 url: 'mail/v4/eo/reply',
42 Authorization: decryptedToken,