import * as Request from 'request' ; import * as RequestPromise from 'request-promise' ; export class RequestService { constructor ( ) { } ExecuteScanResultQuery ( requestOptions ) { return new Promise < string > ( ( resolve , reject ) => { RequestPromise ( requestOptions ) . then ( ( res ) => { resolve ( res ) ; } ) . catch ( ( err ) => { reject ( err . message || err ) ; } ) ; } ) ; } }