text: import Voicemail from '@apps/maha/models/voicemail'
  
  const createVoicemail = async(req, { call, code, url, duration }) => {
  
    const voicemail = await Voicemail.forge({
      team_id: req.team.get('id'),
      call_id: call.get('id'),
      code,
      duration,
      was_heard: false,
      was_handled: false,
      transcription_status: 'pending'
    }).save(null, {
      transacting: req.trx
    })
  
    return voicemail
  
  }
  
  export default createVoicemail
  