text: exports.id=0,exports.modules={"./src/server/server.js":function(e,r,t){"use strict";t.r(r);var n,o=t("./build/contracts/FlightSuretyApp.json"),s=t("./src/server/config.json"),c=t("web3"),u=t.n(c),i=t("express"),l=t.n(i);t("babel-polyfill");function p(e,r,t,n,o,s,a){try{var c=e[s](a),u=c.value}catch(e){return void t(e)}c.done?r(u):Promise.resolve(u).then(n,o)}function f(e){return function(){var r=this,t=arguments;return new Promise(function(n,o){var s=e.apply(r,t);function a(e){p(s,n,o,a,c,"next",e)}function c(e){p(s,n,o,a,c,"throw",e)}a(void 0)})}}var d=[],h=s.localhost,v=new u.a(new u.a.providers.WebsocketProvider(h.url.replace("http","ws")));v.eth.defaultAccount=v.eth.accounts[0];var g=new v.eth.Contract(o.abi,h.appAddress);function m(){return(m=f(regeneratorRuntime.mark(function e(r){var t,o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,v.eth.getAccounts();case 2:return n=e.sent,e.next=5,g.methods.REGISTRATION_FEE().call({from:n[0]});case 5:for(t=e.sent,o=0;o<r;o++)w(o);return console.log(t),e.abrupt("return",1);case 9:case"end":return e.stop()}},e)}))).apply(this,arguments)}function w(e){return x.apply(this,arguments)}function x(){return(x=f(regeneratorRuntime.mark(function e(r){var t;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g.methods.registerOracle().send({from:n[r+20],value:RegistrationFee,gas:999999});case 2:return e.sent,console.log("registeredOracle2 ",n[a]),e.next=6,g.methods.getMyIndexes().call({from:n[a]});case 6:t=e.sent,console.log("Oracle registered: ".concat(t[0],", ").concat(t[1],", ").concat(t[2])),d.push([n[a],t]);case 9:case"end":return e.stop()}},e)}))).apply(this,arguments)}console.log(n),function(e){m.apply(this,arguments)}(5),g.events.OracleRequest({fromBlock:0},function(e,r){e&&console.log(e)});var y=l()();y.get("/api",function(e,r){r.send({message:"An API for use with your Dapp!"})}),r.default=y}};