import { post } from './api.service' ; export async function initializeSession ( appId , userId , userInfo ) { return await post ( `/widgets/session/initialize` , { applicationIdentifier : appId , $user_id : userId , $first_name : userInfo . firstName , $last_name : userInfo . lastName , $email : userInfo . email , $phone : userInfo . phone , } ) ; }