Skip to content

Instantly share code, notes, and snippets.

@dziamid
Last active February 28, 2019 13:59
Show Gist options
  • Save dziamid/e7120cfda2a3ad0e2bf4e193322ada8a to your computer and use it in GitHub Desktop.
Save dziamid/e7120cfda2a3ad0e2bf4e193322ada8a to your computer and use it in GitHub Desktop.
#source
#source
incomingCallSaga
error -> sendErrorToLastResponse
createSessionForIncomingCall
done -> incomingCallSessionSaga
incomingCallSessionSaga
ivrSaga
isCallDroppedAction -> sendSMS
welcome
isCriticalFailAction -> callRestaurant
menu
choose booking -> bookingSaga
choose other inquiries -> callRestaurant
bookingSaga
done -> sendSMS
bookingGuests
done -> bookingDay
bookingDay
done -> bookingTime
bookingTime
done -> bookingPhone
bookingPhone
done -> bookingName
bookingName
done -> bookingConfirmation
bookingConfirmation
done -> bookingAvailability
bookingAvailability
done -> bookingReservation
bookingReservation
done -> sendSMS
callRestaurant
calling
whisperRestaurantCall -> inCallWithRestaurant
inCallWithRestaurant
sendSMS
done -> sendLogs
sendLogs
done -> cleanSession
sendErrorToLastResponse
done -> sendErrorToLastStatusResponse
sendErrorToLastStatusResponse
done -> cleanSession
cleanSession
function render(model){
let current_state_name = model.active_states[0].name;
return $("h1",
{style: {color: "darkBlue"}},
`The current state is: ${current_state_name}`);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment