32 lines
588 B
JavaScript
32 lines
588 B
JavaScript
const request = require('request');
|
|
|
|
|
|
|
|
function MainApplicantDetails(losid) {
|
|
try {
|
|
const url = process.env.MAIN_APPLICANT_DETAIL_URL+"MainApplicantDetailsList?losid="+losid;
|
|
|
|
return new Promise((resolve, reject) => {
|
|
request({
|
|
url: url,
|
|
method: "GET"
|
|
|
|
}, function (error, response, body) {
|
|
resolve(body);
|
|
});
|
|
|
|
});
|
|
}
|
|
catch (error) {
|
|
console.log(error);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
module.exports = {
|
|
MainApplicantDetails: MainApplicantDetails
|
|
|
|
} |