(query = {})
| 12 | function _defaultMailboxDir() { return getEvomapPath('mailbox'); } |
| 13 | |
| 14 | async function getInteractions(query = {}) { |
| 15 | const proxy = getProxySettings(); |
| 16 | const proxySnapshots = proxy.url ? await readProxySnapshots(proxy.url) : {}; |
| 17 | const mailbox = readMailboxMessages(query); |
| 18 | return { |
| 19 | proxy, |
| 20 | proxySnapshots, |
| 21 | mailbox: paginate(mailbox, query), |
| 22 | }; |
| 23 | } |
| 24 | |
| 25 | function readMailboxMessages(query = {}) { |
| 26 | const mailboxDir = query.mailboxDir || process.env.EVOMAP_MAILBOX_DIR || _defaultMailboxDir(); |
nothing calls this directly
no test coverage detected