async function getContactFlows()

in website-creator/js/connectflows.js [634:652]


async function getContactFlows(){
	var p = await setAWSConfig(dlgSourceAccessKey, dlgSourceSecretKey, dlgSourceRegion);
	
	var params = {InstanceId : dlgSourceInstance};
    connect.listContactFlows(params, function (err, res) {
        console.log("we are about to get flows");
        console.log(params);
		    if (err) {
		         console.log("Error response: ", err);
		         showResults(err);
		    } else {
				console.log(res);
				formatJSON(res, '#instancesFormatted');
				contactFlows = res.ContactFlowSummaryList;
				fillContactFlowTables(1);
				getContactFlows2();
		    }
    });
}