function addSupportToDB(supportCode) {
    var supportCount = 0;
    try{
      supportCount = supportArr.length;
    } catch (err) {

    }
    console.log(supportCode);
    console.log(supportCount);
    firebase.database().ref("users/" + user.uid + "/support/" + supportCount).push();
    firebase.database().ref("users/" + user.uid + "/support/" + supportCount).set({
      supportCount: supportCount,
      supportString: supportCode
    });
  }
//This function adds the prior support code to the database for the support team's reference.
This function adds the prior support code to the database for the support team's reference.
This function adds the prior support code to the database for the support team ' s reference .
function addSupportToDB(supportCode) {
    var supportCount = 0;
    try{
      supportCount = supportArr.length;
    } catch (err) {
    }
    console.log(supportCode);
    console.log(supportCount);
    firebase.database().ref("users/" + user.uid + "/support/" + supportCount).push();
    firebase.database().ref("users/" + user.uid + "/support/" + supportCount).set({
      supportCount: supportCount,
      supportString: supportCode
    });
  }
function addSupportToDB ( supportCode ) { var supportCount = 0 ; try { supportCount = supportArr . length ; } catch ( err ) { } console . log ( supportCode ) ; console . log ( supportCount ) ; firebase . database ( ) . ref ( "users/" + user . uid + "/support/" + supportCount ) . push ( ) ; firebase . database ( ) . ref ( "users/" + user . uid + "/support/" + supportCount ) . set ( { supportCount : supportCount , supportString : supportCode } ) ; }
This function adds the prior support code to the database for the support team's reference.
This function adds the prior support code to the database for the support team ' s reference .