function renderVoucherView(data) {
  try {
    var template = $('#voucher_list').html();
    var templateScript = Handlebars.compile(template);
    var voucherData = JSON.parse(data);
    var html = templateScript(voucherData);
    $("#vouchers").html(html);
  } catch (e) {
    //Log and notify the agent/user
    console.error(e);
    showNotification("danger", "Unable to render voucher view");
    client.instance.close();
  }
}
/**
 * Renders the voucher list upon clicking the voucher icon in the conversation message editor area
 * @param {*} data 
 */
Renders the voucher list upon clicking the voucher icon in the conversation message editor area
@param {*} data
Renders the voucher list upon clicking the voucher icon in the conversation message editor area @param { * } data
function renderVoucherView(data) {
  try {
    var template = $('#voucher_list').html();
    var templateScript = Handlebars.compile(template);
    var voucherData = JSON.parse(data);
    var html = templateScript(voucherData);
    $("#vouchers").html(html);
  } catch (e) {
    console.error(e);
    showNotification("danger", "Unable to render voucher view");
    client.instance.close();
  }
}
function renderVoucherView ( data ) { try { var template = $ ( '#voucher_list' ) . html ( ) ; var templateScript = Handlebars . compile ( template ) ; var voucherData = JSON . parse ( data ) ; var html = templateScript ( voucherData ) ; $ ( "#vouchers" ) . html ( html ) ; } catch ( e ) { console . error ( e ) ; showNotification ( "danger" , "Unable to render voucher view" ) ; client . instance . close ( ) ; } }
Renders the voucher list upon clicking the voucher icon in the conversation message editor area
 @param {*} data
Renders the voucher list upon clicking the voucher icon in the conversation message editor area @param { * } data
//Log and notify the agent/user