src/storage.js
function bbTeamToBotkitTeam (team) {
  return {
    id: team.slack_team_id,
    createdBy: team.slack_user_id,
    url: `https://${team.slack_team_domain}.slack.com/`,
    name: team.slack_team_name,
    bot: {
      name: team.slack_bot_user_name,
      token: team.slack_bot_access_token,
      user_id: team.slack_bot_user_id,
      createdBy: team.slack_user_id,
      app_token: team.slack_access_token
    }
  }
}
function bbTeamToBotkitTeam (team) {
  return {
    id: team.slack_team_id,
    createdBy: team.slack_user_id,
    url: `https://${team.slack_team_domain}.slack.com/`,
    name: team.slack_team_name,
    bot: {
      name: team.slack_bot_user_name,
      token: team.slack_bot_access_token,
      user_id: team.slack_bot_user_id,
      createdBy: team.slack_user_id,
      app_token: team.slack_access_token
    }
  }
}
function bbTeamToBotkitTeam ( team ) { return { id : team . slack_team_id , createdBy : team . slack_user_id , url : ` ${ team . slack_team_domain } ` , name : team . slack_team_name , bot : { name : team . slack_bot_user_name , token : team . slack_bot_access_token , user_id : team . slack_bot_user_id , createdBy : team . slack_user_id , app_token : team . slack_access_token } } }
transform beep boop team into what botkit expects
transform beep boop team into what botkit expects