|  |  | 
 |  |  |         } | 
 |  |  |         function confirmTrans(transId, isSuccess) { | 
 |  |  |              | 
 |  |  |             fetch(staticResources.updateUrl, { | 
 |  |  |                 method: 'POST', | 
 |  |  |                 body: JSON.stringify({ 'txId': transId, "isSuccess": isSuccess }), | 
 |  |  |                 headers: { | 
 |  |  |                     'Content-Type': 'application/json', | 
 |  |  |                     'pi-token': staticResources.token | 
 |  |  |                 } | 
 |  |  |             }).then((data) => { | 
 |  |  |                 return data.json(); | 
 |  |  |             }).then(data => { | 
 |  |  |             AWSService.post(staticResources.updateUrl, JSON.stringify({ | 
 |  |  |                 "txId":transId, | 
 |  |  |                 "sfRecordId":"", | 
 |  |  |                 "isSuccess":isSuccess | 
 |  |  |             }), function(result){ | 
 |  |  |                 console.log("confirmTrans-" + JSON.stringify(data)); | 
 |  |  |                 document.getElementById("file").files[0].name = ''; | 
 |  |  |                 enableButtonStatus(); | 
 |  |  |                 refreshFiles();             | 
 |  |  |                 return data.status; | 
 |  |  |             }) | 
 |  |  |                 refreshFiles();    | 
 |  |  |             }, staticResources.token); | 
 |  |  |              | 
 |  |  |         } | 
 |  |  |         function calculateFileSize(fileObject) { |