// T2 Falcon Admin — Voice Service seed data
// A client's voice accounts (Voice account tab) + the pool of available T2 numbers
// used by the "Create Voice Account" wizard when the SIP provider is T2.

const seedVoiceAccounts = [
  {
    id: 'va1', name: 'Main Customer Line',
    provider: 't2',
    numbers: [
      { value: '+966 11 234 5678', status: 'approved' },
      { value: '+966 11 234 5679', status: 'approved' },
    ],
    status: 'active',
    createdAt: '12/03/2025 | 09:14 am', createdBy: { name: 'Ahmad Ali',   email: 'a.ali@aramco.sa' },
    modifiedAt: '20/03/2025 | 02:36 pm', modifiedBy: { name: 'Noor Joudeh', email: 'n.joudeh@aramco.sa' },
  },
  {
    id: 'va2', name: 'Support Hotline',
    provider: 't2',
    numbers: [
      { value: '+966 11 800 1100', status: 'approved' },
      { value: '+966 11 800 1101', status: 'pending' },
      { value: '+966 11 800 1102', status: 'approved' },
      { value: '+966 11 800 1103', status: 'approved' },
      { value: '+966 11 800 1104', status: 'pending' },
    ],
    status: 'active',
    createdAt: '03/04/2025 | 02:40 pm', createdBy: { name: 'Noor Joudeh', email: 'n.joudeh@aramco.sa' },
    modifiedAt: '11/04/2025 | 10:05 am', modifiedBy: { name: 'Ahmad Ali',  email: 'a.ali@aramco.sa' },
  },
  {
    id: 'va3', name: 'Sales BYO Trunk',
    provider: 'byo',
    numbers: [
      { value: '+966 50 998 2200', status: 'approved' },
    ],
    status: 'active',
    createdAt: '21/04/2025 | 11:05 am', createdBy: { name: 'Mona Ghazi', email: 'm.ghazi@aramco.sa' },
    modifiedAt: '28/04/2025 | 04:12 pm', modifiedBy: { name: 'Ahmad Ali', email: 'a.ali@aramco.sa' },
  },
  {
    id: 'va4', name: 'Marketing Campaigns',
    provider: 't2',
    numbers: [
      { value: '+966 11 555 7788', status: 'approved' },
    ],
    status: 'disabled',
    createdAt: '02/05/2025 | 04:22 pm', createdBy: { name: 'Ahmad Ali',  email: 'a.ali@aramco.sa' },
    modifiedAt: '09/05/2025 | 09:40 am', modifiedBy: { name: 'Mona Ghazi', email: 'm.ghazi@aramco.sa' },
  },
  {
    id: 'va5', name: 'IVR Test Line',
    provider: 'byo',
    numbers: [
      { value: '+966 53 100 4040', status: 'approved' },
      { value: '+966 53 100 4041', status: 'approved' },
    ],
    status: 'active',
    createdAt: '15/05/2025 | 10:00 am', createdBy: { name: 'Noor Joudeh', email: 'n.joudeh@aramco.sa' },
    modifiedAt: '18/05/2025 | 01:25 pm', modifiedBy: { name: 'Ahmad Ali',   email: 'a.ali@aramco.sa' },
  },
];

// Available T2 numbers the client can purchase/select (selection -> "Pending approval").
const seedT2Numbers = [
  { value: '+966 11 234 7000' },
  { value: '+966 11 234 7001' },
  { value: '+966 11 234 7002' },
  { value: '+966 11 920 5050' },
  { value: '+966 11 920 5051' },
  { value: '+966 11 600 8080' },
  { value: '+966 11 600 8081' },
  { value: '+966 11 700 3030' },
];

// ===== Voice records (Voice records tab) =====
// source: 'upload' (MP3/WAV) | 'tts' (text-to-speech) | 'record' (microphone)
// usedInIvr: true  -> the record is referenced by an APPROVED IVR tree, so it is
//                     locked (cannot be edited or deleted until the IVR is removed).
const seedVoiceRecords = [
  { id: 'vr1', name: 'Welcome Greeting',     durationSec: 14, createdAt: '08/03/2025 | 10:22 am', createdBy: { name: 'Ahmad Ali',   email: 'a.ali@aramco.sa' },   source: 'tts',    sharedWith: ['Sara Ahmad', 'Omar Hassan'], usedInIvr: true },
  { id: 'vr2', name: 'Working Hours Notice', durationSec: 9,  createdAt: '11/03/2025 | 01:40 pm', createdBy: { name: 'Noor Joudeh', email: 'n.joudeh@aramco.sa' }, source: 'upload', sharedWith: ['Lian Ali'], usedInIvr: false },
  { id: 'vr3', name: 'Hold Music Intro',     durationSec: 23, createdAt: '19/03/2025 | 09:05 am', createdBy: { name: 'Ahmad Ali',   email: 'a.ali@aramco.sa' },   source: 'upload', sharedWith: [], usedInIvr: false },
  { id: 'vr4', name: 'Survey Invitation',    durationSec: 17, createdAt: '02/04/2025 | 03:18 pm', createdBy: { name: 'Mona Ghazi',  email: 'm.ghazi@aramco.sa' },  source: 'record', sharedWith: ['Sara Ahmad', 'Omar Hassan', 'Lian Ali', 'Mohammad Saad'], usedInIvr: true },
  { id: 'vr5', name: 'After-Call Thank You', durationSec: 6,  createdAt: '10/04/2025 | 11:55 am', createdBy: { name: 'Noor Joudeh', email: 'n.joudeh@aramco.sa' }, source: 'tts',    sharedWith: [], usedInIvr: false },
  { id: 'vr6', name: 'Promo Announcement',   durationSec: 19, createdAt: '21/04/2025 | 04:30 pm', createdBy: { name: 'Ahmad Ali',   email: 'a.ali@aramco.sa' },   source: 'record', sharedWith: ['Leen Khaled'], usedInIvr: false },
];

// ===== Records shared WITH the current user (Shared records tab) — read only =====
const seedSharedRecords = [
  { id: 'sr1', name: 'Ramadan Greeting',   durationSec: 12, createdAt: '05/03/2025 | 08:10 am', createdBy: { name: 'Sara Ahmad',  email: 's.ahmad@aramco.sa' },  sharedWith: ['You', 'Omar Hassan'] },
  { id: 'sr2', name: 'IVR Main Menu',      durationSec: 21, createdAt: '14/03/2025 | 12:25 pm', createdBy: { name: 'Omar Hassan', email: 'o.hassan@aramco.sa' }, sharedWith: ['You', 'Lian Ali', 'Mohammad Saad'] },
  { id: 'sr3', name: 'Voicemail Prompt',   durationSec: 8,  createdAt: '27/03/2025 | 05:02 pm', createdBy: { name: 'Lian Ali',    email: 'l.ali@aramco.sa' },    sharedWith: ['You'] },
];

// Predefined TTS voices (the list shown when source = Text-to-Speech).
// Each voice shows its accent alongside the language and gender:
// Language (Accent) — Gender
const seedTtsVoices = [
  { id: 'tv1', name: 'Layla',  desc: 'Arabic (Saudi) — Female' },
  { id: 'tv2', name: 'Ahmad',  desc: 'Arabic (Saudi) — Male' },
  { id: 'tv3', name: 'Salma',  desc: 'Arabic (Gulf) — Female' },
  { id: 'tv6', name: 'Khalid', desc: 'Arabic (Gulf) — Male' },
  { id: 'tv7', name: 'Mariam', desc: 'Arabic (Egyptian) — Female' },
  { id: 'tv8', name: 'Omar',   desc: 'Arabic (Levantine) — Male' },
  { id: 'tv4', name: 'Sarah',  desc: 'English (American) — Female' },
  { id: 'tv5', name: 'James',  desc: 'English (British) — Male' },
];

window.seedVoiceAccounts = seedVoiceAccounts;
window.seedT2Numbers = seedT2Numbers;
window.seedVoiceRecords = seedVoiceRecords;
window.seedSharedRecords = seedSharedRecords;
window.seedTtsVoices = seedTtsVoices;
