/*
═══════════════════════════════════════════════════════════════
EMAIL NOTIFICATION SETUP — ONE TIME, 5 MINUTES
═══════════════════════════════════════════════════════════════
To receive email alerts when candidates complete the NeuroSell assessment:
1. Go to https://www.emailjs.com and create a FREE account
(free tier = 200 emails/month — more than enough)
2. In EmailJS dashboard:
→ Email Services → Add New Service → Gmail (use mike@peaktcs.com)
→ Copy the SERVICE ID (looks like "service_xxxxxxx")
3. Create an Email Template:
→ Email Templates → Create New Template
→ Subject: NeuroSell Assessment — {{candidate_name}} — {{routing_tier}} — {{overall_score}}/100
→ Body (paste this):
New NeuroSell Assessment Submitted
───────────────────────────────────
Candidate: {{candidate_name}}
Email: {{candidate_email}}
Phone: {{candidate_phone}}
Location: {{candidate_location}}
Submitted: {{submitted_at}} ET
OVERALL SCORE: {{overall_score}}/100
ROUTING: {{routing_tier}}
Six Unmeasurables Score: {{unmeasurables_score}}/100
NeuroSell Layer Score: {{neurosell_score}}/100
CONSTRUCT BREAKDOWN:
{{construct_breakdown}}
Target Position: {{preferred_position}}
Salary Expectation: {{salary_expectation}}
Education: {{education}}
Documents Uploaded: {{documents_uploaded}}
Consistency Flags:
{{consistency_flags}}
Submission ID: {{submission_id}}
───────────────────────────────────
Review full profile in Firebase:
https://console.firebase.google.com/project/neurosell-9e75f/firestore
→ Copy the TEMPLATE ID (looks like "template_xxxxxxx")
4. In EmailJS → Account → Copy your PUBLIC KEY
5. In this file, replace these three placeholders:
- YOUR_EMAILJS_PUBLIC_KEY (line with emailjs.init)
- YOUR_SERVICE_ID (line with emailjs.send)
- YOUR_TEMPLATE_ID (line with emailjs.send)
That's it. Every completed assessment will email mike@peaktcs.com instantly.
═══════════════════════════════════════════════════════════════
*/