import * as fs from "fs" ; import * as path from "path" ; import { ConsentViewTemplate } from "./consent_view_template" ; export class DefaultConsentViewTemplate implements ConsentViewTemplate { public provide ( ) { return new Promise < string > ( ( resolve , reject ) => { fs . readFile ( path . join ( __dirname , "../../../views/consent.ejs" ) , "utf8" , ( err , data ) => { if ( err ) { console . error ( err ) ; reject ( err ) ; } else { resolve ( data ) ; } } ) ; } ) ; } }