13 lines
478 B
TypeScript
13 lines
478 B
TypeScript
|
|
import { config } from 'dotenv';
|
||
|
|
import { resolve } from 'path';
|
||
|
|
config({ path: resolve('/opt/stacks/pulse/.env.local') });
|
||
|
|
|
||
|
|
import { parseAndStoreMessage } from '../lib/services/phishing-eml-service';
|
||
|
|
|
||
|
|
async function main() {
|
||
|
|
const result = await parseAndStoreMessage({ reportId: '6bdd5c3f-0844-4673-941b-d5b438739383', ticketId: 699456 });
|
||
|
|
console.log(JSON.stringify(result, null, 2));
|
||
|
|
process.exit(0);
|
||
|
|
}
|
||
|
|
main().catch((err) => { console.error(err); process.exit(1); });
|