text: const {handleServerStart, handleSecureServerStart} = require('lib')
  const app = require('./gateway.js')
  
  module.exports = {
  	start: () => {
  		const successCallback = () => {
  			console.log(`🗺️ Gateway On ▶ PORT ${process.env.gateway_PORT}`)
  		}
  		const failureCallback = (err) => {
  			if(err != undefined){
  				console.log(err)
  			}
  			console.log("🗺️ Gateway Off ❌")
  		}
  		const successCallbackSecure = () => {
  			console.log(`🗺️🔒 Secure Gateway On ▶ PORT ${process.env.gateway_PORT_SECURE}`)
  		}
  		const failureCallbackSecure = () => {
  			console.log("🗺️🔒 Secure Gateway Off ❌")
  		}
  		if(process.env.gateway_ON == "true"){
  			handleServerStart(app, process.env.gateway_PORT, successCallback, failureCallback)
  			handleSecureServerStart(app, process.env.gateway_PORT_SECURE, successCallbackSecure, failureCallbackSecure)
  		}
  		else{
  			failureCallback()
  			failureCallbackSecure()
  		}
  	},
  
  	app
  }