How to use fs.readFile method in Cypress

Best JavaScript code snippet using cypress

Run Cypress automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

callbacks.js

Source: callbacks.js Github

copy
1const fs = require("fs");
2
3// All operations we did before are blocking
4// This means that next operation won't be started before previous is complete
5function doMath(a, b) {
6  console.log("1 Doing math for ", a, b);
7  return a + b;
8}
9
10console.log("0 Starting...");
11doMath(2, 2); // <-- synchronus code
12console.log("2 Did math!");
13console.log("3 Ending...");
14
15// One of strong side of JS, is that it works extremely well with special asynchronus operations
16// These operations does not block next commands execution until async command execution completed:
17function asyncDoMath(a, b) {
18  console.log("1.0 Starting doing math for", a, b);
19  // setTimeout means - run this function in 2 seconds, not immediately
20  setTimeout(function() {
21    console.log("1.1 Result is", a + b);
22  }, 2000);
23}
24
25console.log("0 Starting...");
26asyncDoMath(5, 5); // <-- async code, does not block next commands to be started
27console.log("2 Did math!");
28console.log("3 Ending...");
29
30// This extremely useful for long running Input/Output operations like reading files, sending HTTP requests...
31// Lets see 2 implementations for printing file content - sync and async
32function printFileSync(name) {
33  const fs = require("fs");
34  let content = fs.readFileSync(`./6/data/${name}`, { encoding: "UTF8" });
35  console.log(name, "is ready:");
36  console.log(content);
37}
38function printFileAsync(name) {
39  const fs = require("fs");
40  fs.readFile(`./6/data/${name}`, { encoding: "UTF8" }, function(err, content) {
41    console.log(name, "is ready:");
42    console.log(content);
43  });
44}
45
46// Sync:
47console.log("Reading file sync 1.json");
48printFileSync("1.json");
49console.log("Reading file sync 2.json");
50printFileSync("2.json");
51console.log("Done executing sync commands");
52
53// Async
54console.log("Reading file async 1.json");
55printFileAsync("1.json");
56console.log("Reading file async 2.json");
57printFileAsync("2.json");
58console.log("Done scheduling async commands");
59
60// You can think of Async code like 'schedule to execute this operation in background'
61
62// Lets see how fs.readFile looks like:
63fs.readFile(
64  // relative path to file
65  `./data/1.json`,
66  // reading options
67  undefined, 
68  // special function called callback:
69  function(err, myfilecontent) {
70    console.log(myfilecontent);
71  }
72);
73
74// Callback is a special function that will be executed once your async operation is complete
75// You can think of it like -
76// please call this function once file will be opened and content will be loaded
77// Notice! fs.readFile DOES NOT RETURN ANYTHING (undefined)
78let a = fs.readFile();
79a; // undefined
80
81// Result of your async function will be passed to callback function
82fs.readFile(
83  // relative path to file
84  `./6/data/notexisting.json`,
85  // reading options
86  { encoding: "UTF8" },
87  // special function called callback:
88  function(err, content) {
89    console.log("Here is our async function returned result!");
90    console.log(content);
91  }
92);
93
94// ERRORS handling:
95fs.readFile(
96  // relative path to file
97  `./data/notexisting.json`,
98  // reading options
99  { encoding: "UTF8" },
100  // special function called callback:
101  function(err, content) {
102    // It is convention - first parameter of callback function must be err
103    // if we have error
104    if (err) {
105      console.log("Oh no, we have error!");
106      console.log(err);
107      // you can re-throw if you want
108      throw err;
109    }
110    console.log(name, "is ready:");
111    console.log(content);
112  }
113);
114
115// Why we can't just do try/catch?
116try {
117  fs.readFile();
118} catch (err) {
119  // blabla
120}
121// Because async function is only SCHEDULED at this point, and not actually executed
122// Execution stack will be different when function will be actually executed,
123// so try/catch cannot handle that
124
125// Why callbacks are bad?
126
127// When you need to run commands in exact order
128// Example: Reading first file, using content of that file to read next files
129// DO NOT WORRY IF YOU DONT UNDERSTAND
130// This is called pyramid of DOOM
131const fs = require("fs");
132fs.readFile(
133  // path to first file
134  `./data/paths.json`,
135  // options
136  { encoding: "UTF8" },
137  // callback
138  function(err, filepaths) {
139    // converting string to json
140    let parsedFilepaths = JSON.parse(filepaths);
141    // showing what we got
142    console.log("Got file paths!", parsedFilepaths);
143    fs.readFile(parsedFilepaths.first, { encoding: "UTF8" }, function(
144      err,
145      contentFirst
146    ) {
147      console.log("Got first file", contentFirst);
148      fs.readFile(parsedFilepaths.second, { encoding: "UTF8" }, function(
149        err,
150        contentSecond
151      ) {
152        console.log("Got second file", contentSecond);
153        fs.readFile(parsedFilepaths.three, { encoding: "UTF8" }, function(
154          err,
155          contentThird
156        ) {
157          // OOOPS - undefined!
158          console.log("Got third file", contentThird);
159        });
160      });
161    });
162  }
163);
164
165// Problem #2 - Error handling
166// Who can say where the problem is?
167const fs = require("fs");
168fs.readFile(
169  // path to first file
170  `./6/data/paths.json`,
171  // options
172  { encoding: "UTF8" },
173  // callback
174  function(err, filepaths) {
175    // converting string to json
176    let parsedFilepaths = JSON.parse(filepaths);
177    // showing what we got
178    console.log("Got file paths!", parsedFilepaths);
179    fs.readFile(parsedFilepaths.first, { encoding: "UTF8" }, function(
180      err,
181      contentFirst
182    ) {
183      console.log("Got first file", contentFirst);
184      fs.readFile(parsedFilepaths.second, { encoding: "UTF8" }, function(
185        err,
186        contentSecond
187      ) {
188        console.log("Got second file", contentSecond);
189        fs.readFile(
190          `./${parsedFilepaths.three}`,
191          { encoding: "UTF8" },
192          function(err, contentThird) {
193            // OOOPS - undefined!
194            console.log("Got third file", contentThird);
195          }
196        );
197      });
198    });
199  }
200);
201
202// Problem is here
203// fs.readFile(`./${parsedFilepaths.three}`, - wrong string
204
205const fs = require("fs");
206fs.readFile(
207  // path to first file
208  `./6/data/paths.json`,
209  // options
210  { encoding: "UTF8" },
211  // callback
212  function(err, filepaths) {
213    if (err) {
214      throw err;
215    }
216    // converting string to json
217    let parsedFilepaths;
218    try {
219      parsedFilepaths = JSON.parse(filepaths);
220    } catch (err) {
221      throw err;
222    }
223    // showing what we got
224    console.log("Got file paths!", parsedFilepaths);
225    fs.readFile(parsedFilepaths.first, { encoding: "UTF8" }, function(
226      err,
227      contentFirst
228    ) {
229      if (err) {
230        throw err;
231      }
232      console.log("Got first file", contentFirst);
233      fs.readFile(parsedFilepaths.second, { encoding: "UTF8" }, function(
234        err,
235        contentSecond
236      ) {
237        if (err) {
238          throw err;
239        }
240        console.log("Got second file", contentSecond);
241        fs.readFile(
242          `./${parsedFilepaths.three}`,
243          { encoding: "UTF8" },
244          function(err, contentThird) {
245            if (err) {
246              throw err;
247            }
248            // OOOPS - undefined!
249            console.log("Got third file", contentThird);
250          }
251        );
252      });
253    });
254  }
255);
256// Horrible code became even more horrible!
257
Full Screen

main.js

Source: main.js Github

copy
1/* global __dirname */
2
3var express = require('express');
4var app = express();
5var fs = require("fs");
6
7// Add headers
8app.use(function (req, res, next) {
9
10    // Website you wish to allow to connect
11    res.setHeader('Access-Control-Allow-Origin', 'http://localhost:8383');
12
13    // Request methods you wish to allow
14    res.setHeader('Access-Control-Allow-Methods', 'GET, POST, OPTIONS, PUT, PATCH, DELETE');
15
16    // Request headers you wish to allow
17    res.setHeader('Access-Control-Allow-Headers', 'X-Requested-With,content-type');
18
19    // Set to true if you need the website to include cookies in the requests sent
20    // to the API (e.g. in case you use sessions)
21    res.setHeader('Access-Control-Allow-Credentials', true);
22
23    // Pass to next layer of middleware
24    next();
25});
26
27app.get('/PM10/2014', function (req, res , next) {
28   fs.readFile( __dirname + "/" + "data/PM10/pm102014.json", 'utf8', function (err, data) {
29       
30       res.end( data );
31   });
32});
33
34
35app.get('/PM10/2013', function (req, res , next) {
36   fs.readFile( __dirname + "/" + "data/PM10/pm102013.json", 'utf8', function (err, data) {
37       
38       res.end( data );
39   });
40});
41
42app.get('/PM10/2012', function (req, res , next) {
43   fs.readFile( __dirname + "/" + "data/PM10/pm102012.json", 'utf8', function (err, data) {
44       
45       res.end( data );
46   });
47});
48
49app.get('/PM10/2011', function (req, res , next) {
50   fs.readFile( __dirname + "/" + "data/PM10/pm102011.json", 'utf8', function (err, data) {
51       
52       res.end( data );
53   });
54});
55
56app.get('/PM10/2010', function (req, res , next) {
57   fs.readFile( __dirname + "/" + "data/PM10/pm102010.json", 'utf8', function (err, data) {
58       
59       res.end( data );
60   });
61});
62
63app.get('/PM10/2009', function (req, res , next) {
64   fs.readFile( __dirname + "/" + "data/PM10/pm102009.json", 'utf8', function (err, data) {
65       
66       res.end( data );
67   });
68});
69
70app.get('/PM10/2008', function (req, res , next) {
71   fs.readFile( __dirname + "/" + "data/PM10/pm102008.json", 'utf8', function (err, data) {
72       
73       res.end( data );
74   });
75});
76
77app.get('/PM10/2007', function (req, res , next) {
78   fs.readFile( __dirname + "/" + "data/PM10/pm102007.json", 'utf8', function (err, data) {
79       
80       res.end( data );
81   });
82});
83
84app.get('/PM10/2006', function (req, res , next) {
85   fs.readFile( __dirname + "/" + "data/PM10/pm102006.json", 'utf8', function (err, data) {
86       
87       res.end( data );
88   });
89});
90
91app.get('/PM10/2005', function (req, res , next) {
92   fs.readFile( __dirname + "/" + "data/PM10/pm102005.json", 'utf8', function (err, data) {
93       
94       res.end( data );
95   });
96});
97
98app.get('/PM10/2004', function (req, res , next) {
99   fs.readFile( __dirname + "/" + "data/PM10/pm102004.json", 'utf8', function (err, data) {
100       
101       res.end( data );
102   });
103});
104
105app.get('/PM10/2003', function (req, res , next) {
106   fs.readFile( __dirname + "/" + "data/PM10/pm102003.json", 'utf8', function (err, data) {
107       
108       res.end( data );
109   });
110});
111
112app.get('/PM10/2002', function (req, res , next) {
113   fs.readFile( __dirname + "/" + "data/PM10/pm102002.json", 'utf8', function (err, data) {
114       
115       res.end( data );
116   });
117});
118
119app.get('/PM10/2001', function (req, res , next) {
120   fs.readFile( __dirname + "/" + "data/PM10/pm102001.json", 'utf8', function (err, data) {
121       
122       res.end( data );
123   });
124});
125
126app.get('/PM10/2000', function (req, res , next) {
127   fs.readFile( __dirname + "/" + "data/PM10/pm102000.json", 'utf8', function (err, data) {
128       
129       res.end( data );
130   });
131});
132
133app.get('/PM10/1999', function (req, res , next) {
134   fs.readFile( __dirname + "/" + "data/PM10/pm101999.json", 'utf8', function (err, data) {
135       
136       res.end( data );
137   });
138});
139
140app.get('/PM2_5/2014', function (req, res , next) {
141   fs.readFile( __dirname + "/" + "data/PM25/pm252014.json", 'utf8', function (err, data) {
142       
143       res.end( data );
144   });
145});
146
147
148app.get('/PM2_5/2013', function (req, res , next) {
149   fs.readFile( __dirname + "/" + "data/PM25/pm252013.json", 'utf8', function (err, data) {
150       
151       res.end( data );
152   });
153});
154
155app.get('/PM2_5/2012', function (req, res , next) {
156   fs.readFile( __dirname + "/" + "data/PM25/pm252012.json", 'utf8', function (err, data) {
157       
158       res.end( data );
159   });
160});
161
162app.get('/PM2_5/2011', function (req, res , next) {
163   fs.readFile( __dirname + "/" + "data/PM25/pm252011.json", 'utf8', function (err, data) {
164       
165       res.end( data );
166   });
167});
168
169app.get('/PM2_5/2010', function (req, res , next) {
170   fs.readFile( __dirname + "/" + "data/PM25/pm252010.json", 'utf8', function (err, data) {
171       
172       res.end( data );
173   });
174});
175
176app.get('/PM2_5/2009', function (req, res , next) {
177   fs.readFile( __dirname + "/" + "data/PM25/pm252009.json", 'utf8', function (err, data) {
178       
179       res.end( data );
180   });
181});
182
183app.get('/PM2_5/2008', function (req, res , next) {
184   fs.readFile( __dirname + "/" + "data/PM25/pm252008.json", 'utf8', function (err, data) {
185       
186       res.end( data );
187   });
188});
189
190app.get('/PM2_5/2007', function (req, res , next) {
191   fs.readFile( __dirname + "/" + "data/PM25/pm252007.json", 'utf8', function (err, data) {
192       
193       res.end( data );
194   });
195});
196
197app.get('/PM2_5/2006', function (req, res , next) {
198   fs.readFile( __dirname + "/" + "data/PM25/pm252006.json", 'utf8', function (err, data) {
199       
200       res.end( data );
201   });
202});
203
204app.get('/PM2_5/2005', function (req, res , next) {
205   fs.readFile( __dirname + "/" + "data/PM25/pm252005.json", 'utf8', function (err, data) {
206       
207       res.end( data );
208   });
209});
210
211app.get('/PM2_5/2004', function (req, res , next) {
212   fs.readFile( __dirname + "/" + "data/PM25/pm252004.json", 'utf8', function (err, data) {
213       
214       res.end( data );
215   });
216});
217
218app.get('/PM2_5/2003', function (req, res , next) {
219   fs.readFile( __dirname + "/" + "data/PM25/pm252003.json", 'utf8', function (err, data) {
220       
221       res.end( data );
222   });
223});
224
225app.get('/PM2_5/2002', function (req, res , next) {
226   fs.readFile( __dirname + "/" + "data/PM25/pm252002.json", 'utf8', function (err, data) {
227       
228       res.end( data );
229   });
230});
231
232app.get('/PM2_5/2001', function (req, res , next) {
233   fs.readFile( __dirname + "/" + "data/PM25/pm252001.json", 'utf8', function (err, data) {
234       
235       res.end( data );
236   });
237});
238
239app.get('/PM2_5/2000', function (req, res , next) {
240   fs.readFile( __dirname + "/" + "data/PM25/pm252000.json", 'utf8', function (err, data) {
241       
242       res.end( data );
243   });
244});
245
246app.get('/PM25/1999', function (req, res , next) {
247   fs.readFile( __dirname + "/" + "data/PM25/pm251999.json", 'utf8', function (err, data) {
248       
249       res.end( data );
250   });
251});
252
253app.get('/NH3/2014', function (req, res , next) {
254   fs.readFile( __dirname + "/" + "data/NH3/NH32014.json", 'utf8', function (err, data) {
255       
256       res.end( data );
257   });
258});
259
260
261app.get('/NH3/2013', function (req, res , next) {
262   fs.readFile( __dirname + "/" + "data/NH3/NH32013.json", 'utf8', function (err, data) {
263       
264       res.end( data );
265   });
266});
267
268app.get('/NH3/2012', function (req, res , next) {
269   fs.readFile( __dirname + "/" + "data/NH3/NH32012.json", 'utf8', function (err, data) {
270       
271       res.end( data );
272   });
273});
274
275app.get('/NH3/2011', function (req, res , next) {
276   fs.readFile( __dirname + "/" + "data/PNH3/NH32011.json", 'utf8', function (err, data) {
277       
278       res.end( data );
279   });
280});
281
282app.get('/NH3/2010', function (req, res , next) {
283   fs.readFile( __dirname + "/" + "data/NH3/NH32010.json", 'utf8', function (err, data) {
284       
285       res.end( data );
286   });
287});
288
289app.get('/NH3/2009', function (req, res , next) {
290   fs.readFile( __dirname + "/" + "data/NH3/NH32009.json", 'utf8', function (err, data) {
291       
292       res.end( data );
293   });
294});
295
296app.get('/NH3/2008', function (req, res , next) {
297   fs.readFile( __dirname + "/" + "data/NH3/NH32008.json", 'utf8', function (err, data) {
298       
299       res.end( data );
300   });
301});
302
303app.get('/NH3/2007', function (req, res , next) {
304   fs.readFile( __dirname + "/" + "data/NH3/NH32007.json", 'utf8', function (err, data) {
305       
306       res.end( data );
307   });
308});
309
310app.get('/NH3/2006', function (req, res , next) {
311   fs.readFile( __dirname + "/" + "data/NH3/NH32006.json", 'utf8', function (err, data) {
312       
313       res.end( data );
314   });
315});
316
317app.get('/NH3/2005', function (req, res , next) {
318   fs.readFile( __dirname + "/" + "data/NH3/NH32005.json", 'utf8', function (err, data) {
319       
320       res.end( data );
321   });
322});
323
324app.get('/NH3/2004', function (req, res , next) {
325   fs.readFile( __dirname + "/" + "data/NH3/NH32004.json", 'utf8', function (err, data) {
326       
327       res.end( data );
328   });
329});
330
331app.get('/NH3/2003', function (req, res , next) {
332   fs.readFile( __dirname + "/" + "data/NH3/NH32003.json", 'utf8', function (err, data) {
333       
334       res.end( data );
335   });
336});
337
338app.get('/NH3/2002', function (req, res , next) {
339   fs.readFile( __dirname + "/" + "data/NH3/NH32002.json", 'utf8', function (err, data) {
340       
341       res.end( data );
342   });
343});
344
345app.get('/NH3/2001', function (req, res , next) {
346   fs.readFile( __dirname + "/" + "data/NH3/NH32001.json", 'utf8', function (err, data) {
347       
348       res.end( data );
349   });
350});
351
352app.get('/NH3/2000', function (req, res , next) {
353   fs.readFile( __dirname + "/" + "data/NH3/NH32000.json", 'utf8', function (err, data) {
354       
355       res.end( data );
356   });
357});
358
359app.get('/NH3/1999', function (req, res , next) {
360   fs.readFile( __dirname + "/" + "data/NH3/NH31999.json", 'utf8', function (err, data) {
361       
362       res.end( data );
363   });
364});
365
366app.get('/NMVOC/2014', function (req, res , next) {
367   fs.readFile( __dirname + "/" + "data/NMVOC/NMVOC2014.json", 'utf8', function (err, data) {
368       
369       res.end( data );
370   });
371});
372
373
374app.get('/NMVOC/2013', function (req, res , next) {
375   fs.readFile( __dirname + "/" + "data/NMVOC/NMVOC2013.json", 'utf8', function (err, data) {
376       
377       res.end( data );
378   });
379});
380
381app.get('/NMVOC/2012', function (req, res , next) {
382   fs.readFile( __dirname + "/" + "data/NMVOC/NMVOC2012.json", 'utf8', function (err, data) {
383       
384       res.end( data );
385   });
386});
387
388app.get('/NMVOC/2011', function (req, res , next) {
389   fs.readFile( __dirname + "/" + "data/NMVOC/NMVOC2011.json", 'utf8', function (err, data) {
390       
391       res.end( data );
392   });
393});
394
395app.get('/NMVOC/2010', function (req, res , next) {
396   fs.readFile( __dirname + "/" + "data/NMVOC/NMVOC2010.json", 'utf8', function (err, data) {
397       
398       res.end( data );
399   });
400});
401
402app.get('/NMVOC/2009', function (req, res , next) {
403   fs.readFile( __dirname + "/" + "data/NMVOC/NMVOC2009.json", 'utf8', function (err, data) {
404       
405       res.end( data );
406   });
407});
408
409app.get('/NMVOC/2008', function (req, res , next) {
410   fs.readFile( __dirname + "/" + "data/NMVOC/NMVOC2008.json", 'utf8', function (err, data) {
411       
412       res.end( data );
413   });
414});
415
416app.get('/NMVOC/2007', function (req, res , next) {
417   fs.readFile( __dirname + "/" + "data/NMVOC/NMVOC2007.json", 'utf8', function (err, data) {
418       
419       res.end( data );
420   });
421});
422
423app.get('/NMVOC/2006', function (req, res , next) {
424   fs.readFile( __dirname + "/" + "data/NMVOC/NMVOC2006.json", 'utf8', function (err, data) {
425       
426       res.end( data );
427   });
428});
429
430app.get('/NMVOC/2005', function (req, res , next) {
431   fs.readFile( __dirname + "/" + "data/NMVOC/NMVOC2005.json", 'utf8', function (err, data) {
432       
433       res.end( data );
434   });
435});
436
437app.get('/NMVOC/2004', function (req, res , next) {
438   fs.readFile( __dirname + "/" + "data/NMVOC/NMVOC2004.json", 'utf8', function (err, data) {
439       
440       res.end( data );
441   });
442});
443
444app.get('/NMVOC/2003', function (req, res , next) {
445   fs.readFile( __dirname + "/" + "data/NMVOC/NMVOC2003.json", 'utf8', function (err, data) {
446       
447       res.end( data );
448   });
449});
450
451app.get('/NMVOC/2002', function (req, res , next) {
452   fs.readFile( __dirname + "/" + "data/NMVOC/NMVOC2002.json", 'utf8', function (err, data) {
453       
454       res.end( data );
455   });
456});
457
458app.get('/NMVOC/2001', function (req, res , next) {
459   fs.readFile( __dirname + "/" + "data/NMVOC/NMVOC2001.json", 'utf8', function (err, data) {
460       
461       res.end( data );
462   });
463});
464
465app.get('/NMVOC/2000', function (req, res , next) {
466   fs.readFile( __dirname + "/" + "data/NMVOC/NMVOC2000.json", 'utf8', function (err, data) {
467       
468       res.end( data );
469   });
470});
471
472app.get('/NMVOC/1999', function (req, res , next) {
473   fs.readFile( __dirname + "/" + "data/NMVOC/NMVOC1999.json", 'utf8', function (err, data) {
474       
475       res.end( data );
476   });
477});
478
479app.get('/NOX/2014', function (req, res , next) {
480   fs.readFile( __dirname + "/" + "data/NOX/NOX2014.json", 'utf8', function (err, data) {
481       
482       res.end( data );
483   });
484});
485
486
487app.get('/NOX/2013', function (req, res , next) {
488   fs.readFile( __dirname + "/" + "data/NOX/NOX2013.json", 'utf8', function (err, data) {
489       
490       res.end( data );
491   });
492});
493
494app.get('/NOX/2012', function (req, res , next) {
495   fs.readFile( __dirname + "/" + "data/NOX/NOX2012.json", 'utf8', function (err, data) {
496       
497       res.end( data );
498   });
499});
500
501app.get('/NOX/2011', function (req, res , next) {
502   fs.readFile( __dirname + "/" + "data/NOX/NOX2011.json", 'utf8', function (err, data) {
503       
504       res.end( data );
505   });
506});
507
508app.get('/NOX/2010', function (req, res , next) {
509   fs.readFile( __dirname + "/" + "data/NOX/NOX2010.json", 'utf8', function (err, data) {
510       
511       res.end( data );
512   });
513});
514
515app.get('/NOX/2009', function (req, res , next) {
516   fs.readFile( __dirname + "/" + "data/NOX/NOX2009.json", 'utf8', function (err, data) {
517       
518       res.end( data );
519   });
520});
521
522app.get('/NOX/2008', function (req, res , next) {
523   fs.readFile( __dirname + "/" + "data/NOX/NOX2008.json", 'utf8', function (err, data) {
524       
525       res.end( data );
526   });
527});
528
529app.get('/NOX/2007', function (req, res , next) {
530   fs.readFile( __dirname + "/" + "data/NOX/NOX2007.json", 'utf8', function (err, data) {
531       
532       res.end( data );
533   });
534});
535
536app.get('/NOX/2006', function (req, res , next) {
537   fs.readFile( __dirname + "/" + "data/NOX/NOX2006.json", 'utf8', function (err, data) {
538       
539       res.end( data );
540   });
541});
542
543app.get('/NOX/2005', function (req, res , next) {
544   fs.readFile( __dirname + "/" + "data/NOX/NOX2005.json", 'utf8', function (err, data) {
545       
546       res.end( data );
547   });
548});
549
550app.get('/NOX/2004', function (req, res , next) {
551   fs.readFile( __dirname + "/" + "data/NOX/NOX2004.json", 'utf8', function (err, data) {
552       
553       res.end( data );
554   });
555});
556
557app.get('/NOX/2003', function (req, res , next) {
558   fs.readFile( __dirname + "/" + "data/NOX/NOX2003.json", 'utf8', function (err, data) {
559       
560       res.end( data );
561   });
562});
563
564app.get('/NOX/2002', function (req, res , next) {
565   fs.readFile( __dirname + "/" + "data/NOX/NOX2002.json", 'utf8', function (err, data) {
566       
567       res.end( data );
568   });
569});
570
571app.get('/NOX/2001', function (req, res , next) {
572   fs.readFile( __dirname + "/" + "data/NOX/NOX2001.json", 'utf8', function (err, data) {
573       
574       res.end( data );
575   });
576});
577
578app.get('/NOX/2000', function (req, res , next) {
579   fs.readFile( __dirname + "/" + "data/NOX/NOX2000.json", 'utf8', function (err, data) {
580       
581       res.end( data );
582   });
583});
584
585app.get('/NOX/1999', function (req, res , next) {
586   fs.readFile( __dirname + "/" + "data/NOX/NOX1999.json", 'utf8', function (err, data) {
587       
588       res.end( data );
589   });
590});
591
592app.get('/SOX/2014', function (req, res , next) {
593   fs.readFile( __dirname + "/" + "data/SOX/SOX2014.json", 'utf8', function (err, data) {
594       
595       res.end( data );
596   });
597});
598
599
600app.get('/SOX/2013', function (req, res , next) {
601   fs.readFile( __dirname + "/" + "data/SOX/SOX2013.json", 'utf8', function (err, data) {
602       
603       res.end( data );
604   });
605});
606
607app.get('/SOX/2012', function (req, res , next) {
608   fs.readFile( __dirname + "/" + "data/SOX/SOX2012.json", 'utf8', function (err, data) {
609       
610       res.end( data );
611   });
612});
613
614app.get('/SOX/2011', function (req, res , next) {
615   fs.readFile( __dirname + "/" + "data/SOX/SOX2011.json", 'utf8', function (err, data) {
616       
617       res.end( data );
618   });
619});
620
621app.get('/SOX/2010', function (req, res , next) {
622   fs.readFile( __dirname + "/" + "data/SOX/SOX2010.json", 'utf8', function (err, data) {
623       
624       res.end( data );
625   });
626});
627
628app.get('/SOX/2009', function (req, res , next) {
629   fs.readFile( __dirname + "/" + "data/SOX/SOX2009.json", 'utf8', function (err, data) {
630       
631       res.end( data );
632   });
633});
634
635app.get('/SOX/2008', function (req, res , next) {
636   fs.readFile( __dirname + "/" + "data/SOX/SOX2008.json", 'utf8', function (err, data) {
637       
638       res.end( data );
639   });
640});
641
642app.get('/SOX/2007', function (req, res , next) {
643   fs.readFile( __dirname + "/" + "data/SOX/SOX2007.json", 'utf8', function (err, data) {
644       
645       res.end( data );
646   });
647});
648
649app.get('/SOX/2006', function (req, res , next) {
650   fs.readFile( __dirname + "/" + "data/SOX/SOX2006.json", 'utf8', function (err, data) {
651       
652       res.end( data );
653   });
654});
655
656app.get('/SOX/2005', function (req, res , next) {
657   fs.readFile( __dirname + "/" + "data/SOX/SOX2005.json", 'utf8', function (err, data) {
658       
659       res.end( data );
660   });
661});
662
663app.get('/SOX/2004', function (req, res , next) {
664   fs.readFile( __dirname + "/" + "data/SOX/SOX2004.json", 'utf8', function (err, data) {
665       
666       res.end( data );
667   });
668});
669
670app.get('/SOX/2003', function (req, res , next) {
671   fs.readFile( __dirname + "/" + "data/SOX/SOX2003.json", 'utf8', function (err, data) {
672       
673       res.end( data );
674   });
675});
676
677app.get('/SOX/2002', function (req, res , next) {
678   fs.readFile( __dirname + "/" + "data/SOX/SOX2002.json", 'utf8', function (err, data) {
679       
680       res.end( data );
681   });
682});
683
684app.get('/SOX/2001', function (req, res , next) {
685   fs.readFile( __dirname + "/" + "data/SOX/SOX2001.json", 'utf8', function (err, data) {
686       
687       res.end( data );
688   });
689});
690
691app.get('/SOX/2000', function (req, res , next) {
692   fs.readFile( __dirname + "/" + "data/SOX/SOX2000.json", 'utf8', function (err, data) {
693       
694       res.end( data );
695   });
696});
697
698app.get('/SOX/1999', function (req, res , next) {
699   fs.readFile( __dirname + "/" + "data/SOX/SOX1999.json", 'utf8', function (err, data) {
700       
701       res.end( data );
702   });
703});
704
705
706app.get('/country/UK', function (req, res , next) {
707   fs.readFile( __dirname + "/" + "data/Countries/UK.json", 'utf8', function (err, data) {
708       
709       res.end( data );
710   });
711});
712
713
714app.get('/country/AT', function (req, res , next) {
715   fs.readFile( __dirname + "/" + "data/Countries/AT.json", 'utf8', function (err, data) {
716       
717       res.end( data );
718   });
719});
720
721app.get('/country/BE', function (req, res , next) {
722   fs.readFile( __dirname + "/" + "data/Countries/BE.json", 'utf8', function (err, data) {
723       
724       res.end( data );
725   });
726});app.get('/country/BG', function (req, res , next) {
727   fs.readFile( __dirname + "/" + "data/Countries/BG.json", 'utf8', function (err, data) {
728       
729       res.end( data );
730   });
731});app.get('/country/CH', function (req, res , next) {
732   fs.readFile( __dirname + "/" + "data/Countries/CH.json", 'utf8', function (err, data) {
733       
734       res.end( data );
735   });
736});app.get('/country/CY', function (req, res , next) {
737   fs.readFile( __dirname + "/" + "data/Countries/CY.json", 'utf8', function (err, data) {
738       
739       res.end( data );
740   });
741});app.get('/country/CZ', function (req, res , next) {
742   fs.readFile( __dirname + "/" + "data/Countries/CZ.json", 'utf8', function (err, data) {
743       
744       res.end( data );
745   });
746});app.get('/country/DE', function (req, res , next) {
747   fs.readFile( __dirname + "/" + "data/Countries/DE.json", 'utf8', function (err, data) {
748       
749       res.end( data );
750   });
751});app.get('/country/DK', function (req, res , next) {
752   fs.readFile( __dirname + "/" + "data/Countries/DK.json", 'utf8', function (err, data) {
753       
754       res.end( data );
755   });
756});app.get('/country/EE', function (req, res , next) {
757   fs.readFile( __dirname + "/" + "data/Countries/EE.json", 'utf8', function (err, data) {
758       
759       res.end( data );
760   });
761});app.get('/country/ES', function (req, res , next) {
762   fs.readFile( __dirname + "/" + "data/Countries/ES.json", 'utf8', function (err, data) {
763       
764       res.end( data );
765   });
766});app.get('/country/FI', function (req, res , next) {
767   fs.readFile( __dirname + "/" + "data/Countries/FI.json", 'utf8', function (err, data) {
768       
769       res.end( data );
770   });
771});app.get('/country/FR', function (req, res , next) {
772   fs.readFile( __dirname + "/" + "data/Countries/FR.json", 'utf8', function (err, data) {
773       
774       res.end( data );
775   });
776});app.get('/country/HR', function (req, res , next) {
777   fs.readFile( __dirname + "/" + "data/Countries/HR.json", 'utf8', function (err, data) {
778       
779       res.end( data );
780   });
781});app.get('/country/HU', function (req, res , next) {
782   fs.readFile( __dirname + "/" + "data/Countries/HU.json", 'utf8', function (err, data) {
783       
784       res.end( data );
785   });
786});app.get('/country/IE', function (req, res , next) {
787   fs.readFile( __dirname + "/" + "data/Countries/IE.json", 'utf8', function (err, data) {
788       
789       res.end( data );
790   });
791});app.get('/country/IT', function (req, res , next) {
792   fs.readFile( __dirname + "/" + "data/Countries/IT.json", 'utf8', function (err, data) {
793       
794       res.end( data );
795   });
796});app.get('/country/LI', function (req, res , next) {
797   fs.readFile( __dirname + "/" + "data/Countries/LI.json", 'utf8', function (err, data) {
798       
799       res.end( data );
800   });
801});app.get('/country/LT', function (req, res , next) {
802   fs.readFile( __dirname + "/" + "data/Countries/LT.json", 'utf8', function (err, data) {
803       
804       res.end( data );
805   });
806});app.get('/country/LU', function (req, res , next) {
807   fs.readFile( __dirname + "/" + "data/Countries/LU.json", 'utf8', function (err, data) {
808       
809       res.end( data );
810   });
811});app.get('/country/LV', function (req, res , next) {
812   fs.readFile( __dirname + "/" + "data/Countries/LV.json", 'utf8', function (err, data) {
813       
814       res.end( data );
815   });
816});app.get('/country/NL', function (req, res , next) {
817   fs.readFile( __dirname + "/" + "data/Countries/NL.json", 'utf8', function (err, data) {
818       
819       res.end( data );
820   });
821});app.get('/country/NO', function (req, res , next) {
822   fs.readFile( __dirname + "/" + "data/Countries/NO.json", 'utf8', function (err, data) {
823       
824       res.end( data );
825   });
826});app.get('/country/PL', function (req, res , next) {
827   fs.readFile( __dirname + "/" + "data/Countries/PL.json", 'utf8', function (err, data) {
828       
829       res.end( data );
830   });
831});app.get('/country/PT', function (req, res , next) {
832   fs.readFile( __dirname + "/" + "data/Countries/PT.json", 'utf8', function (err, data) {
833       
834       res.end( data );
835   });
836});app.get('/country/RO', function (req, res , next) {
837   fs.readFile( __dirname + "/" + "data/Countries/RO.json", 'utf8', function (err, data) {
838       
839       res.end( data );
840   });
841});app.get('/country/SE', function (req, res , next) {
842   fs.readFile( __dirname + "/" + "data/Countries/SE.json", 'utf8', function (err, data) {
843       
844       res.end( data );
845   });
846});app.get('/country/SI', function (req, res , next) {
847   fs.readFile( __dirname + "/" + "data/Countries/SI.json", 'utf8', function (err, data) {
848       
849       res.end( data );
850   });
851});app.get('/country/SK', function (req, res , next) {
852   fs.readFile( __dirname + "/" + "data/Countries/SK.json", 'utf8', function (err, data) {
853       
854       res.end( data );
855   });
856
857
858});app.get('/raw/PM10', function (req, res , next) {
859   fs.readFile( __dirname + "/" + "data/rawdata/PM10.json", 'utf8', function (err, data) {
860       
861       res.end( data );
862   });
863
864});app.get('/raw/PM2_5', function (req, res , next) {
865   fs.readFile( __dirname + "/" + "data/rawdata/PM2_5.json", 'utf8', function (err, data) {
866       
867       res.end( data );
868   });
869});app.get('/raw/NH3', function (req, res , next) {
870   fs.readFile( __dirname + "/" + "data/rawdata/NH3.json", 'utf8', function (err, data) {
871       
872       res.end( data );
873   });
874});app.get('/raw/NMVOC', function (req, res , next) {
875   fs.readFile( __dirname + "/" + "data/rawdata/NMVOC.json", 'utf8', function (err, data) {
876       
877       res.end( data );
878   });
879});app.get('/raw/NOX', function (req, res , next) {
880   fs.readFile( __dirname + "/" + "data/rawdata/NOX.json", 'utf8', function (err, data) {
881       
882       res.end( data );
883   });
884});app.get('/raw/SOX', function (req, res , next) {
885   fs.readFile( __dirname + "/" + "data/rawdata/SOX.json", 'utf8', function (err, data) {
886       
887       res.end( data );
888   });
889});
890
891app.get('/rawdata/UK', function (req, res , next) {
892   fs.readFile( __dirname + "/" + "data/rawdata/Countries/UK.json", 'utf8', function (err, data) {
893       
894       res.end( data );
895   });
896});
897
898
899app.get('/rawdata/AT', function (req, res , next) {
900   fs.readFile( __dirname + "/" + "data/rawdata/Countries/AT.json", 'utf8', function (err, data) {
901       
902       res.end( data );
903   });
904});
905
906app.get('/rawdata/BE', function (req, res , next) {
907   fs.readFile( __dirname + "/" + "data/rawdata/Countries/BE.json", 'utf8', function (err, data) {
908       
909       res.end( data );
910   });
911});app.get('/rawdata/BG', function (req, res , next) {
912   fs.readFile( __dirname + "/" + "data/rawdata/Countries/BG.json", 'utf8', function (err, data) {
913       
914       res.end( data );
915   });
916});app.get('/rawdata/CH', function (req, res , next) {
917   fs.readFile( __dirname + "/" + "data/rawdata/Countries/CH.json", 'utf8', function (err, data) {
918       
919       res.end( data );
920   });
921});app.get('/rawdata/CY', function (req, res , next) {
922   fs.readFile( __dirname + "/" + "data/rawdata/Countries/CY.json", 'utf8', function (err, data) {
923       
924       res.end( data );
925   });
926});app.get('/rawdata/CZ', function (req, res , next) {
927   fs.readFile( __dirname + "/" + "data/rawdata/Countries/CZ.json", 'utf8', function (err, data) {
928       
929       res.end( data );
930   });
931});app.get('/rawdata/DE', function (req, res , next) {
932   fs.readFile( __dirname + "/" + "data/rawdata/Countries/DE.json", 'utf8', function (err, data) {
933       
934       res.end( data );
935   });
936});app.get('/rawdata/DK', function (req, res , next) {
937   fs.readFile( __dirname + "/" + "data/rawdata/Countries/DK.json", 'utf8', function (err, data) {
938       
939       res.end( data );
940   });
941});app.get('/rawdata/EE', function (req, res , next) {
942   fs.readFile( __dirname + "/" + "data/rawdata/Countries/EE.json", 'utf8', function (err, data) {
943       
944       res.end( data );
945   });
946});app.get('/rawdata/ES', function (req, res , next) {
947   fs.readFile( __dirname + "/" + "data/rawdata/Countries/ES.json", 'utf8', function (err, data) {
948       
949       res.end( data );
950   });
951});app.get('/rawdata/FI', function (req, res , next) {
952   fs.readFile( __dirname + "/" + "data/rawdata/Countries/FI.json", 'utf8', function (err, data) {
953       
954       res.end( data );
955   });
956});app.get('/rawdata/FR', function (req, res , next) {
957   fs.readFile( __dirname + "/" + "data/rawdata/Countries/FR.json", 'utf8', function (err, data) {
958       
959       res.end( data );
960   });
961});app.get('/rawdata/HR', function (req, res , next) {
962   fs.readFile( __dirname + "/" + "data/rawdata/Countries/HR.json", 'utf8', function (err, data) {
963       
964       res.end( data );
965   });
966});app.get('/rawdata/HU', function (req, res , next) {
967   fs.readFile( __dirname + "/" + "data/rawdata/Countries/HU.json", 'utf8', function (err, data) {
968       
969       res.end( data );
970   });
971});app.get('/rawdata/IE', function (req, res , next) {
972   fs.readFile( __dirname + "/" + "data/rawdata/Countries/IE.json", 'utf8', function (err, data) {
973       
974       res.end( data );
975   });
976});app.get('/rawdata/IT', function (req, res , next) {
977   fs.readFile( __dirname + "/" + "data/rawdata/Countries/IT.json", 'utf8', function (err, data) {
978       
979       res.end( data );
980   });
981});app.get('/rawdata/LI', function (req, res , next) {
982   fs.readFile( __dirname + "/" + "data/rawdata/Countries/LI.json", 'utf8', function (err, data) {
983       
984       res.end( data );
985   });
986});app.get('/rawdata/LT', function (req, res , next) {
987   fs.readFile( __dirname + "/" + "data/rawdata/Countries/LT.json", 'utf8', function (err, data) {
988       
989       res.end( data );
990   });
991});app.get('/rawdata/LU', function (req, res , next) {
992   fs.readFile( __dirname + "/" + "data/rawdata/Countries/LU.json", 'utf8', function (err, data) {
993       
994       res.end( data );
995   });
996});app.get('/rawdata/LV', function (req, res , next) {
997   fs.readFile( __dirname + "/" + "data/rawdata/Countries/LV.json", 'utf8', function (err, data) {
998       
999       res.end( data );
1000   });
1001});app.get('/rawdata/NL', function (req, res , next) {
1002   fs.readFile( __dirname + "/" + "data/rawdata/Countries/NL.json", 'utf8', function (err, data) {
1003       
1004       res.end( data );
1005   });
1006});app.get('/rawdata/NO', function (req, res , next) {
1007   fs.readFile( __dirname + "/" + "data/rawdata/Countries/NO.json", 'utf8', function (err, data) {
1008       
1009       res.end( data );
1010   });
1011});app.get('/rawdata/PL', function (req, res , next) {
1012   fs.readFile( __dirname + "/" + "data/rawdata/Countries/PL.json", 'utf8', function (err, data) {
1013       
1014       res.end( data );
1015   });
1016});app.get('/rawdata/PT', function (req, res , next) {
1017   fs.readFile( __dirname + "/" + "data/rawdata/Countries/PT.json", 'utf8', function (err, data) {
1018       
1019       res.end( data );
1020   });
1021});app.get('/rawdata/RO', function (req, res , next) {
1022   fs.readFile( __dirname + "/" + "data/rawdata/Countries/RO.json", 'utf8', function (err, data) {
1023       
1024       res.end( data );
1025   });
1026});app.get('/rawdata/SE', function (req, res , next) {
1027   fs.readFile( __dirname + "/" + "data/rawdata/Countries/SE.json", 'utf8', function (err, data) {
1028       
1029       res.end( data );
1030   });
1031});app.get('/rawdata/SI', function (req, res , next) {
1032   fs.readFile( __dirname + "/" + "data/rawdata/Countries/SI.json", 'utf8', function (err, data) {
1033       
1034       res.end( data );
1035   });
1036});app.get('/rawdata/SK', function (req, res , next) {
1037   fs.readFile( __dirname + "/" + "data/rawdata/Countries/SK.json", 'utf8', function (err, data) {
1038       
1039       res.end( data );
1040   });
1041   });
1042
1043
1044
1045
1046var server = app.listen(8081, function () {
1047
1048  var host = server.address().address;
1049  var port = server.address().port;
1050
1051  console.log("Example app listening at http://%s:%s", host, port);
1052
1053});
1054
1055
Full Screen

views.js

Source: views.js Github

copy
1var Views = module.exports;
2var fs = require('fs')
3
4Views.viewsDir = __dirname + '/../views'
5
6Views.index = ''
7indexPage = fs.readFile(Views.viewsDir + '/index.html', 'utf8',
8  function (err, data) {
9    Views.index += data
10  });
11
12Views.header = ''
13headerPage = fs.readFile(Views.viewsDir + '/header.html', 'utf8',
14  function (err, data) {
15    Views.header += data
16  });
17
18Views.sidebar = ''
19sidebarPage = fs.readFile(Views.viewsDir + '/sidebar.html', 'utf8',
20  function (err, data) {
21    Views.sidebar += data
22  });
23
24
25Views.login = ''
26loginPage = fs.readFile(Views.viewsDir  + '/login.html', 'utf8',
27  function (err, data) {
28    Views.login += data
29  });
30
31Views.dashboard = ''
32dashboardPage = fs.readFile(Views.viewsDir  + '/dashboard.html', 'utf8',
33  function (err, data) {
34    Views.dashboard += data
35  });
36Views.admin = ''
37adminPage = fs.readFile(Views.viewsDir  + '/admin.html', 'utf8',
38  function (err, data) {
39    Views.admin += data
40  });
41
42Views.accountActivated = ''
43accountActivatedPage = fs.readFile(Views.viewsDir  + '/accountActivated.html', 'utf8',
44  function (err, data) {
45    Views.accountActivated += data
46  });
47
48Views.clientAdmin = ''
49clientAdminPage = fs.readFile(Views.viewsDir  + '/clientAdmin.html', 'utf8',
50  function (err, data) {
51    Views.clientAdmin += data
52  });
53
54Views.user = ''
55userPage = fs.readFile(Views.viewsDir  + '/user.html', 'utf8',
56  function (err, data) {
57    Views.user += data
58  });
59
60Views.addUser = ''
61adduserPage = fs.readFile(Views.viewsDir  + '/addUser.html', 'utf8',
62  function (err, data) {
63    Views.addUser += data
64  });
65
66Views.client = ''
67adminPage = fs.readFile(Views.viewsDir  + '/client.html', 'utf8',
68  function (err, data) {
69    Views.client += data
70  });
71
72Views.addClient = ''
73addClientPage = fs.readFile(Views.viewsDir  + '/addClient.html', 'utf8',
74  function (err, data) {
75    Views.addClient += data
76  });
77
78Views.editClient = ''
79editClientPage = fs.readFile(Views.viewsDir  + '/editClient.html', 'utf8',
80  function (err, data) {
81    Views.editClient += data
82  });
83
84Views.editAccount = ''
85editAccountPage = fs.readFile(Views.viewsDir  + '/editAccount.html', 'utf8',
86  function (err, data) {
87    Views.editAccount += data
88  });
89
90Views.reallocateAccount = ''
91reallocateAccountPage = fs.readFile(Views.viewsDir  + '/reallocateAccount.html', 'utf8',
92  function (err, data) {
93    Views.reallocateAccount += data
94  });
95
96Views.did = ''
97didPage = fs.readFile(Views.viewsDir  + '/did.html', 'utf8',
98  function (err, data) {
99    Views.did += data
100  });
101
102Views.superReceptionist = ''
103superReceptionistPage = fs.readFile(Views.viewsDir  + '/superReceptionist.html', 'utf8',
104  function (err, data) {
105    Views.superReceptionist += data
106  });
107
108Views.addExtension = ''
109addExtensionPage = fs.readFile(Views.viewsDir  + '/addExtension.html', 'utf8',
110  function (err, data) {
111    Views.addExtension += data
112  });
113
114Views.superReceptionistList = ''
115superReceptionistPage = fs.readFile(Views.viewsDir  + '/superReceptionistList.html', 'utf8',
116  function (err, data) {
117    Views.superReceptionistList += data
118  });
119
120Views.editExtension = ''
121editExtensionPage = fs.readFile(Views.viewsDir  + '/editExtension.html', 'utf8',
122  function (err, data) {
123    Views.editExtension += data
124  });
125
126
127Views.clientDid = ''
128clientDidPage = fs.readFile(Views.viewsDir  + '/clientDid.html', 'utf8',
129  function (err, data) {
130    Views.clientDid += data
131  });
132
133Views.accountSummary = ''
134accountPage = fs.readFile(Views.viewsDir  + '/accountSummary.html', 'utf8',
135  function (err, data) {
136    Views.accountSummary += data
137  });
138
139Views.addAccount = ''
140addAccountPage = fs.readFile(Views.viewsDir  + '/addAccount.html', 'utf8',
141  function (err, data) {
142    Views.addAccount += data
143  });
144
145Views.report = ''
146reportPage = fs.readFile(Views.viewsDir  + '/report.html', 'utf8',
147  function (err, data) {
148    Views.report += data
149  });
150
151Views.inbox = ''
152inboxPage = fs.readFile(Views.viewsDir  + '/inbox.html', 'utf8',
153  function (err, data) {
154    Views.inbox += data
155  });
156
157Views.voicemail = ''
158voicemailPage = fs.readFile(Views.viewsDir  + '/voicemail.html', 'utf8',
159  function (err, data) {
160    Views.voicemail += data
161  });
162
163Views.addressbook = ''
164addressbookPage = fs.readFile(Views.viewsDir  + '/addressbook.html', 'utf8',
165  function (err, data) {
166    Views.addressbook += data
167  });
168
169
170Views.addDid = ''
171addDidtPage = fs.readFile(Views.viewsDir  + '/addDid.html', 'utf8',
172  function (err, data) {
173    Views.addDid += data
174  });
175
176
177Views.editDId = ''
178editDidPage = fs.readFile(Views.viewsDir  + '/editDid.html', 'utf8',
179  function (err, data) {
180    Views.editDid += data
181  });
182
183Views.changeSetting = ''
184changeSettingPage = fs.readFile(Views.viewsDir  + '/changeSetting.html', 'utf8',
185  function (err, data) {
186    Views.changeSetting += data
187  });
188
189Views.changePassword = ''
190changePasswordPage = fs.readFile(Views.viewsDir  + '/changePassword.html', 'utf8',
191  function (err, data) {
192    Views.changePassword += data
193  });
194
195Views.demoAccount = ''
196demoAccountPage = fs.readFile(Views.viewsDir  + '/demoAccount.html', 'utf8',
197  function (err, data) {
198    Views.demoAccount += data
199  });
200
201Views.addDemo = ''
202addDemoPage = fs.readFile(Views.viewsDir  + '/addDemo.html', 'utf8',
203  function (err, data) {
204    Views.addDemo += data
205  });
206
207Views.demoDashboard = ''
208demoDashboardPage = fs.readFile(Views.viewsDir  + '/demoDashboard.html', 'utf8',
209  function (err, data){
210    Views.demoDashboard += data
211  });
212
213Views.example = ''
214examplePage = fs.readFile(Views.viewsDir  + '/example.html', 'utf8',
215  function (err, data) {
216    Views.example += data
217  });
218
219Views.contactus = ''
220contactus = fs.readFile(Views.viewsDir  + '/contact.html', 'utf8',
221  function (err, data) {
222    Views.contactus += data
223  });
224
225Views.checkSocket = ''
226checkSocket = fs.readFile(Views.viewsDir  + '/checkSocket.html', 'utf8',
227  function (err, data) {
228    Views.checkSocket += data
229  });
230
231Views.editResources = ''
232checkSocket = fs.readFile(Views.viewsDir  + '/editResources.html', 'utf8',
233  function (err, data) {
234    Views.editResources += data
235  });
236
237Views.allocateDidForVR = ''
238allocateDidForVRPage = fs.readFile(Views.viewsDir + '/allocateDidForVR.html', 'utf8',
239  function (err, data) {
240    Views.allocateDidForVR += data
241  });
242
243Views.createBWList = ''
244createBWListPage = fs.readFile(Views.viewsDir + '/createBWList.html', 'utf8',
245  function (err, data) {
246    Views.createBWList += data
247  });
248
249
250Views.missedCall = ''
251missedCallPage = fs.readFile(Views.viewsDir + '/missedCall.html', 'utf8',
252  function (err, data) {
253    Views.missedCall += data
254  });
255
256Views.stickyAgent = ''
257stickyAgentPage = fs.readFile(Views.viewsDir + '/stickyAgent.html', 'utf8',
258  function (err, data) {
259    Views.stickyAgent += data
260  });
261
Full Screen

async.js

Source: async.js Github

copy
1var async = require('async');
2var fs = require('fs');
3
4var start = (new Date()).getTime();
5
6// async.parallel([
7//     function(callback){
8//         fs.readFile('file1.txt', 'utf-8', callback);
9//     },
10//     function (callback){
11//         fs.readFile('file2.txt', 'utf-8', callback);
12//     },
13//     function(callback){
14//         fs.readFile('file1.txt', 'utf-8', callback);
15//     },
16//     function (callback){
17//         fs.readFile('file2.txt', 'utf-8', callback);
18//     },
19//     function(callback){
20//         fs.readFile('file1.txt', 'utf-8', callback);
21//     },
22//     function (callback){
23//         fs.readFile('file2.txt', 'utf-8', callback);
24//     },
25//     function(callback){
26//         fs.readFile('file1.txt', 'utf-8', callback);
27//     },
28//     function (callback){
29//         fs.readFile('file2.txt', 'utf-8', callback);
30//     },
31//     function(callback){
32//         fs.readFile('file1.txt', 'utf-8', callback);
33//     },
34//     function (callback){
35//         fs.readFile('file2.txt', 'utf-8', callback);
36//     }
37// ], function (err, results){
38//     console.log(results, (new Date()).getTime() - start);
39// });
40
41async.parallelLimit([
42    function(callback){
43        fs.readFile('file1.txt', 'utf-8', callback);
44    },
45    function (callback){
46        fs.readFile('file2.txt', 'utf-8', callback);
47    },
48    function(callback){
49        fs.readFile('file1.txt', 'utf-8', callback);
50    },
51    function (callback){
52        fs.readFile('file2.txt', 'utf-8', callback);
53    },
54    function(callback){
55        fs.readFile('file1.txt', 'utf-8', callback);
56    },
57    function (callback){
58        fs.readFile('file2.txt', 'utf-8', callback);
59    },
60    function(callback){
61        fs.readFile('file1.txt', 'utf-8', callback);
62    },
63    function (callback){
64        fs.readFile('file2.txt', 'utf-8', callback);
65    },
66    function(callback){
67        fs.readFile('file1.txt', 'utf-8', callback);
68    },
69    function (callback){
70        fs.readFile('file2.txt', 'utf-8', callback);
71    }
72], 1, function (err, results){
73    console.log(results, (new Date()).getTime() - start);
74});
75
Full Screen

upload.500.js

Source: upload.500.js Github

copy
1require('dotenv').config('')
2const fs = require('fs').promises
3const { mcsClient } = require('mcs-client')
4const client = new mcsClient({
5  privateKey: process.env.PRIVATE_KEY,
6  rpcUrl: process.env.RPC_URL,
7})
8
9async function main() {
10  const fileArray = [
11    { fileName: 'AAA01AAA', file: await fs.readFile('./file/AAA01AAA') },
12    { fileName: 'AAA02AAA', file: await fs.readFile('./file/AAA02AAA') },
13    { fileName: 'AAA03AAA', file: await fs.readFile('./file/AAA03AAA') },
14    { fileName: 'AAA04AAA', file: await fs.readFile('./file/AAA04AAA') },
15    { fileName: 'AAA05AAA', file: await fs.readFile('./file/AAA05AAA') },
16    { fileName: 'AAA06AAA', file: await fs.readFile('./file/AAA06AAA') },
17    { fileName: 'AAA07AAA', file: await fs.readFile('./file/AAA07AAA') },
18    { fileName: 'AAA08AAA', file: await fs.readFile('./file/AAA08AAA') },
19    { fileName: 'AAA09AAA', file: await fs.readFile('./file/AAA09AAA') },
20    { fileName: 'AAA10AAA', file: await fs.readFile('./file/AAA10AAA') },
21    { fileName: 'AAA11AAA', file: await fs.readFile('./file/AAA11AAA') },
22    { fileName: 'AAA12AAA', file: await fs.readFile('./file/AAA12AAA') },
23    { fileName: 'AAA13AAA', file: await fs.readFile('./file/AAA13AAA') },
24    { fileName: 'AAA14AAA', file: await fs.readFile('./file/AAA14AAA') },
25    { fileName: 'AAA15AAA', file: await fs.readFile('./file/AAA15AAA') },
26    { fileName: 'AAA16AAA', file: await fs.readFile('./file/AAA16AAA') },
27    { fileName: 'AAA17AAA', file: await fs.readFile('./file/AAA17AAA') },
28    { fileName: 'AAA18AAA', file: await fs.readFile('./file/AAA18AAA') },
29    { fileName: 'AAA19AAA', file: await fs.readFile('./file/AAA19AAA') },
30    { fileName: 'AAA20AAA', file: await fs.readFile('./file/AAA20AAA') },
31    { fileName: 'AAA21AAA', file: await fs.readFile('./file/AAA21AAA') },
32    { fileName: 'AAA22AAA', file: await fs.readFile('./file/AAA22AAA') },
33    { fileName: 'AAA23AAA', file: await fs.readFile('./file/AAA23AAA') },
34    { fileName: 'AAA24AAA', file: await fs.readFile('./file/AAA24AAA') },
35    { fileName: 'AAA25AAA', file: await fs.readFile('./file/AAA25AAA') },
36    { fileName: 'AAA26AAA', file: await fs.readFile('./file/AAA26AAA') },
37    { fileName: 'AAA27AAA', file: await fs.readFile('./file/AAA27AAA') },
38    { fileName: 'AAA28AAA', file: await fs.readFile('./file/AAA28AAA') },
39    { fileName: 'AAA29AAA', file: await fs.readFile('./file/AAA29AAA') },
40    { fileName: 'AAA30AAA', file: await fs.readFile('./file/AAA30AAA') },
41    { fileName: 'AAA31AAA', file: await fs.readFile('./file/AAA31AAA') },
42    { fileName: 'AAA32AAA', file: await fs.readFile('./file/AAA32AAA') },
43    { fileName: 'AAA33AAA', file: await fs.readFile('./file/AAA33AAA') },
44    { fileName: 'AAA34AAA', file: await fs.readFile('./file/AAA34AAA') },
45    { fileName: 'AAA35AAA', file: await fs.readFile('./file/AAA35AAA') },
46    { fileName: 'AAA36AAA', file: await fs.readFile('./file/AAA36AAA') },
47    { fileName: 'AAA37AAA', file: await fs.readFile('./file/AAA37AAA') },
48    { fileName: 'AAA38AAA', file: await fs.readFile('./file/AAA38AAA') },
49    { fileName: 'AAA39AAA', file: await fs.readFile('./file/AAA39AAA') },
50    { fileName: 'AAA40AAA', file: await fs.readFile('./file/AAA40AAA') },
51    { fileName: 'AAA41AAA', file: await fs.readFile('./file/AAA41AAA') },
52    { fileName: 'AAA42AAA', file: await fs.readFile('./file/AAA42AAA') },
53    { fileName: 'AAA43AAA', file: await fs.readFile('./file/AAA43AAA') },
54    { fileName: 'AAA44AAA', file: await fs.readFile('./file/AAA44AAA') },
55    { fileName: 'AAA45AAA', file: await fs.readFile('./file/AAA45AAA') },
56    { fileName: 'AAA46AAA', file: await fs.readFile('./file/AAA46AAA') },
57    { fileName: 'AAA47AAA', file: await fs.readFile('./file/AAA47AAA') },
58    { fileName: 'AAA48AAA', file: await fs.readFile('./file/AAA48AAA') },
59    { fileName: 'AAA49AAA', file: await fs.readFile('./file/AAA49AAA') },
60    { fileName: 'AAA50AAA', file: await fs.readFile('./file/AAA50AAA') },
61    { fileName: 'AAA51AAA', file: await fs.readFile('./file/AAA51AAA') },
62    { fileName: 'AAA52AAA', file: await fs.readFile('./file/AAA52AAA') },
63    { fileName: 'AAA53AAA', file: await fs.readFile('./file/AAA53AAA') },
64    { fileName: 'AAA54AAA', file: await fs.readFile('./file/AAA54AAA') },
65    { fileName: 'AAA55AAA', file: await fs.readFile('./file/AAA55AAA') },
66    { fileName: 'AAA56AAA', file: await fs.readFile('./file/AAA56AAA') },
67    { fileName: 'AAA57AAA', file: await fs.readFile('./file/AAA57AAA') },
68    { fileName: 'AAA58AAA', file: await fs.readFile('./file/AAA58AAA') },
69    { fileName: 'AAA59AAA', file: await fs.readFile('./file/AAA59AAA') },
70    { fileName: 'AAA60AAA', file: await fs.readFile('./file/AAA60AAA') },
71    { fileName: 'AAA61AAA', file: await fs.readFile('./file/AAA61AAA') },
72    { fileName: 'AAA62AAA', file: await fs.readFile('./file/AAA62AAA') },
73    { fileName: 'AAA63AAA', file: await fs.readFile('./file/AAA63AAA') },
74    { fileName: 'AAA64AAA', file: await fs.readFile('./file/AAA64AAA') },
75    { fileName: 'AAA65AAA', file: await fs.readFile('./file/AAA65AAA') },
76    { fileName: 'AAA66AAA', file: await fs.readFile('./file/AAA66AAA') },
77    { fileName: 'AAA67AAA', file: await fs.readFile('./file/AAA67AAA') },
78    { fileName: 'AAA68AAA', file: await fs.readFile('./file/AAA68AAA') },
79    { fileName: 'AAA69AAA', file: await fs.readFile('./file/AAA69AAA') },
80    { fileName: 'AAA70AAA', file: await fs.readFile('./file/AAA70AAA') },
81    { fileName: 'AAA71AAA', file: await fs.readFile('./file/AAA71AAA') },
82    { fileName: 'AAA72AAA', file: await fs.readFile('./file/AAA72AAA') },
83    { fileName: 'AAA73AAA', file: await fs.readFile('./file/AAA73AAA') },
84    { fileName: 'AAA74AAA', file: await fs.readFile('./file/AAA74AAA') },
85    { fileName: 'AAA75AAA', file: await fs.readFile('./file/AAA75AAA') },
86    { fileName: 'AAA76AAA', file: await fs.readFile('./file/AAA76AAA') },
87    { fileName: 'AAA77AAA', file: await fs.readFile('./file/AAA77AAA') },
88    { fileName: 'AAA78AAA', file: await fs.readFile('./file/AAA78AAA') },
89    { fileName: 'AAA79AAA', file: await fs.readFile('./file/AAA79AAA') },
90    { fileName: 'AAA80AAA', file: await fs.readFile('./file/AAA80AAA') },
91    { fileName: 'AAA81AAA', file: await fs.readFile('./file/AAA81AAA') },
92    { fileName: 'AAA82AAA', file: await fs.readFile('./file/AAA82AAA') },
93    { fileName: 'AAA83AAA', file: await fs.readFile('./file/AAA83AAA') },
94    { fileName: 'AAA84AAA', file: await fs.readFile('./file/AAA84AAA') },
95    { fileName: 'AAA85AAA', file: await fs.readFile('./file/AAA85AAA') },
96    { fileName: 'AAA86AAA', file: await fs.readFile('./file/AAA86AAA') },
97    { fileName: 'AAA87AAA', file: await fs.readFile('./file/AAA87AAA') },
98    { fileName: 'AAA88AAA', file: await fs.readFile('./file/AAA88AAA') },
99    { fileName: 'AAA89AAA', file: await fs.readFile('./file/AAA89AAA') },
100    { fileName: 'AAA90AAA', file: await fs.readFile('./file/AAA90AAA') },
101    { fileName: 'AAA91AAA', file: await fs.readFile('./file/AAA91AAA') },
102    { fileName: 'AAA92AAA', file: await fs.readFile('./file/AAA92AAA') },
103    { fileName: 'AAA93AAA', file: await fs.readFile('./file/AAA93AAA') },
104    { fileName: 'AAA94AAA', file: await fs.readFile('./file/AAA94AAA') },
105    { fileName: 'AAA95AAA', file: await fs.readFile('./file/AAA95AAA') },
106    { fileName: 'AAA96AAA', file: await fs.readFile('./file/AAA96AAA') },
107    { fileName: 'AAA97AAA', file: await fs.readFile('./file/AAA97AAA') },
108    { fileName: 'AAA98AAA', file: await fs.readFile('./file/AAA98AAA') },
109    { fileName: 'AAA99AAA', file: await fs.readFile('./file/AAA99AAA') },
110    { fileName: 'AAA100AAA', file: await fs.readFile('./file/AAA100AAA') },
111    { fileName: 'AAA101AAA', file: await fs.readFile('./file/AAA101AAA') },
112    { fileName: 'AAA102AAA', file: await fs.readFile('./file/AAA102AAA') },
113    { fileName: 'AAA103AAA', file: await fs.readFile('./file/AAA103AAA') },
114    { fileName: 'AAA104AAA', file: await fs.readFile('./file/AAA104AAA') },
115    { fileName: 'AAA105AAA', file: await fs.readFile('./file/AAA105AAA') },
116    { fileName: 'AAA106AAA', file: await fs.readFile('./file/AAA106AAA') },
117    { fileName: 'AAA107AAA', file: await fs.readFile('./file/AAA107AAA') },
118    { fileName: 'AAA108AAA', file: await fs.readFile('./file/AAA108AAA') },
119    { fileName: 'AAA109AAA', file: await fs.readFile('./file/AAA109AAA') },
120    { fileName: 'AAA110AAA', file: await fs.readFile('./file/AAA110AAA') },
121    { fileName: 'AAA111AAA', file: await fs.readFile('./file/AAA111AAA') },
122    { fileName: 'AAA112AAA', file: await fs.readFile('./file/AAA112AAA') },
123    { fileName: 'AAA113AAA', file: await fs.readFile('./file/AAA113AAA') },
124    { fileName: 'AAA114AAA', file: await fs.readFile('./file/AAA114AAA') },
125    { fileName: 'AAA115AAA', file: await fs.readFile('./file/AAA115AAA') },
126    { fileName: 'AAA116AAA', file: await fs.readFile('./file/AAA116AAA') },
127    { fileName: 'AAA117AAA', file: await fs.readFile('./file/AAA117AAA') },
128    { fileName: 'AAA118AAA', file: await fs.readFile('./file/AAA118AAA') },
129    { fileName: 'AAA119AAA', file: await fs.readFile('./file/AAA119AAA') },
130    { fileName: 'AAA120AAA', file: await fs.readFile('./file/AAA120AAA') },
131    { fileName: 'AAA121AAA', file: await fs.readFile('./file/AAA121AAA') },
132    { fileName: 'AAA122AAA', file: await fs.readFile('./file/AAA122AAA') },
133    { fileName: 'AAA123AAA', file: await fs.readFile('./file/AAA123AAA') },
134    { fileName: 'AAA124AAA', file: await fs.readFile('./file/AAA124AAA') },
135    { fileName: 'AAA125AAA', file: await fs.readFile('./file/AAA125AAA') },
136    { fileName: 'AAA126AAA', file: await fs.readFile('./file/AAA126AAA') },
137    { fileName: 'AAA127AAA', file: await fs.readFile('./file/AAA127AAA') },
138    { fileName: 'AAA128AAA', file: await fs.readFile('./file/AAA128AAA') },
139    { fileName: 'AAA129AAA', file: await fs.readFile('./file/AAA129AAA') },
140    { fileName: 'AAA130AAA', file: await fs.readFile('./file/AAA130AAA') },
141    { fileName: 'AAA131AAA', file: await fs.readFile('./file/AAA131AAA') },
142    { fileName: 'AAA132AAA', file: await fs.readFile('./file/AAA132AAA') },
143    { fileName: 'AAA133AAA', file: await fs.readFile('./file/AAA133AAA') },
144    { fileName: 'AAA134AAA', file: await fs.readFile('./file/AAA134AAA') },
145    { fileName: 'AAA135AAA', file: await fs.readFile('./file/AAA135AAA') },
146    { fileName: 'AAA136AAA', file: await fs.readFile('./file/AAA136AAA') },
147    { fileName: 'AAA137AAA', file: await fs.readFile('./file/AAA137AAA') },
148    { fileName: 'AAA138AAA', file: await fs.readFile('./file/AAA138AAA') },
149    { fileName: 'AAA139AAA', file: await fs.readFile('./file/AAA139AAA') },
150    { fileName: 'AAA140AAA', file: await fs.readFile('./file/AAA140AAA') },
151    { fileName: 'AAA141AAA', file: await fs.readFile('./file/AAA141AAA') },
152    { fileName: 'AAA142AAA', file: await fs.readFile('./file/AAA142AAA') },
153    { fileName: 'AAA143AAA', file: await fs.readFile('./file/AAA143AAA') },
154    { fileName: 'AAA144AAA', file: await fs.readFile('./file/AAA144AAA') },
155    { fileName: 'AAA145AAA', file: await fs.readFile('./file/AAA145AAA') },
156    { fileName: 'AAA146AAA', file: await fs.readFile('./file/AAA146AAA') },
157    { fileName: 'AAA147AAA', file: await fs.readFile('./file/AAA147AAA') },
158    { fileName: 'AAA148AAA', file: await fs.readFile('./file/AAA148AAA') },
159    { fileName: 'AAA149AAA', file: await fs.readFile('./file/AAA149AAA') },
160    { fileName: 'AAA150AAA', file: await fs.readFile('./file/AAA150AAA') },
161    { fileName: 'AAA151AAA', file: await fs.readFile('./file/AAA151AAA') },
162    { fileName: 'AAA152AAA', file: await fs.readFile('./file/AAA152AAA') },
163    { fileName: 'AAA153AAA', file: await fs.readFile('./file/AAA153AAA') },
164    { fileName: 'AAA154AAA', file: await fs.readFile('./file/AAA154AAA') },
165    { fileName: 'AAA155AAA', file: await fs.readFile('./file/AAA155AAA') },
166    { fileName: 'AAA156AAA', file: await fs.readFile('./file/AAA156AAA') },
167    { fileName: 'AAA157AAA', file: await fs.readFile('./file/AAA157AAA') },
168    { fileName: 'AAA158AAA', file: await fs.readFile('./file/AAA158AAA') },
169    { fileName: 'AAA159AAA', file: await fs.readFile('./file/AAA159AAA') },
170    { fileName: 'AAA160AAA', file: await fs.readFile('./file/AAA160AAA') },
171    { fileName: 'AAA161AAA', file: await fs.readFile('./file/AAA161AAA') },
172    { fileName: 'AAA162AAA', file: await fs.readFile('./file/AAA162AAA') },
173    { fileName: 'AAA163AAA', file: await fs.readFile('./file/AAA163AAA') },
174    { fileName: 'AAA164AAA', file: await fs.readFile('./file/AAA164AAA') },
175    { fileName: 'AAA165AAA', file: await fs.readFile('./file/AAA165AAA') },
176    { fileName: 'AAA166AAA', file: await fs.readFile('./file/AAA166AAA') },
177    { fileName: 'AAA167AAA', file: await fs.readFile('./file/AAA167AAA') },
178    { fileName: 'AAA168AAA', file: await fs.readFile('./file/AAA168AAA') },
179    { fileName: 'AAA169AAA', file: await fs.readFile('./file/AAA169AAA') },
180    { fileName: 'AAA170AAA', file: await fs.readFile('./file/AAA170AAA') },
181    { fileName: 'AAA171AAA', file: await fs.readFile('./file/AAA171AAA') },
182    { fileName: 'AAA172AAA', file: await fs.readFile('./file/AAA172AAA') },
183    { fileName: 'AAA173AAA', file: await fs.readFile('./file/AAA173AAA') },
184    { fileName: 'AAA174AAA', file: await fs.readFile('./file/AAA174AAA') },
185    { fileName: 'AAA175AAA', file: await fs.readFile('./file/AAA175AAA') },
186    { fileName: 'AAA176AAA', file: await fs.readFile('./file/AAA176AAA') },
187    { fileName: 'AAA177AAA', file: await fs.readFile('./file/AAA177AAA') },
188    { fileName: 'AAA178AAA', file: await fs.readFile('./file/AAA178AAA') },
189    { fileName: 'AAA179AAA', file: await fs.readFile('./file/AAA179AAA') },
190    { fileName: 'AAA180AAA', file: await fs.readFile('./file/AAA180AAA') },
191    { fileName: 'AAA181AAA', file: await fs.readFile('./file/AAA181AAA') },
192    { fileName: 'AAA182AAA', file: await fs.readFile('./file/AAA182AAA') },
193    { fileName: 'AAA183AAA', file: await fs.readFile('./file/AAA183AAA') },
194    { fileName: 'AAA184AAA', file: await fs.readFile('./file/AAA184AAA') },
195    { fileName: 'AAA185AAA', file: await fs.readFile('./file/AAA185AAA') },
196    { fileName: 'AAA186AAA', file: await fs.readFile('./file/AAA186AAA') },
197    { fileName: 'AAA187AAA', file: await fs.readFile('./file/AAA187AAA') },
198    { fileName: 'AAA188AAA', file: await fs.readFile('./file/AAA188AAA') },
199    { fileName: 'AAA189AAA', file: await fs.readFile('./file/AAA189AAA') },
200    { fileName: 'AAA190AAA', file: await fs.readFile('./file/AAA190AAA') },
201    { fileName: 'AAA191AAA', file: await fs.readFile('./file/AAA191AAA') },
202    { fileName: 'AAA192AAA', file: await fs.readFile('./file/AAA192AAA') },
203    { fileName: 'AAA193AAA', file: await fs.readFile('./file/AAA193AAA') },
204    { fileName: 'AAA194AAA', file: await fs.readFile('./file/AAA194AAA') },
205    { fileName: 'AAA195AAA', file: await fs.readFile('./file/AAA195AAA') },
206    { fileName: 'AAA196AAA', file: await fs.readFile('./file/AAA196AAA') },
207    { fileName: 'AAA197AAA', file: await fs.readFile('./file/AAA197AAA') },
208    { fileName: 'AAA198AAA', file: await fs.readFile('./file/AAA198AAA') },
209    { fileName: 'AAA199AAA', file: await fs.readFile('./file/AAA199AAA') },
210    { fileName: 'AAA200AAA', file: await fs.readFile('./file/AAA200AAA') },
211    { fileName: 'AAA201AAA', file: await fs.readFile('./file/AAA201AAA') },
212    { fileName: 'AAA202AAA', file: await fs.readFile('./file/AAA202AAA') },
213    { fileName: 'AAA203AAA', file: await fs.readFile('./file/AAA203AAA') },
214    { fileName: 'AAA204AAA', file: await fs.readFile('./file/AAA204AAA') },
215    { fileName: 'AAA205AAA', file: await fs.readFile('./file/AAA205AAA') },
216    { fileName: 'AAA206AAA', file: await fs.readFile('./file/AAA206AAA') },
217    { fileName: 'AAA207AAA', file: await fs.readFile('./file/AAA207AAA') },
218    { fileName: 'AAA208AAA', file: await fs.readFile('./file/AAA208AAA') },
219    { fileName: 'AAA209AAA', file: await fs.readFile('./file/AAA209AAA') },
220    { fileName: 'AAA210AAA', file: await fs.readFile('./file/AAA210AAA') },
221    { fileName: 'AAA211AAA', file: await fs.readFile('./file/AAA211AAA') },
222    { fileName: 'AAA212AAA', file: await fs.readFile('./file/AAA212AAA') },
223    { fileName: 'AAA213AAA', file: await fs.readFile('./file/AAA213AAA') },
224    { fileName: 'AAA214AAA', file: await fs.readFile('./file/AAA214AAA') },
225    { fileName: 'AAA215AAA', file: await fs.readFile('./file/AAA215AAA') },
226    { fileName: 'AAA216AAA', file: await fs.readFile('./file/AAA216AAA') },
227    { fileName: 'AAA217AAA', file: await fs.readFile('./file/AAA217AAA') },
228    { fileName: 'AAA218AAA', file: await fs.readFile('./file/AAA218AAA') },
229    { fileName: 'AAA219AAA', file: await fs.readFile('./file/AAA219AAA') },
230    { fileName: 'AAA220AAA', file: await fs.readFile('./file/AAA220AAA') },
231    { fileName: 'AAA221AAA', file: await fs.readFile('./file/AAA221AAA') },
232    { fileName: 'AAA222AAA', file: await fs.readFile('./file/AAA222AAA') },
233    { fileName: 'AAA223AAA', file: await fs.readFile('./file/AAA223AAA') },
234    { fileName: 'AAA224AAA', file: await fs.readFile('./file/AAA224AAA') },
235    { fileName: 'AAA225AAA', file: await fs.readFile('./file/AAA225AAA') },
236    { fileName: 'AAA226AAA', file: await fs.readFile('./file/AAA226AAA') },
237    { fileName: 'AAA227AAA', file: await fs.readFile('./file/AAA227AAA') },
238    { fileName: 'AAA228AAA', file: await fs.readFile('./file/AAA228AAA') },
239    { fileName: 'AAA229AAA', file: await fs.readFile('./file/AAA229AAA') },
240    { fileName: 'AAA230AAA', file: await fs.readFile('./file/AAA230AAA') },
241    { fileName: 'AAA231AAA', file: await fs.readFile('./file/AAA231AAA') },
242    { fileName: 'AAA232AAA', file: await fs.readFile('./file/AAA232AAA') },
243    { fileName: 'AAA233AAA', file: await fs.readFile('./file/AAA233AAA') },
244    { fileName: 'AAA234AAA', file: await fs.readFile('./file/AAA234AAA') },
245    { fileName: 'AAA235AAA', file: await fs.readFile('./file/AAA235AAA') },
246    { fileName: 'AAA236AAA', file: await fs.readFile('./file/AAA236AAA') },
247    { fileName: 'AAA237AAA', file: await fs.readFile('./file/AAA237AAA') },
248    { fileName: 'AAA238AAA', file: await fs.readFile('./file/AAA238AAA') },
249    { fileName: 'AAA239AAA', file: await fs.readFile('./file/AAA239AAA') },
250    { fileName: 'AAA240AAA', file: await fs.readFile('./file/AAA240AAA') },
251    { fileName: 'AAA241AAA', file: await fs.readFile('./file/AAA241AAA') },
252    { fileName: 'AAA242AAA', file: await fs.readFile('./file/AAA242AAA') },
253    { fileName: 'AAA243AAA', file: await fs.readFile('./file/AAA243AAA') },
254    { fileName: 'AAA244AAA', file: await fs.readFile('./file/AAA244AAA') },
255    { fileName: 'AAA245AAA', file: await fs.readFile('./file/AAA245AAA') },
256    { fileName: 'AAA246AAA', file: await fs.readFile('./file/AAA246AAA') },
257    { fileName: 'AAA247AAA', file: await fs.readFile('./file/AAA247AAA') },
258    { fileName: 'AAA248AAA', file: await fs.readFile('./file/AAA248AAA') },
259    { fileName: 'AAA249AAA', file: await fs.readFile('./file/AAA249AAA') },
260    { fileName: 'AAA250AAA', file: await fs.readFile('./file/AAA250AAA') },
261    { fileName: 'AAA251AAA', file: await fs.readFile('./file/AAA251AAA') },
262    { fileName: 'AAA252AAA', file: await fs.readFile('./file/AAA252AAA') },
263    { fileName: 'AAA253AAA', file: await fs.readFile('./file/AAA253AAA') },
264    { fileName: 'AAA254AAA', file: await fs.readFile('./file/AAA254AAA') },
265    { fileName: 'AAA255AAA', file: await fs.readFile('./file/AAA255AAA') },
266    { fileName: 'AAA256AAA', file: await fs.readFile('./file/AAA256AAA') },
267    { fileName: 'AAA257AAA', file: await fs.readFile('./file/AAA257AAA') },
268    { fileName: 'AAA258AAA', file: await fs.readFile('./file/AAA258AAA') },
269    { fileName: 'AAA259AAA', file: await fs.readFile('./file/AAA259AAA') },
270    { fileName: 'AAA260AAA', file: await fs.readFile('./file/AAA260AAA') },
271    { fileName: 'AAA261AAA', file: await fs.readFile('./file/AAA261AAA') },
272    { fileName: 'AAA262AAA', file: await fs.readFile('./file/AAA262AAA') },
273    { fileName: 'AAA263AAA', file: await fs.readFile('./file/AAA263AAA') },
274    { fileName: 'AAA264AAA', file: await fs.readFile('./file/AAA264AAA') },
275    { fileName: 'AAA265AAA', file: await fs.readFile('./file/AAA265AAA') },
276    { fileName: 'AAA266AAA', file: await fs.readFile('./file/AAA266AAA') },
277    { fileName: 'AAA267AAA', file: await fs.readFile('./file/AAA267AAA') },
278    { fileName: 'AAA268AAA', file: await fs.readFile('./file/AAA268AAA') },
279    { fileName: 'AAA269AAA', file: await fs.readFile('./file/AAA269AAA') },
280    { fileName: 'AAA270AAA', file: await fs.readFile('./file/AAA270AAA') },
281    { fileName: 'AAA271AAA', file: await fs.readFile('./file/AAA271AAA') },
282    { fileName: 'AAA272AAA', file: await fs.readFile('./file/AAA272AAA') },
283    { fileName: 'AAA273AAA', file: await fs.readFile('./file/AAA273AAA') },
284    { fileName: 'AAA274AAA', file: await fs.readFile('./file/AAA274AAA') },
285    { fileName: 'AAA275AAA', file: await fs.readFile('./file/AAA275AAA') },
286    { fileName: 'AAA276AAA', file: await fs.readFile('./file/AAA276AAA') },
287    { fileName: 'AAA277AAA', file: await fs.readFile('./file/AAA277AAA') },
288    { fileName: 'AAA278AAA', file: await fs.readFile('./file/AAA278AAA') },
289    { fileName: 'AAA279AAA', file: await fs.readFile('./file/AAA279AAA') },
290    { fileName: 'AAA280AAA', file: await fs.readFile('./file/AAA280AAA') },
291    { fileName: 'AAA281AAA', file: await fs.readFile('./file/AAA281AAA') },
292    { fileName: 'AAA282AAA', file: await fs.readFile('./file/AAA282AAA') },
293    { fileName: 'AAA283AAA', file: await fs.readFile('./file/AAA283AAA') },
294    { fileName: 'AAA284AAA', file: await fs.readFile('./file/AAA284AAA') },
295    { fileName: 'AAA285AAA', file: await fs.readFile('./file/AAA285AAA') },
296    { fileName: 'AAA286AAA', file: await fs.readFile('./file/AAA286AAA') },
297    { fileName: 'AAA287AAA', file: await fs.readFile('./file/AAA287AAA') },
298    { fileName: 'AAA288AAA', file: await fs.readFile('./file/AAA288AAA') },
299    { fileName: 'AAA289AAA', file: await fs.readFile('./file/AAA289AAA') },
300    { fileName: 'AAA290AAA', file: await fs.readFile('./file/AAA290AAA') },
301    { fileName: 'AAA291AAA', file: await fs.readFile('./file/AAA291AAA') },
302    { fileName: 'AAA292AAA', file: await fs.readFile('./file/AAA292AAA') },
303    { fileName: 'AAA293AAA', file: await fs.readFile('./file/AAA293AAA') },
304    { fileName: 'AAA294AAA', file: await fs.readFile('./file/AAA294AAA') },
305    { fileName: 'AAA295AAA', file: await fs.readFile('./file/AAA295AAA') },
306    { fileName: 'AAA296AAA', file: await fs.readFile('./file/AAA296AAA') },
307    { fileName: 'AAA297AAA', file: await fs.readFile('./file/AAA297AAA') },
308    { fileName: 'AAA298AAA', file: await fs.readFile('./file/AAA298AAA') },
309    { fileName: 'AAA299AAA', file: await fs.readFile('./file/AAA299AAA') },
310    { fileName: 'AAA300AAA', file: await fs.readFile('./file/AAA300AAA') },
311    { fileName: 'AAA301AAA', file: await fs.readFile('./file/AAA301AAA') },
312    { fileName: 'AAA302AAA', file: await fs.readFile('./file/AAA302AAA') },
313    { fileName: 'AAA303AAA', file: await fs.readFile('./file/AAA303AAA') },
314    { fileName: 'AAA304AAA', file: await fs.readFile('./file/AAA304AAA') },
315    { fileName: 'AAA305AAA', file: await fs.readFile('./file/AAA305AAA') },
316    { fileName: 'AAA306AAA', file: await fs.readFile('./file/AAA306AAA') },
317    { fileName: 'AAA307AAA', file: await fs.readFile('./file/AAA307AAA') },
318    { fileName: 'AAA308AAA', file: await fs.readFile('./file/AAA308AAA') },
319    { fileName: 'AAA309AAA', file: await fs.readFile('./file/AAA309AAA') },
320    { fileName: 'AAA310AAA', file: await fs.readFile('./file/AAA310AAA') },
321    { fileName: 'AAA311AAA', file: await fs.readFile('./file/AAA311AAA') },
322    { fileName: 'AAA312AAA', file: await fs.readFile('./file/AAA312AAA') },
323    { fileName: 'AAA313AAA', file: await fs.readFile('./file/AAA313AAA') },
324    { fileName: 'AAA314AAA', file: await fs.readFile('./file/AAA314AAA') },
325    { fileName: 'AAA315AAA', file: await fs.readFile('./file/AAA315AAA') },
326    { fileName: 'AAA316AAA', file: await fs.readFile('./file/AAA316AAA') },
327    { fileName: 'AAA317AAA', file: await fs.readFile('./file/AAA317AAA') },
328    { fileName: 'AAA318AAA', file: await fs.readFile('./file/AAA318AAA') },
329    { fileName: 'AAA319AAA', file: await fs.readFile('./file/AAA319AAA') },
330    { fileName: 'AAA320AAA', file: await fs.readFile('./file/AAA320AAA') },
331    { fileName: 'AAA321AAA', file: await fs.readFile('./file/AAA321AAA') },
332    { fileName: 'AAA322AAA', file: await fs.readFile('./file/AAA322AAA') },
333    { fileName: 'AAA323AAA', file: await fs.readFile('./file/AAA323AAA') },
334    { fileName: 'AAA324AAA', file: await fs.readFile('./file/AAA324AAA') },
335    { fileName: 'AAA325AAA', file: await fs.readFile('./file/AAA325AAA') },
336    { fileName: 'AAA326AAA', file: await fs.readFile('./file/AAA326AAA') },
337    { fileName: 'AAA327AAA', file: await fs.readFile('./file/AAA327AAA') },
338    { fileName: 'AAA328AAA', file: await fs.readFile('./file/AAA328AAA') },
339    { fileName: 'AAA329AAA', file: await fs.readFile('./file/AAA329AAA') },
340    { fileName: 'AAA330AAA', file: await fs.readFile('./file/AAA330AAA') },
341    { fileName: 'AAA331AAA', file: await fs.readFile('./file/AAA331AAA') },
342    { fileName: 'AAA332AAA', file: await fs.readFile('./file/AAA332AAA') },
343    { fileName: 'AAA333AAA', file: await fs.readFile('./file/AAA333AAA') },
344    { fileName: 'AAA334AAA', file: await fs.readFile('./file/AAA334AAA') },
345    { fileName: 'AAA335AAA', file: await fs.readFile('./file/AAA335AAA') },
346    { fileName: 'AAA336AAA', file: await fs.readFile('./file/AAA336AAA') },
347    { fileName: 'AAA337AAA', file: await fs.readFile('./file/AAA337AAA') },
348    { fileName: 'AAA338AAA', file: await fs.readFile('./file/AAA338AAA') },
349    { fileName: 'AAA339AAA', file: await fs.readFile('./file/AAA339AAA') },
350    { fileName: 'AAA340AAA', file: await fs.readFile('./file/AAA340AAA') },
351    { fileName: 'AAA341AAA', file: await fs.readFile('./file/AAA341AAA') },
352    { fileName: 'AAA342AAA', file: await fs.readFile('./file/AAA342AAA') },
353    { fileName: 'AAA343AAA', file: await fs.readFile('./file/AAA343AAA') },
354    { fileName: 'AAA344AAA', file: await fs.readFile('./file/AAA344AAA') },
355    { fileName: 'AAA345AAA', file: await fs.readFile('./file/AAA345AAA') },
356    { fileName: 'AAA346AAA', file: await fs.readFile('./file/AAA346AAA') },
357    { fileName: 'AAA347AAA', file: await fs.readFile('./file/AAA347AAA') },
358    { fileName: 'AAA348AAA', file: await fs.readFile('./file/AAA348AAA') },
359    { fileName: 'AAA349AAA', file: await fs.readFile('./file/AAA349AAA') },
360    { fileName: 'AAA350AAA', file: await fs.readFile('./file/AAA350AAA') },
361    { fileName: 'AAA351AAA', file: await fs.readFile('./file/AAA351AAA') },
362    { fileName: 'AAA352AAA', file: await fs.readFile('./file/AAA352AAA') },
363    { fileName: 'AAA353AAA', file: await fs.readFile('./file/AAA353AAA') },
364    { fileName: 'AAA354AAA', file: await fs.readFile('./file/AAA354AAA') },
365    { fileName: 'AAA355AAA', file: await fs.readFile('./file/AAA355AAA') },
366    { fileName: 'AAA356AAA', file: await fs.readFile('./file/AAA356AAA') },
367    { fileName: 'AAA357AAA', file: await fs.readFile('./file/AAA357AAA') },
368    { fileName: 'AAA358AAA', file: await fs.readFile('./file/AAA358AAA') },
369    { fileName: 'AAA359AAA', file: await fs.readFile('./file/AAA359AAA') },
370    { fileName: 'AAA360AAA', file: await fs.readFile('./file/AAA360AAA') },
371    { fileName: 'AAA361AAA', file: await fs.readFile('./file/AAA361AAA') },
372    { fileName: 'AAA362AAA', file: await fs.readFile('./file/AAA362AAA') },
373    { fileName: 'AAA363AAA', file: await fs.readFile('./file/AAA363AAA') },
374    { fileName: 'AAA364AAA', file: await fs.readFile('./file/AAA364AAA') },
375    { fileName: 'AAA365AAA', file: await fs.readFile('./file/AAA365AAA') },
376    { fileName: 'AAA366AAA', file: await fs.readFile('./file/AAA366AAA') },
377    { fileName: 'AAA367AAA', file: await fs.readFile('./file/AAA367AAA') },
378    { fileName: 'AAA368AAA', file: await fs.readFile('./file/AAA368AAA') },
379    { fileName: 'AAA369AAA', file: await fs.readFile('./file/AAA369AAA') },
380    { fileName: 'AAA370AAA', file: await fs.readFile('./file/AAA370AAA') },
381    { fileName: 'AAA371AAA', file: await fs.readFile('./file/AAA371AAA') },
382    { fileName: 'AAA372AAA', file: await fs.readFile('./file/AAA372AAA') },
383    { fileName: 'AAA373AAA', file: await fs.readFile('./file/AAA373AAA') },
384    { fileName: 'AAA374AAA', file: await fs.readFile('./file/AAA374AAA') },
385    { fileName: 'AAA375AAA', file: await fs.readFile('./file/AAA375AAA') },
386    { fileName: 'AAA376AAA', file: await fs.readFile('./file/AAA376AAA') },
387    { fileName: 'AAA377AAA', file: await fs.readFile('./file/AAA377AAA') },
388    { fileName: 'AAA378AAA', file: await fs.readFile('./file/AAA378AAA') },
389    { fileName: 'AAA379AAA', file: await fs.readFile('./file/AAA379AAA') },
390    { fileName: 'AAA380AAA', file: await fs.readFile('./file/AAA380AAA') },
391    { fileName: 'AAA381AAA', file: await fs.readFile('./file/AAA381AAA') },
392    { fileName: 'AAA382AAA', file: await fs.readFile('./file/AAA382AAA') },
393    { fileName: 'AAA383AAA', file: await fs.readFile('./file/AAA383AAA') },
394    { fileName: 'AAA384AAA', file: await fs.readFile('./file/AAA384AAA') },
395    { fileName: 'AAA385AAA', file: await fs.readFile('./file/AAA385AAA') },
396    { fileName: 'AAA386AAA', file: await fs.readFile('./file/AAA386AAA') },
397    { fileName: 'AAA387AAA', file: await fs.readFile('./file/AAA387AAA') },
398    { fileName: 'AAA388AAA', file: await fs.readFile('./file/AAA388AAA') },
399    { fileName: 'AAA389AAA', file: await fs.readFile('./file/AAA389AAA') },
400    { fileName: 'AAA390AAA', file: await fs.readFile('./file/AAA390AAA') },
401    { fileName: 'AAA391AAA', file: await fs.readFile('./file/AAA391AAA') },
402    { fileName: 'AAA392AAA', file: await fs.readFile('./file/AAA392AAA') },
403    { fileName: 'AAA393AAA', file: await fs.readFile('./file/AAA393AAA') },
404    { fileName: 'AAA394AAA', file: await fs.readFile('./file/AAA394AAA') },
405    { fileName: 'AAA395AAA', file: await fs.readFile('./file/AAA395AAA') },
406    { fileName: 'AAA396AAA', file: await fs.readFile('./file/AAA396AAA') },
407    { fileName: 'AAA397AAA', file: await fs.readFile('./file/AAA397AAA') },
408    { fileName: 'AAA398AAA', file: await fs.readFile('./file/AAA398AAA') },
409    { fileName: 'AAA399AAA', file: await fs.readFile('./file/AAA399AAA') },
410    { fileName: 'AAA400AAA', file: await fs.readFile('./file/AAA400AAA') },
411    { fileName: 'AAA401AAA', file: await fs.readFile('./file/AAA401AAA') },
412    { fileName: 'AAA402AAA', file: await fs.readFile('./file/AAA402AAA') },
413    { fileName: 'AAA403AAA', file: await fs.readFile('./file/AAA403AAA') },
414    { fileName: 'AAA404AAA', file: await fs.readFile('./file/AAA404AAA') },
415    { fileName: 'AAA405AAA', file: await fs.readFile('./file/AAA405AAA') },
416    { fileName: 'AAA406AAA', file: await fs.readFile('./file/AAA406AAA') },
417    { fileName: 'AAA407AAA', file: await fs.readFile('./file/AAA407AAA') },
418    { fileName: 'AAA408AAA', file: await fs.readFile('./file/AAA408AAA') },
419    { fileName: 'AAA409AAA', file: await fs.readFile('./file/AAA409AAA') },
420    { fileName: 'AAA410AAA', file: await fs.readFile('./file/AAA410AAA') },
421    { fileName: 'AAA411AAA', file: await fs.readFile('./file/AAA411AAA') },
422    { fileName: 'AAA412AAA', file: await fs.readFile('./file/AAA412AAA') },
423    { fileName: 'AAA413AAA', file: await fs.readFile('./file/AAA413AAA') },
424    { fileName: 'AAA414AAA', file: await fs.readFile('./file/AAA414AAA') },
425    { fileName: 'AAA415AAA', file: await fs.readFile('./file/AAA415AAA') },
426    { fileName: 'AAA416AAA', file: await fs.readFile('./file/AAA416AAA') },
427    { fileName: 'AAA417AAA', file: await fs.readFile('./file/AAA417AAA') },
428    { fileName: 'AAA418AAA', file: await fs.readFile('./file/AAA418AAA') },
429    { fileName: 'AAA419AAA', file: await fs.readFile('./file/AAA419AAA') },
430    { fileName: 'AAA420AAA', file: await fs.readFile('./file/AAA420AAA') },
431    { fileName: 'AAA421AAA', file: await fs.readFile('./file/AAA421AAA') },
432    { fileName: 'AAA422AAA', file: await fs.readFile('./file/AAA422AAA') },
433    { fileName: 'AAA423AAA', file: await fs.readFile('./file/AAA423AAA') },
434    { fileName: 'AAA424AAA', file: await fs.readFile('./file/AAA424AAA') },
435    { fileName: 'AAA425AAA', file: await fs.readFile('./file/AAA425AAA') },
436    { fileName: 'AAA426AAA', file: await fs.readFile('./file/AAA426AAA') },
437    { fileName: 'AAA427AAA', file: await fs.readFile('./file/AAA427AAA') },
438    { fileName: 'AAA428AAA', file: await fs.readFile('./file/AAA428AAA') },
439    { fileName: 'AAA429AAA', file: await fs.readFile('./file/AAA429AAA') },
440    { fileName: 'AAA430AAA', file: await fs.readFile('./file/AAA430AAA') },
441    { fileName: 'AAA431AAA', file: await fs.readFile('./file/AAA431AAA') },
442    { fileName: 'AAA432AAA', file: await fs.readFile('./file/AAA432AAA') },
443    { fileName: 'AAA433AAA', file: await fs.readFile('./file/AAA433AAA') },
444    { fileName: 'AAA434AAA', file: await fs.readFile('./file/AAA434AAA') },
445    { fileName: 'AAA435AAA', file: await fs.readFile('./file/AAA435AAA') },
446    { fileName: 'AAA436AAA', file: await fs.readFile('./file/AAA436AAA') },
447    { fileName: 'AAA437AAA', file: await fs.readFile('./file/AAA437AAA') },
448    { fileName: 'AAA438AAA', file: await fs.readFile('./file/AAA438AAA') },
449    { fileName: 'AAA439AAA', file: await fs.readFile('./file/AAA439AAA') },
450    { fileName: 'AAA440AAA', file: await fs.readFile('./file/AAA440AAA') },
451    { fileName: 'AAA441AAA', file: await fs.readFile('./file/AAA441AAA') },
452    { fileName: 'AAA442AAA', file: await fs.readFile('./file/AAA442AAA') },
453    { fileName: 'AAA443AAA', file: await fs.readFile('./file/AAA443AAA') },
454    { fileName: 'AAA444AAA', file: await fs.readFile('./file/AAA444AAA') },
455    { fileName: 'AAA445AAA', file: await fs.readFile('./file/AAA445AAA') },
456    { fileName: 'AAA446AAA', file: await fs.readFile('./file/AAA446AAA') },
457    { fileName: 'AAA447AAA', file: await fs.readFile('./file/AAA447AAA') },
458    { fileName: 'AAA448AAA', file: await fs.readFile('./file/AAA448AAA') },
459    { fileName: 'AAA449AAA', file: await fs.readFile('./file/AAA449AAA') },
460    { fileName: 'AAA450AAA', file: await fs.readFile('./file/AAA450AAA') },
461    { fileName: 'AAA451AAA', file: await fs.readFile('./file/AAA451AAA') },
462    { fileName: 'AAA452AAA', file: await fs.readFile('./file/AAA452AAA') },
463    { fileName: 'AAA453AAA', file: await fs.readFile('./file/AAA453AAA') },
464    { fileName: 'AAA454AAA', file: await fs.readFile('./file/AAA454AAA') },
465    { fileName: 'AAA455AAA', file: await fs.readFile('./file/AAA455AAA') },
466    { fileName: 'AAA456AAA', file: await fs.readFile('./file/AAA456AAA') },
467    { fileName: 'AAA457AAA', file: await fs.readFile('./file/AAA457AAA') },
468    { fileName: 'AAA458AAA', file: await fs.readFile('./file/AAA458AAA') },
469    { fileName: 'AAA459AAA', file: await fs.readFile('./file/AAA459AAA') },
470    { fileName: 'AAA460AAA', file: await fs.readFile('./file/AAA460AAA') },
471    { fileName: 'AAA461AAA', file: await fs.readFile('./file/AAA461AAA') },
472    { fileName: 'AAA462AAA', file: await fs.readFile('./file/AAA462AAA') },
473    { fileName: 'AAA463AAA', file: await fs.readFile('./file/AAA463AAA') },
474    { fileName: 'AAA464AAA', file: await fs.readFile('./file/AAA464AAA') },
475    { fileName: 'AAA465AAA', file: await fs.readFile('./file/AAA465AAA') },
476    { fileName: 'AAA466AAA', file: await fs.readFile('./file/AAA466AAA') },
477    { fileName: 'AAA467AAA', file: await fs.readFile('./file/AAA467AAA') },
478    { fileName: 'AAA468AAA', file: await fs.readFile('./file/AAA468AAA') },
479    { fileName: 'AAA469AAA', file: await fs.readFile('./file/AAA469AAA') },
480    { fileName: 'AAA470AAA', file: await fs.readFile('./file/AAA470AAA') },
481    { fileName: 'AAA471AAA', file: await fs.readFile('./file/AAA471AAA') },
482    { fileName: 'AAA472AAA', file: await fs.readFile('./file/AAA472AAA') },
483    { fileName: 'AAA473AAA', file: await fs.readFile('./file/AAA473AAA') },
484    { fileName: 'AAA474AAA', file: await fs.readFile('./file/AAA474AAA') },
485    { fileName: 'AAA475AAA', file: await fs.readFile('./file/AAA475AAA') },
486    { fileName: 'AAA476AAA', file: await fs.readFile('./file/AAA476AAA') },
487    { fileName: 'AAA477AAA', file: await fs.readFile('./file/AAA477AAA') },
488    { fileName: 'AAA478AAA', file: await fs.readFile('./file/AAA478AAA') },
489    { fileName: 'AAA479AAA', file: await fs.readFile('./file/AAA479AAA') },
490    { fileName: 'AAA480AAA', file: await fs.readFile('./file/AAA480AAA') },
491    { fileName: 'AAA481AAA', file: await fs.readFile('./file/AAA481AAA') },
492    { fileName: 'AAA482AAA', file: await fs.readFile('./file/AAA482AAA') },
493    { fileName: 'AAA483AAA', file: await fs.readFile('./file/AAA483AAA') },
494    { fileName: 'AAA484AAA', file: await fs.readFile('./file/AAA484AAA') },
495    { fileName: 'AAA485AAA', file: await fs.readFile('./file/AAA485AAA') },
496    { fileName: 'AAA486AAA', file: await fs.readFile('./file/AAA486AAA') },
497    { fileName: 'AAA487AAA', file: await fs.readFile('./file/AAA487AAA') },
498    { fileName: 'AAA488AAA', file: await fs.readFile('./file/AAA488AAA') },
499    { fileName: 'AAA489AAA', file: await fs.readFile('./file/AAA489AAA') },
500    { fileName: 'AAA490AAA', file: await fs.readFile('./file/AAA490AAA') },
501    { fileName: 'AAA491AAA', file: await fs.readFile('./file/AAA491AAA') },
502    { fileName: 'AAA492AAA', file: await fs.readFile('./file/AAA492AAA') },
503    { fileName: 'AAA493AAA', file: await fs.readFile('./file/AAA493AAA') },
504    { fileName: 'AAA494AAA', file: