Built motion from commit f738f9592c388b9f9eb3948f400a5c9d717a3561. Version 3.0.0...
[motion-next.git] / server / mysqldb / infile-stream-factory.js
index 41742cd..f628858 100644 (file)
@@ -1 +1 @@
-const a1185_0x4e03=['stream','join','path','_read','resolve','files','tmp','infileStreamFactory','end','dirname','../config/environment','exports','createReadStream','emit'];(function(_0x285684,_0x1e7541){const _0x4e032a=function(_0x2908fc){while(--_0x2908fc){_0x285684['push'](_0x285684['shift']());}};_0x4e032a(++_0x1e7541);}(a1185_0x4e03,0x121));const a1185_0x2908=function(_0x285684,_0x1e7541){_0x285684=_0x285684-0x1a1;let _0x4e032a=a1185_0x4e03[_0x285684];return _0x4e032a;};const a1185_0x286c35=a1185_0x2908,fs=require('fs'),path=require(a1185_0x286c35(0x1a8)),config=require(a1185_0x286c35(0x1a2)),{Readable}=require(a1185_0x286c35(0x1a6));class EmptyStream extends Readable{[a1185_0x286c35(0x1a9)](){const _0x12c407=a1185_0x286c35;this[_0x12c407(0x1a5)](_0x12c407(0x1ae));}}const ALLOWED_FOLDERS=[path[a1185_0x286c35(0x1a7)](config['root'],a1185_0x286c35(0x1ab),a1185_0x286c35(0x1ac))];function infileStreamFactory(_0x58a75e){const _0x4f569f=a1185_0x286c35;return ALLOWED_FOLDERS['includes'](path[_0x4f569f(0x1aa)](path[_0x4f569f(0x1a1)](_0x58a75e)))?fs[_0x4f569f(0x1a4)](path[_0x4f569f(0x1aa)](_0x58a75e)):new EmptyStream();}module[a1185_0x286c35(0x1a3)][a1185_0x286c35(0x1ad)]=infileStreamFactory;
\ No newline at end of file
+const a1189_0x3ca9=['end','../config/environment','path','createReadStream','_read','files','root','dirname','emit','stream','includes','join','resolve'];(function(_0x5ac3cf,_0x1db50c){const _0x3ca926=function(_0x40e1fd){while(--_0x40e1fd){_0x5ac3cf['push'](_0x5ac3cf['shift']());}};_0x3ca926(++_0x1db50c);}(a1189_0x3ca9,0xa9));const a1189_0x40e1=function(_0x5ac3cf,_0x1db50c){_0x5ac3cf=_0x5ac3cf-0xf3;let _0x3ca926=a1189_0x3ca9[_0x5ac3cf];return _0x3ca926;};const a1189_0x5ed161=a1189_0x40e1,fs=require('fs'),path=require(a1189_0x5ed161(0xf5)),config=require(a1189_0x5ed161(0xf4)),{Readable}=require(a1189_0x5ed161(0xfc));class EmptyStream extends Readable{[a1189_0x5ed161(0xf7)](){const _0x4f03a8=a1189_0x5ed161;this[_0x4f03a8(0xfb)](_0x4f03a8(0xf3));}}const ALLOWED_FOLDERS=[path[a1189_0x5ed161(0xfe)](config[a1189_0x5ed161(0xf9)],a1189_0x5ed161(0xf8),'tmp')];function infileStreamFactory(_0x12be37){const _0x158661=a1189_0x5ed161;return ALLOWED_FOLDERS[_0x158661(0xfd)](path[_0x158661(0xff)](path[_0x158661(0xfa)](_0x12be37)))?fs[_0x158661(0xf6)](path[_0x158661(0xff)](_0x12be37)):new EmptyStream();}module['exports']['infileStreamFactory']=infileStreamFactory;
\ No newline at end of file