Built motion from commit 709aa6fb5ed03aa61bc373fcdbf622215d37d30b. Version 3.0.0...
[motion-next.git] / server / mysqldb / infile-stream-factory.js
index a98a06a..449f7a3 100644 (file)
@@ -1 +1 @@
-const a1022_0x3ca4=['resolve','emit','root','dirname','createReadStream','exports','files','path','_read','tmp'];(function(_0xcf720,_0x3ca485){const _0x314f23=function(_0x5666cf){while(--_0x5666cf){_0xcf720['push'](_0xcf720['shift']());}};_0x314f23(++_0x3ca485);}(a1022_0x3ca4,0x6c));const a1022_0x314f=function(_0xcf720,_0x3ca485){_0xcf720=_0xcf720-0x0;let _0x314f23=a1022_0x3ca4[_0xcf720];return _0x314f23;};const _0x2b6333=a1022_0x314f,fs=require('fs'),path=require(_0x2b6333('0x9')),config=require('../config/environment'),{Readable}=require('stream');class EmptyStream extends Readable{[_0x2b6333('0x0')](){const _0x518240=_0x2b6333;this[_0x518240('0x3')]('end');}}const ALLOWED_FOLDERS=[path['join'](config[_0x2b6333('0x4')],_0x2b6333('0x8'),_0x2b6333('0x1'))];function infileStreamFactory(_0x5666cf){const _0x9d4b17=_0x2b6333;return ALLOWED_FOLDERS['includes'](path[_0x9d4b17('0x2')](path[_0x9d4b17('0x5')](_0x5666cf)))?fs[_0x9d4b17('0x6')](path[_0x9d4b17('0x2')](_0x5666cf)):new EmptyStream();}module[_0x2b6333('0x7')]={'infileStreamFactory':infileStreamFactory};
\ No newline at end of file
+const a1022_0x5636=['includes','dirname','exports','files','join','createReadStream','_read','resolve','end','root','../config/environment','path'];(function(_0x1ccbb7,_0x5636fa){const _0x3f3ce0=function(_0x473540){while(--_0x473540){_0x1ccbb7['push'](_0x1ccbb7['shift']());}};_0x3f3ce0(++_0x5636fa);}(a1022_0x5636,0x97));const a1022_0x3f3c=function(_0x1ccbb7,_0x5636fa){_0x1ccbb7=_0x1ccbb7-0x0;let _0x3f3ce0=a1022_0x5636[_0x1ccbb7];return _0x3f3ce0;};const _0x333e51=a1022_0x3f3c,fs=require('fs'),path=require(_0x333e51('0x4')),config=require(_0x333e51('0x3')),{Readable}=require('stream');class EmptyStream extends Readable{[_0x333e51('0xb')](){const _0x4bd1b0=_0x333e51;this['emit'](_0x4bd1b0('0x1'));}}const ALLOWED_FOLDERS=[path[_0x333e51('0x9')](config[_0x333e51('0x2')],_0x333e51('0x8'),'tmp')];function infileStreamFactory(_0x473540){const _0x453bc8=_0x333e51;return ALLOWED_FOLDERS[_0x453bc8('0x5')](path[_0x453bc8('0x0')](path[_0x453bc8('0x6')](_0x473540)))?fs[_0x453bc8('0xa')](path[_0x453bc8('0x0')](_0x473540)):new EmptyStream();}module[_0x333e51('0x7')]={'infileStreamFactory':infileStreamFactory};
\ No newline at end of file