@flosum/storages 1.4.4 → 1.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/copy/aws-s3-copy.js +1 -1
- package/dist/copy/base-copy.js +1 -1
- package/dist/copy/index.js +1 -1
- package/dist/copy/local-copy.js +1 -1
- package/dist/credentials/aws-s3-credentials.js +1 -1
- package/dist/credentials/azure-credentials.js +1 -1
- package/dist/credentials/base-credentials.js +1 -1
- package/dist/credentials/google-cloud-credentials-validator.js +1 -1
- package/dist/credentials/google-cloud-credentials.js +1 -1
- package/dist/credentials/index.js +1 -1
- package/dist/credentials/local-credentials.js +1 -1
- package/dist/delete/aws-s3-delete.js +1 -1
- package/dist/delete/azure-delete.js +1 -1
- package/dist/delete/base-delete.js +1 -1
- package/dist/delete/google-cloud-delete.js +1 -1
- package/dist/delete/index.js +1 -1
- package/dist/delete/local-delete.js +1 -1
- package/dist/deploy/aws-s3-deploy.js +1 -1
- package/dist/deploy/azure-deploy.js +1 -1
- package/dist/deploy/base-deploy.js +1 -1
- package/dist/deploy/google-cloud-deploy.js +1 -1
- package/dist/deploy/index.js +1 -1
- package/dist/deploy/local-deploy.js +1 -1
- package/dist/factory.js +1 -1
- package/dist/file-size-retriever/aws-s3-file-size-retriever.js +1 -1
- package/dist/file-size-retriever/azure-file-size-retriever.js +1 -1
- package/dist/file-size-retriever/base-file-size-retriever.js +1 -1
- package/dist/file-size-retriever/google-cloud-file-size-retriever.js +1 -1
- package/dist/file-size-retriever/index.js +1 -1
- package/dist/file-size-retriever/local-size-retriever.js +1 -1
- package/dist/index.js +1 -1
- package/dist/init.js +1 -1
- package/dist/instances/aws-s3.storage-instance.js +1 -1
- package/dist/instances/base.storage-instance.js +1 -1
- package/dist/instances/index.js +1 -1
- package/dist/instances/local.storage-instance.js +1 -1
- package/dist/retrieve/aws-s3-import-helper.js +1 -1
- package/dist/retrieve/aws-s3-retrieve.js +1 -1
- package/dist/retrieve/azure-retrieve.js +1 -1
- package/dist/retrieve/base-retrieve.js +1 -1
- package/dist/retrieve/google-cloud-retrieve.js +1 -1
- package/dist/retrieve/helpers/aws-s3-helper.js +1 -1
- package/dist/retrieve/helpers/azure-helper.js +1 -1
- package/dist/retrieve/helpers/base-helper.js +1 -1
- package/dist/retrieve/helpers/google-cloud-helper.js +1 -1
- package/dist/retrieve/helpers/local-helper.js +1 -1
- package/dist/retrieve/index.js +1 -1
- package/dist/retrieve/local-retrieve.js +1 -1
- package/dist/types/aws.types.js +1 -1
- package/dist/types/azure.types.js +1 -1
- package/dist/types/google-cloud.types.js +1 -1
- package/dist/types/index.js +1 -1
- package/dist/types/internal.types.js +1 -1
- package/dist/types/retrieve-status.enum.js +1 -1
- package/dist/types/storage-type.enum.js +1 -1
- package/dist/utils/aws-s3.utils.js +1 -1
- package/dist/utils/azure.utils.js +1 -1
- package/dist/utils/cache.utils.js +1 -1
- package/dist/utils/google-cloud.utils.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x9c48e6=_0xd3ce;(function(_0x4d412b,_0x4e7952){const _0xc1a0e1=_0xd3ce,_0x461149=_0x4d412b();while(!![]){try{const _0x45a3d3=parseInt(_0xc1a0e1(0x124))/0x1+-parseInt(_0xc1a0e1(0x126))/0x2+parseInt(_0xc1a0e1(0x12b))/0x3*(parseInt(_0xc1a0e1(0x123))/0x4)+parseInt(_0xc1a0e1(0x120))/0x5*(parseInt(_0xc1a0e1(0x12a))/0x6)+parseInt(_0xc1a0e1(0x125))/0x7+parseInt(_0xc1a0e1(0x129))/0x8+parseInt(_0xc1a0e1(0x121))/0x9*(-parseInt(_0xc1a0e1(0x12d))/0xa);if(_0x45a3d3===_0x4e7952)break;else _0x461149['push'](_0x461149['shift']());}catch(_0x5d3b86){_0x461149['push'](_0x461149['shift']());}}}(_0x15e1,0x78eab));Object['defineProperty'](exports,_0x9c48e6(0x12c),{'value':!![]}),exports[_0x9c48e6(0x11f)]=void 0x0;function _0x15e1(){const _0x4e8baa=['6495SEvKfe','__esModule','50Jwmvwn','getIsDone','credentials','BaseRetrieve','5TJVrGo','1757871lcuUrV','isDone','428QBeiDw','981367FpqYaK','1848364vqQKox','1526878JVHsGC','Uninitialized','path','1778848thAzbv','3215274BkvhYP'];_0x15e1=function(){return _0x4e8baa;};return _0x15e1();}const retrieve_status_enum_1=require('../types/retrieve-status.enum');class BaseRetrieve{[_0x9c48e6(0x11d)](){const _0x3bc752=_0x9c48e6;return this[_0x3bc752(0x122)];}constructor(_0x3b2a06,_0x13ca9c){const _0x3ba6af=_0x9c48e6;this[_0x3ba6af(0x11e)]=_0x3b2a06,this[_0x3ba6af(0x128)]=_0x13ca9c,this[_0x3ba6af(0x122)]=![],this['status']=retrieve_status_enum_1['RetrieveStatus'][_0x3ba6af(0x127)];}}function _0xd3ce(_0x3bfc87,_0xccfb6){_0x3bfc87=_0x3bfc87-0x11d;const _0x15e1b2=_0x15e1();let _0xd3ce57=_0x15e1b2[_0x3bfc87];return _0xd3ce57;}exports['BaseRetrieve']=BaseRetrieve;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0xb20edf=_0x2e51;(function(_0xac8861,_0x14ace7){const _0x2036f0=_0x2e51,_0x98588=_0xac8861();while(!![]){try{const _0x27e979=-parseInt(_0x2036f0(0x105))/0x1*(-parseInt(_0x2036f0(0xfd))/0x2)+-parseInt(_0x2036f0(0x110))/0x3*(parseInt(_0x2036f0(0xf9))/0x4)+-parseInt(_0x2036f0(0x10f))/0x5*(parseInt(_0x2036f0(0x107))/0x6)+-parseInt(_0x2036f0(0x109))/0x7*(parseInt(_0x2036f0(0x11d))/0x8)+parseInt(_0x2036f0(0x103))/0x9+parseInt(_0x2036f0(0xf2))/0xa*(-parseInt(_0x2036f0(0x101))/0xb)+parseInt(_0x2036f0(0xfe))/0xc;if(_0x27e979===_0x14ace7)break;else _0x98588['push'](_0x98588['shift']());}catch(_0x24b40e){_0x98588['push'](_0x98588['shift']());}}}(_0xac73,0x2cc7b));var __awaiter=this&&this[_0xb20edf(0x104)]||function(_0x38910b,_0x6a0f0f,_0x1c6945,_0x2a9d1f){function _0x130cb1(_0x178cc6){return _0x178cc6 instanceof _0x1c6945?_0x178cc6:new _0x1c6945(function(_0x1f3b73){_0x1f3b73(_0x178cc6);});}return new(_0x1c6945||(_0x1c6945=Promise))(function(_0x5a6538,_0x3543f6){const _0x2b4015=_0x2e51;function _0x357d92(_0x54d12c){const _0x1ac46=_0x2e51;try{_0x44e76f(_0x2a9d1f[_0x1ac46(0xf4)](_0x54d12c));}catch(_0x262bb8){_0x3543f6(_0x262bb8);}}function _0x2d3372(_0xfac88a){const _0x539e89=_0x2e51;try{_0x44e76f(_0x2a9d1f[_0x539e89(0xf6)](_0xfac88a));}catch(_0x14374d){_0x3543f6(_0x14374d);}}function _0x44e76f(_0x1d4872){const _0x380964=_0x2e51;_0x1d4872[_0x380964(0xf1)]?_0x5a6538(_0x1d4872[_0x380964(0x106)]):_0x130cb1(_0x1d4872[_0x380964(0x106)])[_0x380964(0xf3)](_0x357d92,_0x2d3372);}_0x44e76f((_0x2a9d1f=_0x2a9d1f['apply'](_0x38910b,_0x6a0f0f||[]))[_0x2b4015(0xf4)]());});},__importDefault=this&&this['__importDefault']||function(_0x3aee70){const _0x1c864f=_0xb20edf;return _0x3aee70&&_0x3aee70[_0x1c864f(0x11a)]?_0x3aee70:{'default':_0x3aee70};};function _0xac73(){const _0x9d59b1=['115UiBpOL','33vnRajK','setTimeout','bucket','split','../types/retrieve-status.enum','Cannot\x20execute\x20when\x20retrieve\x20in\x20progress.','cachePath','defineProperty','RetrieveStatus','pop','__esModule','path','posix','18496YhYvxI','Exception','GoogleCloudUtils','CacheUtils','createBucket','file','status','join','credentials','done','10RraITs','then','next','sep','throw','errorMessage','GoogleCloudRetrieve','5172TGQgGo','isDone','default','fetchFileBody','13770iWZMHF','3589752ylnxXL','waitUntilRetrieveDone','execute','2344661kNadva','Uninitialized','2423583DdWLME','__awaiter','51vKsfwX','value','59142YMawGV','No\x20files\x20left\x20to\x20execute.','854rHBXIv','Completed','filesPaths','RETRIEVE_STATUS_CHECK_TIMEOUT','InProgress','length'];_0xac73=function(){return _0x9d59b1;};return _0xac73();}function _0x2e51(_0x3c9ee0,_0x390c10){_0x3c9ee0=_0x3c9ee0-0xf0;const _0xac738e=_0xac73();let _0x2e5105=_0xac738e[_0x3c9ee0];return _0x2e5105;}Object[_0xb20edf(0x117)](exports,_0xb20edf(0x11a),{'value':!![]}),exports[_0xb20edf(0xf8)]=void 0x0;const path_1=__importDefault(require(_0xb20edf(0x11b))),promises_1=require('timers/promises'),_1=require('./'),retrieve_status_enum_1=require(_0xb20edf(0x114)),google_cloud_utils_1=require('../utils/google-cloud.utils'),cache_utils_1=require('../utils/cache.utils');class GoogleCloudRetrieve extends _1['BaseRetrieve']{constructor(_0x598102,_0xe8840d,_0x19a001){const _0x3fbb4c=_0xb20edf,_0x890cea=_0xe8840d[_0x3fbb4c(0x113)](path_1[_0x3fbb4c(0xfb)]['sep'])[_0x3fbb4c(0x124)](path_1[_0x3fbb4c(0xfb)][_0x3fbb4c(0x11c)][_0x3fbb4c(0xf5)]);super(_0x598102,_0x890cea),this[_0x3fbb4c(0x116)]=_0x19a001,this[_0x3fbb4c(0x10c)]=0x3e8,this[_0x3fbb4c(0x10b)]=[],this[_0x3fbb4c(0x112)]=google_cloud_utils_1['GoogleCloudUtils'][_0x3fbb4c(0x121)](this[_0x3fbb4c(0xf0)]);}[_0xb20edf(0xff)](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x852ba1=_0x2e51;this[_0x852ba1(0x123)]===retrieve_status_enum_1[_0x852ba1(0x118)][_0x852ba1(0x102)]&&(this['filesPaths']=yield google_cloud_utils_1[_0x852ba1(0x11f)]['getFilesPaths'](this[_0x852ba1(0x11b)],this[_0x852ba1(0x112)]),this['status']=retrieve_status_enum_1[_0x852ba1(0x118)][_0x852ba1(0x10a)],yield this[_0x852ba1(0xff)]());switch(this[_0x852ba1(0x123)]){case retrieve_status_enum_1[_0x852ba1(0x118)][_0x852ba1(0x10d)]:yield(0x0,promises_1[_0x852ba1(0x111)])(this['RETRIEVE_STATUS_CHECK_TIMEOUT']),yield this[_0x852ba1(0xff)]();break;case retrieve_status_enum_1['RetrieveStatus'][_0x852ba1(0x11e)]:throw new Error(this[_0x852ba1(0xf7)]);default:break;}});}[_0xb20edf(0x100)](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x250db2=_0x2e51;if(this['status']===retrieve_status_enum_1[_0x250db2(0x118)][_0x250db2(0x10d)])throw new Error(_0x250db2(0x115));if(this[_0x250db2(0xfa)]||!this[_0x250db2(0x10b)][_0x250db2(0x10e)])throw new Error(_0x250db2(0x108));const _0x345f55=this[_0x250db2(0x10b)][_0x250db2(0x119)]();let _0x13cb72;return!this[_0x250db2(0x116)]?_0x13cb72=yield this[_0x250db2(0xfc)](_0x345f55):_0x13cb72=yield cache_utils_1[_0x250db2(0x120)]['createCacheFileStream'](yield this[_0x250db2(0xfc)](_0x345f55),this['cachePath']),this[_0x250db2(0xfa)]=!this['filesPaths'][_0x250db2(0x10e)],{'path':this[_0x250db2(0x11b)][_0x250db2(0x113)](path_1[_0x250db2(0xfb)][_0x250db2(0x11c)][_0x250db2(0xf5)])[_0x250db2(0x124)](path_1[_0x250db2(0xfb)][_0x250db2(0xf5)]),'content':_0x13cb72};});}[_0xb20edf(0xfc)](_0x43b9f3){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x58ed0d=_0x2e51;return this[_0x58ed0d(0x112)][_0x58ed0d(0x122)](_0x43b9f3)['createReadStream']();});}}exports['GoogleCloudRetrieve']=GoogleCloudRetrieve;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0xd1f7c6=_0x4c09;(function(_0x24ecf6,_0x1b40be){const _0x4f0a7b=_0x4c09,_0x476106=_0x24ecf6();while(!![]){try{const _0x11f5f7=parseInt(_0x4f0a7b(0x83))/0x1+-parseInt(_0x4f0a7b(0x7d))/0x2+-parseInt(_0x4f0a7b(0x8b))/0x3+parseInt(_0x4f0a7b(0x76))/0x4+parseInt(_0x4f0a7b(0x93))/0x5*(parseInt(_0x4f0a7b(0x8c))/0x6)+-parseInt(_0x4f0a7b(0x75))/0x7*(parseInt(_0x4f0a7b(0x80))/0x8)+parseInt(_0x4f0a7b(0x91))/0x9;if(_0x11f5f7===_0x1b40be)break;else _0x476106['push'](_0x476106['shift']());}catch(_0x27bf6d){_0x476106['push'](_0x476106['shift']());}}}(_0x3147,0x34d5f));function _0x4c09(_0x226f0f,_0x36d248){_0x226f0f=_0x226f0f-0x75;const _0x3147a4=_0x3147();let _0x4c0966=_0x3147a4[_0x226f0f];return _0x4c0966;}var __awaiter=this&&this[_0xd1f7c6(0x88)]||function(_0x429df9,_0x19ef59,_0xa2d1f0,_0x4efc77){function _0x4fa297(_0x32494a){return _0x32494a instanceof _0xa2d1f0?_0x32494a:new _0xa2d1f0(function(_0x317646){_0x317646(_0x32494a);});}return new(_0xa2d1f0||(_0xa2d1f0=Promise))(function(_0x37e4ad,_0xc545ab){const _0x17e1ac=_0x4c09;function _0x1e6ada(_0x11f33d){const _0x519323=_0x4c09;try{_0x211474(_0x4efc77[_0x519323(0x97)](_0x11f33d));}catch(_0x2588f8){_0xc545ab(_0x2588f8);}}function _0x5d4c3d(_0x15120d){try{_0x211474(_0x4efc77['throw'](_0x15120d));}catch(_0x18caaa){_0xc545ab(_0x18caaa);}}function _0x211474(_0x215b73){const _0x563973=_0x4c09;_0x215b73[_0x563973(0x95)]?_0x37e4ad(_0x215b73[_0x563973(0x87)]):_0x4fa297(_0x215b73[_0x563973(0x87)])[_0x563973(0x81)](_0x1e6ada,_0x5d4c3d);}_0x211474((_0x4efc77=_0x4efc77['apply'](_0x429df9,_0x19ef59||[]))[_0x17e1ac(0x97)]());});},__importDefault=this&&this[_0xd1f7c6(0x94)]||function(_0x6d2fe4){return _0x6d2fe4&&_0x6d2fe4['__esModule']?_0x6d2fe4:{'default':_0x6d2fe4};};Object[_0xd1f7c6(0x79)](exports,_0xd1f7c6(0x8e),{'value':!![]}),exports[_0xd1f7c6(0x8f)]=void 0x0;const base_helper_1=require(_0xd1f7c6(0x7c)),path_1=__importDefault(require(_0xd1f7c6(0x7a))),client_s3_1=require('@aws-sdk/client-s3'),unzipper_1=__importDefault(require(_0xd1f7c6(0x90))),aws_s3_utils_1=require(_0xd1f7c6(0x92));class AwsS3Helper extends base_helper_1[_0xd1f7c6(0x82)]{constructor(_0x7e2521,_0x2f5685){const _0x4624dd=_0xd1f7c6;super(_0x7e2521),this[_0x4624dd(0x7e)]=_0x2f5685[_0x4624dd(0x7e)],this['s3Client']=aws_s3_utils_1['AwsS3Utils']['createS3Client'](_0x2f5685);}['getZipFileMeta'](_0x1957c8){const _0xc3710=_0xd1f7c6;return unzipper_1[_0xc3710(0x7b)][_0xc3710(0x85)][_0xc3710(0x86)](this[_0xc3710(0x8d)],{'Bucket':this[_0xc3710(0x7e)],'Key':_0x1957c8});}['ls'](_0x4d8b1d){return __awaiter(this,void 0x0,void 0x0,function*(){const _0xbef59e=_0x4c09;var _0x50161d;const {prefix:_0x5f59e1,delimiter:_0x2af2d9}=_0x4d8b1d!==null&&_0x4d8b1d!==void 0x0?_0x4d8b1d:{},_0x395f1c=path_1['default'][_0xbef59e(0x89)](this[_0xbef59e(0x96)],_0x5f59e1!==null&&_0x5f59e1!==void 0x0?_0x5f59e1:''),_0x4791b3=new client_s3_1['ListObjectsCommand']({'Prefix':_0x395f1c,'Bucket':this[_0xbef59e(0x7e)],'Delimiter':_0x2af2d9}),_0x41d327=yield this[_0xbef59e(0x8d)][_0xbef59e(0x84)](_0x4791b3);if(!((_0x50161d=_0x41d327[_0xbef59e(0x77)])===null||_0x50161d===void 0x0?void 0x0:_0x50161d[_0xbef59e(0x78)]))return[];const _0x55672d=[];for(const {Key:_0x5cd008}of _0x41d327[_0xbef59e(0x77)]){_0x5cd008[_0xbef59e(0x7f)](_0xbef59e(0x8a))&&_0x55672d['push'](_0x5cd008);}return _0x55672d;});}}exports[_0xd1f7c6(0x8f)]=AwsS3Helper;function _0x3147(){const _0x3bf5f4=['Open','s3_v3','value','__awaiter','join','.zip','14607RuVpOu','246zPNVVD','s3Client','__esModule','AwsS3Helper','unzipper','2836512aLgmUH','../../utils/aws-s3.utils','18010iIbfwO','__importDefault','done','sourcePath','next','2784880fKGDxt','650996YXmHiF','Contents','length','defineProperty','path','default','./base-helper','795288gPKyuz','bucketName','endsWith','8tLoGWw','then','BaseHelper','391169HNvfAP','send'];_0x3147=function(){return _0x3bf5f4;};return _0x3147();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x2f37be=_0x16ff;(function(_0x552b56,_0x123719){const _0x4b0c3f=_0x16ff,_0x117e59=_0x552b56();while(!![]){try{const _0x19bdad=-parseInt(_0x4b0c3f(0x125))/0x1*(-parseInt(_0x4b0c3f(0x116))/0x2)+-parseInt(_0x4b0c3f(0x110))/0x3+-parseInt(_0x4b0c3f(0x107))/0x4*(-parseInt(_0x4b0c3f(0xfe))/0x5)+-parseInt(_0x4b0c3f(0x104))/0x6+parseInt(_0x4b0c3f(0x11f))/0x7*(parseInt(_0x4b0c3f(0x127))/0x8)+-parseInt(_0x4b0c3f(0x124))/0x9+parseInt(_0x4b0c3f(0x11e))/0xa;if(_0x19bdad===_0x123719)break;else _0x117e59['push'](_0x117e59['shift']());}catch(_0x276d95){_0x117e59['push'](_0x117e59['shift']());}}}(_0x48be,0x74843));var __awaiter=this&&this['__awaiter']||function(_0x4cd4f6,_0x5e7aed,_0x251bef,_0x1b2f11){function _0x4b5e24(_0x1113a2){return _0x1113a2 instanceof _0x251bef?_0x1113a2:new _0x251bef(function(_0x383cd0){_0x383cd0(_0x1113a2);});}return new(_0x251bef||(_0x251bef=Promise))(function(_0x37c745,_0x54e86d){const _0x327bfb=_0x16ff;function _0x235d2f(_0x5152fc){const _0x3608e1=_0x16ff;try{_0xde719b(_0x1b2f11[_0x3608e1(0x111)](_0x5152fc));}catch(_0x56a645){_0x54e86d(_0x56a645);}}function _0x33a171(_0x5dfdf9){const _0xc61cd0=_0x16ff;try{_0xde719b(_0x1b2f11[_0xc61cd0(0x101)](_0x5dfdf9));}catch(_0x5164bd){_0x54e86d(_0x5164bd);}}function _0xde719b(_0x2fb503){const _0x28c3f5=_0x16ff;_0x2fb503[_0x28c3f5(0xfd)]?_0x37c745(_0x2fb503[_0x28c3f5(0xff)]):_0x4b5e24(_0x2fb503[_0x28c3f5(0xff)])[_0x28c3f5(0x119)](_0x235d2f,_0x33a171);}_0xde719b((_0x1b2f11=_0x1b2f11['apply'](_0x4cd4f6,_0x5e7aed||[]))[_0x327bfb(0x111)]());});},__importDefault=this&&this[_0x2f37be(0x12a)]||function(_0x3ab06a){const _0x4eb6b7=_0x2f37be;return _0x3ab06a&&_0x3ab06a[_0x4eb6b7(0x126)]?_0x3ab06a:{'default':_0x3ab06a};};Object[_0x2f37be(0x122)](exports,_0x2f37be(0x126),{'value':!![]}),exports[_0x2f37be(0x100)]=void 0x0;const base_helper_1=require(_0x2f37be(0x118)),unzipper_1=require('unzipper'),storage_blob_1=require(_0x2f37be(0x114)),azure_utils_1=require('../../utils/azure.utils'),stream_1=require(_0x2f37be(0x108)),https_1=__importDefault(require(_0x2f37be(0x11a))),https_proxy_agent_1=require(_0x2f37be(0x112));function _0x48be(){const _0x1c5807=['get','2062734bdvSMa','next','https-proxy-agent','HttpsProxyAgent','@azure/storage-blob','sourcePath','4dPYCZx','HTTP\x20','./base-helper','then','https','getAzureBlobsPaths','headers','error','8902130qrWgTo','7hXUCMa','BaseHelper','containerClient','defineProperty','destroy','3955410nkzFpO','323739fxXTam','__esModule','1204768mATEcC','parse','emit','__importDefault','pipe','abort','done','11175CGaXkC','value','AzureHelper','throw','BlobSASPermissions','AzureUtils','3829488lFudOj','credentials','default','992NawOhV','stream','statusCode','getBlockBlobClient','url','generateSasUrl','location','getZipFileMeta'];_0x48be=function(){return _0x1c5807;};return _0x48be();}function _0x16ff(_0x21e27f,_0x55b2b9){_0x21e27f=_0x21e27f-0xfc;const _0x48be7b=_0x48be();let _0x16ff24=_0x48be7b[_0x21e27f];return _0x16ff24;}function httpsRequest({url:_0x307363,headers:headers={}}){const _0x23489b=_0x2f37be,_0x2a4b08=new stream_1['PassThrough'](),_0x537f6b=process.env.HTTPS_PROXY||process.env.HTTP_PROXY,_0x430be1=_0x537f6b?new https_proxy_agent_1[(_0x23489b(0x113))](_0x537f6b):undefined,_0x2f446d=https_1[_0x23489b(0x106)][_0x23489b(0x10f)](_0x307363,{'headers':headers,'agent':_0x430be1},_0x5891f4=>{const _0x12f714=_0x23489b;if(_0x5891f4[_0x12f714(0x109)]>=0x12c&&_0x5891f4['statusCode']<0x190&&_0x5891f4[_0x12f714(0x11c)][_0x12f714(0x10d)])return httpsRequest({'url':_0x5891f4[_0x12f714(0x11c)][_0x12f714(0x10d)],'headers':headers})['pipe'](_0x2a4b08);if(_0x5891f4[_0x12f714(0x109)]>=0x190){_0x2a4b08[_0x12f714(0x129)](_0x12f714(0x11d),new Error(_0x12f714(0x117)+_0x5891f4[_0x12f714(0x109)]+':\x20'+_0x5891f4['statusMessage']));return;}_0x2a4b08[_0x12f714(0x129)]('response',_0x5891f4),_0x5891f4[_0x12f714(0x12b)](_0x2a4b08);})['on']('error',_0x26124e=>_0x2a4b08[_0x23489b(0x129)]('error',_0x26124e));return _0x2a4b08[_0x23489b(0xfc)]=()=>{const _0x1c2d8f=_0x23489b;_0x2f446d['destroy'](),_0x2a4b08[_0x1c2d8f(0x123)]();},_0x2a4b08;}class AzureHelper extends base_helper_1[_0x2f37be(0x120)]{constructor(_0x374f7c,_0x4bb360){const _0x429e19=_0x2f37be;super(_0x4bb360),this[_0x429e19(0x105)]=_0x374f7c,this[_0x429e19(0x121)]=azure_utils_1[_0x429e19(0x103)]['createAzureBlobContainerClient'](this[_0x429e19(0x105)]);}[_0x2f37be(0x10e)](_0x1aa383){return __awaiter(this,void 0x0,void 0x0,function*(){const _0xa030ba=_0x16ff,_0x3f52dd=this[_0xa030ba(0x121)][_0xa030ba(0x10a)](_0x1aa383),_0x2ac182=yield _0x3f52dd[_0xa030ba(0x10c)]({'permissions':storage_blob_1[_0xa030ba(0x102)][_0xa030ba(0x128)]('r'),'expiresOn':new Date(Date['now']()+0x258*0x3e8)});return unzipper_1['Open'][_0xa030ba(0x10b)](httpsRequest,_0x2ac182);});}['ls'](){const _0x1461f2=_0x2f37be;return azure_utils_1['AzureUtils'][_0x1461f2(0x11b)](this[_0x1461f2(0x115)],this[_0x1461f2(0x121)]);}}exports[_0x2f37be(0x100)]=AzureHelper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x1995be=_0x46da;(function(_0x15cbfa,_0x2ca020){var _0x348150=_0x46da,_0x35bf78=_0x15cbfa();while(!![]){try{var _0x38adc3=parseInt(_0x348150(0x122))/0x1+-parseInt(_0x348150(0x129))/0x2+parseInt(_0x348150(0x125))/0x3+-parseInt(_0x348150(0x128))/0x4*(-parseInt(_0x348150(0x126))/0x5)+parseInt(_0x348150(0x11f))/0x6*(-parseInt(_0x348150(0x124))/0x7)+parseInt(_0x348150(0x120))/0x8*(parseInt(_0x348150(0x12a))/0x9)+parseInt(_0x348150(0x123))/0xa;if(_0x38adc3===_0x2ca020)break;else _0x35bf78['push'](_0x35bf78['shift']());}catch(_0x248292){_0x35bf78['push'](_0x35bf78['shift']());}}}(_0x521f,0xd6406));function _0x46da(_0xe3e8d4,_0x2f3a23){_0xe3e8d4=_0xe3e8d4-0x11f;var _0x521fb4=_0x521f();var _0x46dac3=_0x521fb4[_0xe3e8d4];return _0x46dac3;}Object[_0x1995be(0x12b)](exports,_0x1995be(0x127),{'value':!![]}),exports[_0x1995be(0x121)]=void 0x0;class BaseHelper{constructor(_0x5b6a3e){this['sourcePath']=_0x5b6a3e;}}exports[_0x1995be(0x121)]=BaseHelper;function _0x521f(){var _0xd60393=['12SSnOjG','3253292pEnPun','4239UwFPlr','defineProperty','5724924AXMapa','12856FOjcRy','BaseHelper','411257DvDkCO','9355610pdoBKT','7WwUpMi','3828636NgTisb','130745OXfwCk','__esModule'];_0x521f=function(){return _0xd60393;};return _0x521f();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x3108(){const _0x207f72=['bucket','then','destroy','6MSRxFP','defineProperty','301tFpPNE','5228JktHtz','location','default','pipe','getZipFileMeta','360qTRrfD','emit','GoogleCloudUtils','72138oZFTXc','getSignedUrl','headers','__esModule','__importDefault','358251abQJgi','2678288AQZQdi','__awaiter','143qbekTI','statusCode','unzipper','HTTP\x20','value','next','read','abort','get','https-proxy-agent','https','BaseHelper','259006cAdpxm','createBucket','done','now','error','336590MjislY','GoogleCloudHelper','../../utils/google-cloud.utils','HttpsProxyAgent','Open','PassThrough','statusMessage','file','credentials','532080PSbuSE','apply'];_0x3108=function(){return _0x207f72;};return _0x3108();}const _0x5b9215=_0x3f02;function _0x3f02(_0x48c314,_0xf8727b){_0x48c314=_0x48c314-0x108;const _0x31089f=_0x3108();let _0x3f0226=_0x31089f[_0x48c314];return _0x3f0226;}(function(_0x2a64a9,_0xcca23){const _0x27ae62=_0x3f02,_0x1e9ea1=_0x2a64a9();while(!![]){try{const _0x3bafc2=-parseInt(_0x27ae62(0x12b))/0x1+-parseInt(_0x27ae62(0x108))/0x2*(-parseInt(_0x27ae62(0x11b))/0x3)+-parseInt(_0x27ae62(0x11e))/0x4*(parseInt(_0x27ae62(0x123))/0x5)+-parseInt(_0x27ae62(0x126))/0x6*(-parseInt(_0x27ae62(0x11d))/0x7)+parseInt(_0x27ae62(0x12c))/0x8+parseInt(_0x27ae62(0x116))/0x9+-parseInt(_0x27ae62(0x10d))/0xa*(parseInt(_0x27ae62(0x12e))/0xb);if(_0x3bafc2===_0xcca23)break;else _0x1e9ea1['push'](_0x1e9ea1['shift']());}catch(_0x418eda){_0x1e9ea1['push'](_0x1e9ea1['shift']());}}}(_0x3108,0x445ab));var __awaiter=this&&this[_0x5b9215(0x12d)]||function(_0x1ad962,_0x34a089,_0x139259,_0x845e1b){function _0x30b313(_0x4998af){return _0x4998af instanceof _0x139259?_0x4998af:new _0x139259(function(_0x591e50){_0x591e50(_0x4998af);});}return new(_0x139259||(_0x139259=Promise))(function(_0x1a4f2a,_0x59aca4){const _0x595f81=_0x3f02;function _0x217230(_0x3aeae9){const _0x330e6f=_0x3f02;try{_0x3a8157(_0x845e1b[_0x330e6f(0x133)](_0x3aeae9));}catch(_0x4dd128){_0x59aca4(_0x4dd128);}}function _0x29bbaa(_0x351229){try{_0x3a8157(_0x845e1b['throw'](_0x351229));}catch(_0x2ddb1b){_0x59aca4(_0x2ddb1b);}}function _0x3a8157(_0x34ee6b){const _0x1a3ef1=_0x3f02;_0x34ee6b[_0x1a3ef1(0x10a)]?_0x1a4f2a(_0x34ee6b[_0x1a3ef1(0x132)]):_0x30b313(_0x34ee6b[_0x1a3ef1(0x132)])[_0x1a3ef1(0x119)](_0x217230,_0x29bbaa);}_0x3a8157((_0x845e1b=_0x845e1b[_0x595f81(0x117)](_0x1ad962,_0x34a089||[]))[_0x595f81(0x133)]());});},__importDefault=this&&this[_0x5b9215(0x12a)]||function(_0x1d0b11){const _0x32201b=_0x5b9215;return _0x1d0b11&&_0x1d0b11[_0x32201b(0x129)]?_0x1d0b11:{'default':_0x1d0b11};};Object[_0x5b9215(0x11c)](exports,_0x5b9215(0x129),{'value':!![]}),exports[_0x5b9215(0x10e)]=void 0x0;const base_helper_1=require('./base-helper'),unzipper_1=require(_0x5b9215(0x130)),google_cloud_utils_1=require(_0x5b9215(0x10f)),stream_1=require('stream'),https_1=__importDefault(require(_0x5b9215(0x138))),https_proxy_agent_1=require(_0x5b9215(0x137));function httpsRequest({url:_0x19f954,headers:headers={}}){const _0x35b903=_0x5b9215,_0x22330b=new stream_1[(_0x35b903(0x112))](),_0x385708=process.env.HTTPS_PROXY||process.env.HTTP_PROXY,_0x1bfab0=_0x385708?new https_proxy_agent_1[(_0x35b903(0x110))](_0x385708):undefined,_0x1a29b1=https_1[_0x35b903(0x120)][_0x35b903(0x136)](_0x19f954,{'headers':headers,'agent':_0x1bfab0},_0x4f8a5c=>{const _0x4b688e=_0x35b903;if(_0x4f8a5c[_0x4b688e(0x12f)]>=0x12c&&_0x4f8a5c[_0x4b688e(0x12f)]<0x190&&_0x4f8a5c[_0x4b688e(0x128)][_0x4b688e(0x11f)])return httpsRequest({'url':_0x4f8a5c['headers'][_0x4b688e(0x11f)],'headers':headers})[_0x4b688e(0x121)](_0x22330b);if(_0x4f8a5c[_0x4b688e(0x12f)]>=0x190){_0x22330b['emit'](_0x4b688e(0x10c),new Error(_0x4b688e(0x131)+_0x4f8a5c['statusCode']+':\x20'+_0x4f8a5c[_0x4b688e(0x113)]));return;}_0x22330b[_0x4b688e(0x124)]('response',_0x4f8a5c),_0x4f8a5c['pipe'](_0x22330b);})['on']('error',_0x39e985=>_0x22330b[_0x35b903(0x124)](_0x35b903(0x10c),_0x39e985));return _0x22330b[_0x35b903(0x135)]=()=>{const _0x1f2765=_0x35b903;_0x1a29b1['destroy'](),_0x22330b[_0x1f2765(0x11a)]();},_0x22330b;}class GoogleCloudHelper extends base_helper_1[_0x5b9215(0x139)]{constructor(_0x1567fc,_0x30672b){const _0x56e5d4=_0x5b9215;super(_0x30672b),this[_0x56e5d4(0x115)]=_0x1567fc,this['bucket']=google_cloud_utils_1[_0x56e5d4(0x125)][_0x56e5d4(0x109)](this[_0x56e5d4(0x115)]);}[_0x5b9215(0x122)](_0x1f39b5){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x2e7893=_0x3f02,_0x14411e=this[_0x2e7893(0x118)][_0x2e7893(0x114)](_0x1f39b5),[_0x4adfcd]=yield _0x14411e[_0x2e7893(0x127)]({'version':'v4','action':_0x2e7893(0x134),'expires':Date[_0x2e7893(0x10b)]()+0x258*0x3e8});return unzipper_1[_0x2e7893(0x111)]['url'](httpsRequest,_0x4adfcd);});}['ls'](){const _0x209136=_0x5b9215;return google_cloud_utils_1['GoogleCloudUtils']['getFilesPaths'](this['sourcePath'],this[_0x209136(0x118)]);}}exports[_0x5b9215(0x10e)]=GoogleCloudHelper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x98ddf=_0x3d47;(function(_0x4e661e,_0xf8e0b1){const _0x344e87=_0x3d47,_0x262634=_0x4e661e();while(!![]){try{const _0x12c4ea=parseInt(_0x344e87(0x11d))/0x1*(parseInt(_0x344e87(0x127))/0x2)+-parseInt(_0x344e87(0x12f))/0x3*(parseInt(_0x344e87(0x11c))/0x4)+parseInt(_0x344e87(0x129))/0x5+parseInt(_0x344e87(0x11b))/0x6*(parseInt(_0x344e87(0x124))/0x7)+parseInt(_0x344e87(0x118))/0x8*(-parseInt(_0x344e87(0x12c))/0x9)+parseInt(_0x344e87(0x120))/0xa+parseInt(_0x344e87(0x126))/0xb*(-parseInt(_0x344e87(0x130))/0xc);if(_0x12c4ea===_0xf8e0b1)break;else _0x262634['push'](_0x262634['shift']());}catch(_0x27b878){_0x262634['push'](_0x262634['shift']());}}}(_0x4bcd,0xda6ce));var __awaiter=this&&this['__awaiter']||function(_0x41c787,_0x2de542,_0x1905b5,_0x15e2e1){function _0xa9e563(_0x61beae){return _0x61beae instanceof _0x1905b5?_0x61beae:new _0x1905b5(function(_0x14de8d){_0x14de8d(_0x61beae);});}return new(_0x1905b5||(_0x1905b5=Promise))(function(_0x42fb53,_0x50d6c0){const _0x1d44d0=_0x3d47;function _0x3cae1c(_0x5f5c7d){try{_0x2ca96a(_0x15e2e1['next'](_0x5f5c7d));}catch(_0x543122){_0x50d6c0(_0x543122);}}function _0x268227(_0x5f2365){const _0x1af2a5=_0x3d47;try{_0x2ca96a(_0x15e2e1[_0x1af2a5(0x11f)](_0x5f2365));}catch(_0x3aefbe){_0x50d6c0(_0x3aefbe);}}function _0x2ca96a(_0x15a8c9){const _0x1e9987=_0x3d47;_0x15a8c9[_0x1e9987(0x12b)]?_0x42fb53(_0x15a8c9['value']):_0xa9e563(_0x15a8c9[_0x1e9987(0x128)])[_0x1e9987(0x11e)](_0x3cae1c,_0x268227);}_0x2ca96a((_0x15e2e1=_0x15e2e1[_0x1d44d0(0x121)](_0x41c787,_0x2de542||[]))[_0x1d44d0(0x125)]());});},__importDefault=this&&this['__importDefault']||function(_0xfa1ed1){return _0xfa1ed1&&_0xfa1ed1['__esModule']?_0xfa1ed1:{'default':_0xfa1ed1};};Object['defineProperty'](exports,_0x98ddf(0x133),{'value':!![]}),exports['LocalHelper']=void 0x0;function _0x3d47(_0x30c9f3,_0x1bdb16){_0x30c9f3=_0x30c9f3-0x118;const _0x4bcd72=_0x4bcd();let _0x3d47bf=_0x4bcd72[_0x30c9f3];return _0x3d47bf;}const base_helper_1=require(_0x98ddf(0x123)),unzipper_1=__importDefault(require(_0x98ddf(0x132))),promises_1=require(_0x98ddf(0x11a));function _0x4bcd(){const _0x2c2da8=['then','throw','3116650LjRCbg','apply','LocalHelper','./base-helper','2933VseuFI','next','2418119XaTnbZ','4OfPYNO','value','3911050RAmwQT','Open','done','234QoUwwc','BaseHelper','default','18wRwbIL','72UeixkS','sourcePath','unzipper','__esModule','89288CEGFjB','readdir','node:fs/promises','966yFAnfB','292588yJYMar','890689FcDpKc'];_0x4bcd=function(){return _0x2c2da8;};return _0x4bcd();}class LocalHelper extends base_helper_1[_0x98ddf(0x12d)]{['getZipFileMeta'](_0x33046a){return __awaiter(this,void 0x0,void 0x0,function*(){const _0xe83e99=_0x3d47;return unzipper_1[_0xe83e99(0x12e)][_0xe83e99(0x12a)]['file'](this[_0xe83e99(0x131)]+'/'+_0x33046a);});}['ls'](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x1236c6=_0x3d47;return(0x0,promises_1[_0x1236c6(0x119)])(this['sourcePath']);});}}exports[_0x98ddf(0x122)]=LocalHelper;
|
package/dist/retrieve/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x271017=_0x3996;(function(_0x4d1df9,_0x4fd327){var _0x54825a=_0x3996,_0x180d1=_0x4d1df9();while(!![]){try{var _0x407867=parseInt(_0x54825a(0x204))/0x1+parseInt(_0x54825a(0x203))/0x2+parseInt(_0x54825a(0x1f4))/0x3+parseInt(_0x54825a(0x208))/0x4+parseInt(_0x54825a(0x1fe))/0x5*(-parseInt(_0x54825a(0x1ff))/0x6)+-parseInt(_0x54825a(0x1f8))/0x7+parseInt(_0x54825a(0x209))/0x8;if(_0x407867===_0x4fd327)break;else _0x180d1['push'](_0x180d1['shift']());}catch(_0x2da3d4){_0x180d1['push'](_0x180d1['shift']());}}}(_0x4ff3,0xb98f1));Object[_0x271017(0x1fc)](exports,_0x271017(0x20b),{'value':!![]}),exports['BaseHelper']=exports[_0x271017(0x207)]=exports[_0x271017(0x1f1)]=exports[_0x271017(0x1fd)]=exports['AzureHelper']=exports[_0x271017(0x20c)]=exports[_0x271017(0x1f0)]=exports[_0x271017(0x1f7)]=exports[_0x271017(0x206)]=exports[_0x271017(0x1f6)]=exports[_0x271017(0x200)]=void 0x0;var base_retrieve_1=require(_0x271017(0x1f9));Object[_0x271017(0x1fc)](exports,_0x271017(0x200),{'enumerable':!![],'get':function(){var _0x567168=_0x271017;return base_retrieve_1[_0x567168(0x200)];}});var aws_s3_retrieve_1=require(_0x271017(0x1f2));Object[_0x271017(0x1fc)](exports,_0x271017(0x1f6),{'enumerable':!![],'get':function(){return aws_s3_retrieve_1['AwsS3Retrieve'];}});var local_retrieve_1=require(_0x271017(0x1f3));Object['defineProperty'](exports,_0x271017(0x206),{'enumerable':!![],'get':function(){var _0x330333=_0x271017;return local_retrieve_1[_0x330333(0x206)];}});var aws_s3_import_helper_1=require('./aws-s3-import-helper');Object[_0x271017(0x1fc)](exports,_0x271017(0x1f7),{'enumerable':!![],'get':function(){return aws_s3_import_helper_1['AwsS3ImportHelper'];}});function _0x4ff3(){var _0xb10c59=['LocalHelper','./aws-s3-retrieve','./local-retrieve','2382027GZCZlr','./helpers/local-helper','AwsS3Retrieve','AwsS3ImportHelper','6211352qybbFx','./base-retrieve','./google-cloud-retrieve','AzureHelper','defineProperty','GoogleCloudHelper','78245BPMrxH','576pzDYOJ','BaseRetrieve','./azure-retrieve','BaseHelper','2908516VjELth','507577JuOWoZ','./helpers/azure-helper','LocalRetrieve','AwsS3Helper','1093036fVxmMI','964688KEkrYk','./helpers/google-cloud-helper','__esModule','GoogleCloudRetrieve','AzureRetrieve'];_0x4ff3=function(){return _0xb10c59;};return _0x4ff3();}var azure_retrieve_1=require(_0x271017(0x201));Object[_0x271017(0x1fc)](exports,_0x271017(0x1f0),{'enumerable':!![],'get':function(){return azure_retrieve_1['AzureRetrieve'];}});var google_cloud_retrieve_1=require(_0x271017(0x1fa));function _0x3996(_0x1169f0,_0x94c83b){_0x1169f0=_0x1169f0-0x1f0;var _0x4ff334=_0x4ff3();var _0x3996a9=_0x4ff334[_0x1169f0];return _0x3996a9;}Object[_0x271017(0x1fc)](exports,_0x271017(0x20c),{'enumerable':!![],'get':function(){var _0x37b86a=_0x271017;return google_cloud_retrieve_1[_0x37b86a(0x20c)];}});var azure_helper_1=require(_0x271017(0x205));Object[_0x271017(0x1fc)](exports,_0x271017(0x1fb),{'enumerable':!![],'get':function(){var _0x3a1b9b=_0x271017;return azure_helper_1[_0x3a1b9b(0x1fb)];}});var google_cloud_helper_1=require(_0x271017(0x20a));Object[_0x271017(0x1fc)](exports,_0x271017(0x1fd),{'enumerable':!![],'get':function(){var _0x350d7a=_0x271017;return google_cloud_helper_1[_0x350d7a(0x1fd)];}});var local_helper_1=require(_0x271017(0x1f5));Object['defineProperty'](exports,'LocalHelper',{'enumerable':!![],'get':function(){var _0x578910=_0x271017;return local_helper_1[_0x578910(0x1f1)];}});var aws_s3_helper_1=require('./helpers/aws-s3-helper');Object[_0x271017(0x1fc)](exports,_0x271017(0x207),{'enumerable':!![],'get':function(){return aws_s3_helper_1['AwsS3Helper'];}});var base_helper_1=require('./helpers/base-helper');Object[_0x271017(0x1fc)](exports,_0x271017(0x202),{'enumerable':!![],'get':function(){var _0xe53b1c=_0x271017;return base_helper_1[_0xe53b1c(0x202)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x45c5d7=_0x1b9c;(function(_0x56bf09,_0x38a553){const _0x309ad4=_0x1b9c,_0x4edd4e=_0x56bf09();while(!![]){try{const _0x110ddf=-parseInt(_0x309ad4(0x86))/0x1+parseInt(_0x309ad4(0x8c))/0x2*(-parseInt(_0x309ad4(0x95))/0x3)+-parseInt(_0x309ad4(0x8b))/0x4+-parseInt(_0x309ad4(0x7d))/0x5+-parseInt(_0x309ad4(0x88))/0x6*(parseInt(_0x309ad4(0x82))/0x7)+-parseInt(_0x309ad4(0x81))/0x8+-parseInt(_0x309ad4(0x92))/0x9*(-parseInt(_0x309ad4(0x93))/0xa);if(_0x110ddf===_0x38a553)break;else _0x4edd4e['push'](_0x4edd4e['shift']());}catch(_0x3eda01){_0x4edd4e['push'](_0x4edd4e['shift']());}}}(_0x5cf2,0xa0f9b));var __awaiter=this&&this[_0x45c5d7(0x96)]||function(_0x102465,_0x1996e3,_0x3c9196,_0x206432){function _0x4b71bd(_0x3efab3){return _0x3efab3 instanceof _0x3c9196?_0x3efab3:new _0x3c9196(function(_0x380828){_0x380828(_0x3efab3);});}return new(_0x3c9196||(_0x3c9196=Promise))(function(_0x2669b8,_0x16834d){const _0x988405=_0x1b9c;function _0x4124d6(_0x4363c4){const _0x156926=_0x1b9c;try{_0x511831(_0x206432[_0x156926(0x8a)](_0x4363c4));}catch(_0x302a09){_0x16834d(_0x302a09);}}function _0x34e091(_0x584bba){const _0x1420f0=_0x1b9c;try{_0x511831(_0x206432[_0x1420f0(0x7b)](_0x584bba));}catch(_0x25dc29){_0x16834d(_0x25dc29);}}function _0x511831(_0x3b518b){const _0x7d3e57=_0x1b9c;_0x3b518b[_0x7d3e57(0x98)]?_0x2669b8(_0x3b518b[_0x7d3e57(0x84)]):_0x4b71bd(_0x3b518b[_0x7d3e57(0x84)])[_0x7d3e57(0x8d)](_0x4124d6,_0x34e091);}_0x511831((_0x206432=_0x206432['apply'](_0x102465,_0x1996e3||[]))[_0x988405(0x8a)]());});};function _0x1b9c(_0x1aa762,_0x3a564e){_0x1aa762=_0x1aa762-0x7b;const _0x5cf276=_0x5cf2();let _0x1b9cc0=_0x5cf276[_0x1aa762];return _0x1b9cc0;}Object['defineProperty'](exports,_0x45c5d7(0x91),{'value':!![]}),exports[_0x45c5d7(0x7e)]=void 0x0;const fs_1=require('fs'),utils_1=require('@flosum/utils'),_1=require('./'),retrieve_status_enum_1=require('../types/retrieve-status.enum');class LocalRetrieve extends _1[_0x45c5d7(0x83)]{constructor(){const _0x39803b=_0x45c5d7;super(...arguments),this[_0x39803b(0x8f)]=[];}[_0x45c5d7(0x87)](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x1ec7fc=_0x1b9c,_0x1d00fb=this['filesPaths'][_0x1ec7fc(0x85)](),_0x1e0546=(0x0,fs_1[_0x1ec7fc(0x90)])(_0x1d00fb);return this[_0x1ec7fc(0x94)]=!this['filesPaths'][_0x1ec7fc(0x99)],{'path':_0x1d00fb,'content':_0x1e0546};});}[_0x45c5d7(0x97)](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x1d4bde=_0x1b9c;this[_0x1d4bde(0x8f)]=yield utils_1['FsUtils'][_0x1d4bde(0x7f)](this[_0x1d4bde(0x7c)]);});}['waitUntilRetrieveDone'](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x2d93c0=_0x1b9c;this[_0x2d93c0(0x80)]===retrieve_status_enum_1['RetrieveStatus']['Uninitialized']&&(yield this['readFilesToRetrieve'](),this['status']=retrieve_status_enum_1[_0x2d93c0(0x8e)][_0x2d93c0(0x89)]);});}}exports[_0x45c5d7(0x7e)]=LocalRetrieve;function _0x5cf2(){const _0x44923e=['2282868odXJFJ','240NTLrZD','isDone','6PKELWK','__awaiter','readFilesToRetrieve','done','length','throw','path','5315330tCPwUE','LocalRetrieve','getFolderFiles','status','7299496VvuDom','28qCMWEJ','BaseRetrieve','value','shift','991874hAuOif','execute','1761918IZEkjP','Completed','next','1748552LsKRse','849166bJEumW','then','RetrieveStatus','filesPaths','createReadStream','__esModule'];_0x5cf2=function(){return _0x44923e;};return _0x5cf2();}
|
package/dist/types/aws.types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x118cb7=_0x53f0;(function(_0x166f9e,_0x28bc8c){var _0x24da92=_0x53f0,_0xf519c0=_0x166f9e();while(!![]){try{var _0x56d006=parseInt(_0x24da92(0x80))/0x1+parseInt(_0x24da92(0x8d))/0x2+parseInt(_0x24da92(0x88))/0x3+parseInt(_0x24da92(0x8e))/0x4+parseInt(_0x24da92(0x8b))/0x5*(parseInt(_0x24da92(0x8a))/0x6)+parseInt(_0x24da92(0x81))/0x7+parseInt(_0x24da92(0x82))/0x8*(-parseInt(_0x24da92(0x84))/0x9);if(_0x56d006===_0x28bc8c)break;else _0xf519c0['push'](_0xf519c0['shift']());}catch(_0x2c73b4){_0xf519c0['push'](_0xf519c0['shift']());}}}(_0x4ae3,0x8ff2c));function _0x53f0(_0x3e770e,_0x43714){_0x3e770e=_0x3e770e-0x80;var _0x4ae3a6=_0x4ae3();var _0x53f068=_0x4ae3a6[_0x3e770e];return _0x53f068;}function _0x4ae3(){var _0x138946=['Available','5028hdZycq','2995DBchcw','AwsFileRetrieveStatus','850482nVbkkU','4486700jyecPZ','567765DJxPwy','6819386QwFJLH','5286224PiaEDU','__esModule','45cjunMN','NeedRestore','defineProperty','Restoring','907983uypRlx'];_0x4ae3=function(){return _0x138946;};return _0x4ae3();}Object[_0x118cb7(0x86)](exports,_0x118cb7(0x83),{'value':!![]}),exports[_0x118cb7(0x8c)]=void 0x0;var AwsFileRetrieveStatus;(function(_0x134987){var _0x76024c=_0x118cb7;_0x134987['Available']=_0x76024c(0x89),_0x134987[_0x76024c(0x87)]=_0x76024c(0x87),_0x134987[_0x76024c(0x85)]='NeedRestore';}(AwsFileRetrieveStatus||(exports[_0x118cb7(0x8c)]=AwsFileRetrieveStatus={})));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0x332f(_0x372824,_0xd6c8e){_0x372824=_0x372824-0x19e;var _0x3e7917=_0x3e79();var _0x332f1d=_0x3e7917[_0x372824];return _0x332f1d;}var _0x33c8ab=_0x332f;(function(_0x9f8f8b,_0xe0e73a){var _0x1eaf82=_0x332f,_0x44eff9=_0x9f8f8b();while(!![]){try{var _0x27dc32=parseInt(_0x1eaf82(0x1a0))/0x1+-parseInt(_0x1eaf82(0x1a4))/0x2+-parseInt(_0x1eaf82(0x1a7))/0x3+parseInt(_0x1eaf82(0x1a5))/0x4+parseInt(_0x1eaf82(0x1a6))/0x5+-parseInt(_0x1eaf82(0x1a1))/0x6*(parseInt(_0x1eaf82(0x1a3))/0x7)+parseInt(_0x1eaf82(0x19f))/0x8;if(_0x27dc32===_0xe0e73a)break;else _0x44eff9['push'](_0x44eff9['shift']());}catch(_0x1e1e7b){_0x44eff9['push'](_0x44eff9['shift']());}}}(_0x3e79,0x79134));Object[_0x33c8ab(0x19e)](exports,_0x33c8ab(0x1a2),{'value':!![]});function _0x3e79(){var _0x2a66bf=['42SAdtsc','1627354yuBHFY','1264460pCAGmt','3838640UcKgmF','1835901jDslNX','defineProperty','1888344TIlfIX','989108RmgwMB','387426rbQIhH','__esModule'];_0x3e79=function(){return _0x2a66bf;};return _0x3e79();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';var _0x4e0fd4=_0x80de;function _0x4257(){var _0x209a80=['9408330rautol','250170LlBWrY','3850OOFOuG','498xDtcFY','148DHjjls','555685DcxxRz','1939VdatmF','408morirQ','__esModule','103873eYDqym','468KeeIkm','15532DAFeOH','12683fZbzrV','40uvvTBu','defineProperty'];_0x4257=function(){return _0x209a80;};return _0x4257();}(function(_0x5e50b7,_0x56e75b){var _0x4b17f4=_0x80de,_0x31a51c=_0x5e50b7();while(!![]){try{var _0x6761db=-parseInt(_0x4b17f4(0x7b))/0x1*(parseInt(_0x4b17f4(0x79))/0x2)+-parseInt(_0x4b17f4(0x78))/0x3*(-parseInt(_0x4b17f4(0x80))/0x4)+parseInt(_0x4b17f4(0x82))/0x5*(parseInt(_0x4b17f4(0x76))/0x6)+-parseInt(_0x4b17f4(0x7e))/0x7*(-parseInt(_0x4b17f4(0x7c))/0x8)+parseInt(_0x4b17f4(0x84))/0x9+parseInt(_0x4b17f4(0x77))/0xa*(-parseInt(_0x4b17f4(0x81))/0xb)+-parseInt(_0x4b17f4(0x7f))/0xc*(parseInt(_0x4b17f4(0x7a))/0xd);if(_0x6761db===_0x56e75b)break;else _0x31a51c['push'](_0x31a51c['shift']());}catch(_0x456210){_0x31a51c['push'](_0x31a51c['shift']());}}}(_0x4257,0x8061b));function _0x80de(_0x86892d,_0x215598){_0x86892d=_0x86892d-0x76;var _0x425737=_0x4257();var _0x80de2a=_0x425737[_0x86892d];return _0x80de2a;}Object[_0x4e0fd4(0x83)](exports,_0x4e0fd4(0x7d),{'value':!![]});
|
package/dist/types/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var _0x380a85=_0x5b3a;(function(_0x1a2b3c,_0x15fba9){var _0x341e0a=_0x5b3a,_0x3e8d4d=_0x1a2b3c();while(!![]){try{var _0x46139e=-parseInt(_0x341e0a(0x12c))/0x1*(-parseInt(_0x341e0a(0x11f))/0x2)+parseInt(_0x341e0a(0x128))/0x3+parseInt(_0x341e0a(0x11e))/0x4*(parseInt(_0x341e0a(0x129))/0x5)+parseInt(_0x341e0a(0x122))/0x6*(-parseInt(_0x341e0a(0x12d))/0x7)+parseInt(_0x341e0a(0x126))/0x8*(-parseInt(_0x341e0a(0x125))/0x9)+-parseInt(_0x341e0a(0x11d))/0xa*(parseInt(_0x341e0a(0x121))/0xb)+parseInt(_0x341e0a(0x124))/0xc*(-parseInt(_0x341e0a(0x12b))/0xd);if(_0x46139e===_0x15fba9)break;else _0x3e8d4d['push'](_0x3e8d4d['shift']());}catch(_0x21ca17){_0x3e8d4d['push'](_0x3e8d4d['shift']());}}}(_0x3bde,0xb2144));function _0x5b3a(_0x6f9920,_0xa1ab81){_0x6f9920=_0x6f9920-0x11d;var _0x3bdeba=_0x3bde();var _0x5b3a73=_0x3bdeba[_0x6f9920];return _0x5b3a73;}Object[_0x380a85(0x127)](exports,_0x380a85(0x12a),{'value':!![]}),exports[_0x380a85(0x123)]=void 0x0;var storage_type_enum_1=require(_0x380a85(0x120));function _0x3bde(){var _0x3300d9=['20mSQWTO','28gRoIld','227174UGWXhP','./storage-type.enum','675191WQNsMe','4137108shcXFE','StorageType','5744868HeMEfs','1304721WgDZcS','24jnsUVJ','defineProperty','2000076VtsAZH','385135NYKuGa','__esModule','13KlNBMS','11BGoWoY','7sQPkiL'];_0x3bde=function(){return _0x3300d9;};return _0x3bde();}Object[_0x380a85(0x127)](exports,_0x380a85(0x123),{'enumerable':!![],'get':function(){var _0x5e4df8=_0x380a85;return storage_type_enum_1[_0x5e4df8(0x123)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x3dd998=_0x402e;function _0x3caf(){var _0x2898fe=['8162vThpLK','27TytRRE','5036136aZjVwt','32FQgrnp','1160324xtuZdI','__esModule','12570YLYosG','defineProperty','18234WcdBLe','849735fiAYNk','416346PTpRLn','549462sHtROT','10VqsVcj'];_0x3caf=function(){return _0x2898fe;};return _0x3caf();}function _0x402e(_0xce3fdc,_0x1a2385){_0xce3fdc=_0xce3fdc-0xe1;var _0x3cafa9=_0x3caf();var _0x402ec4=_0x3cafa9[_0xce3fdc];return _0x402ec4;}(function(_0x5cc37c,_0x27edc0){var _0x1d6359=_0x402e,_0x4c1cb9=_0x5cc37c();while(!![]){try{var _0x5b2738=parseInt(_0x1d6359(0xe6))/0x1*(-parseInt(_0x1d6359(0xed))/0x2)+-parseInt(_0x1d6359(0xe2))/0x3+-parseInt(_0x1d6359(0xe9))/0x4+parseInt(_0x1d6359(0xe4))/0x5*(-parseInt(_0x1d6359(0xe3))/0x6)+parseInt(_0x1d6359(0xe7))/0x7+-parseInt(_0x1d6359(0xe8))/0x8*(parseInt(_0x1d6359(0xe1))/0x9)+-parseInt(_0x1d6359(0xeb))/0xa*(-parseInt(_0x1d6359(0xe5))/0xb);if(_0x5b2738===_0x27edc0)break;else _0x4c1cb9['push'](_0x4c1cb9['shift']());}catch(_0x3e5fbc){_0x4c1cb9['push'](_0x4c1cb9['shift']());}}}(_0x3caf,0x65a32));Object[_0x3dd998(0xec)](exports,_0x3dd998(0xea),{'value':!![]});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0xf462a2=_0x13c4;(function(_0x3691fe,_0xd90158){var _0x15e336=_0x13c4,_0x524950=_0x3691fe();while(!![]){try{var _0x988298=-parseInt(_0x15e336(0x125))/0x1+-parseInt(_0x15e336(0x12e))/0x2+-parseInt(_0x15e336(0x127))/0x3*(-parseInt(_0x15e336(0x133))/0x4)+-parseInt(_0x15e336(0x12a))/0x5+-parseInt(_0x15e336(0x12c))/0x6+parseInt(_0x15e336(0x131))/0x7*(parseInt(_0x15e336(0x128))/0x8)+parseInt(_0x15e336(0x124))/0x9;if(_0x988298===_0xd90158)break;else _0x524950['push'](_0x524950['shift']());}catch(_0x40ef1f){_0x524950['push'](_0x524950['shift']());}}}(_0x401f,0xcded1));function _0x13c4(_0x1bf467,_0x398341){_0x1bf467=_0x1bf467-0x124;var _0x401f9c=_0x401f();var _0x13c4ec=_0x401f9c[_0x1bf467];return _0x13c4ec;}Object[_0xf462a2(0x126)](exports,_0xf462a2(0x132),{'value':!![]}),exports[_0xf462a2(0x130)]=void 0x0;var RetrieveStatus;(function(_0x4d12fc){var _0x401688=_0xf462a2;_0x4d12fc[_0x401688(0x134)]=_0x401688(0x134),_0x4d12fc[_0x401688(0x12d)]=_0x401688(0x12f),_0x4d12fc[_0x401688(0x129)]=_0x401688(0x129),_0x4d12fc[_0x401688(0x12b)]=_0x401688(0x12b);}(RetrieveStatus||(exports[_0xf462a2(0x130)]=RetrieveStatus={})));function _0x401f(){var _0x3e3469=['1755272VQxHOf','In\x20Progress','RetrieveStatus','4860982grVWyx','__esModule','73372qzzbQH','Uninitialized','34256952KqFOxb','914695gkGwan','defineProperty','3AqrETW','8MSZLMR','Completed','8055755xPGenB','Exception','1632852mnGWWX','InProgress'];_0x401f=function(){return _0x3e3469;};return _0x401f();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function _0x88c1(){var _0x4ff6fc=['9yFpHtp','23590qcjLUM','24852peqRsl','2172625RUHgEu','3597592anVeRE','1551dwMXYp','72117MqctvU','998ulDNgm','2901zhPIvf','StorageType','Local','415NHxxXW','AZURE_BLOB','1288854mRqPda','defineProperty'];_0x88c1=function(){return _0x4ff6fc;};return _0x88c1();}var _0x19be8b=_0x1f2e;(function(_0x4c311a,_0x317942){var _0x4b6c1d=_0x1f2e,_0x15fa49=_0x4c311a();while(!![]){try{var _0x3e6c38=-parseInt(_0x4b6c1d(0x16b))/0x1+parseInt(_0x4b6c1d(0x16c))/0x2*(parseInt(_0x4b6c1d(0x16d))/0x3)+parseInt(_0x4b6c1d(0x167))/0x4*(-parseInt(_0x4b6c1d(0x170))/0x5)+parseInt(_0x4b6c1d(0x172))/0x6+parseInt(_0x4b6c1d(0x168))/0x7+-parseInt(_0x4b6c1d(0x169))/0x8*(parseInt(_0x4b6c1d(0x174))/0x9)+parseInt(_0x4b6c1d(0x175))/0xa*(parseInt(_0x4b6c1d(0x16a))/0xb);if(_0x3e6c38===_0x317942)break;else _0x15fa49['push'](_0x15fa49['shift']());}catch(_0x535f80){_0x15fa49['push'](_0x15fa49['shift']());}}}(_0x88c1,0x49ef9));Object[_0x19be8b(0x173)](exports,'__esModule',{'value':!![]}),exports[_0x19be8b(0x16e)]=void 0x0;function _0x1f2e(_0xeda18e,_0x422d2e){_0xeda18e=_0xeda18e-0x167;var _0x88c1ed=_0x88c1();var _0x1f2ef1=_0x88c1ed[_0xeda18e];return _0x1f2ef1;}var StorageType;(function(_0x41e50a){var _0x2eab29=_0x19be8b;_0x41e50a[_0x2eab29(0x16f)]=_0x2eab29(0x16f),_0x41e50a['AWS_S3']='AWS_S3',_0x41e50a[_0x2eab29(0x171)]=_0x2eab29(0x171),_0x41e50a['GOOGLE_CLOUD_STORAGE']='GOOGLE_CLOUD_STORAGE';}(StorageType||(exports[_0x19be8b(0x16e)]=StorageType={})));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x9b96(_0x170a54,_0x5a564a){_0x170a54=_0x170a54-0x89;const _0x2f985c=_0x2f98();let _0x9b96c3=_0x2f985c[_0x170a54];return _0x9b96c3;}const _0x11014f=_0x9b96;(function(_0x33e46c,_0x2ce933){const _0x1ba1b9=_0x9b96,_0x55ffd0=_0x33e46c();while(!![]){try{const _0x1f7fe0=-parseInt(_0x1ba1b9(0x8f))/0x1+-parseInt(_0x1ba1b9(0x8c))/0x2+parseInt(_0x1ba1b9(0x9f))/0x3+parseInt(_0x1ba1b9(0xa0))/0x4*(-parseInt(_0x1ba1b9(0x93))/0x5)+parseInt(_0x1ba1b9(0x95))/0x6*(parseInt(_0x1ba1b9(0xab))/0x7)+parseInt(_0x1ba1b9(0x9a))/0x8*(parseInt(_0x1ba1b9(0x8d))/0x9)+parseInt(_0x1ba1b9(0x9e))/0xa;if(_0x1f7fe0===_0x2ce933)break;else _0x55ffd0['push'](_0x55ffd0['shift']());}catch(_0x1a2d3d){_0x55ffd0['push'](_0x55ffd0['shift']());}}}(_0x2f98,0x7b37b));function _0x2f98(){const _0x3b4951=['S3Client','HttpHandler','throw','extractFileRetrieveStatusFromRestoreField','547346eZUkil','9VvsDNc','Restore','899099GXifLC','match','Restoring','includes','447595FJIqHL','value','42NqPoot','NeedRestore','@aws-sdk/client-s3','apply','applyMiddlewaresToS3Client','4238968KZpUeY','standard','add','Available','2887340ItTQPT','3012408ZeIxkG','36ScQjOe','getFilesPaths','GLACIER','AwsFileRetrieveStatus','next','GLACIER_IR','AwsS3Utils','StorageClass','defineProperty','ListObjectsCommand','send','660401WkoRhk','DEEP_ARCHIVE','credentials','Key','../types/aws.types','middlewareStack'];_0x2f98=function(){return _0x3b4951;};return _0x2f98();}var __awaiter=this&&this['__awaiter']||function(_0x5b5167,_0x50e2dc,_0x5d33ef,_0x406eca){function _0x273100(_0x370fd6){return _0x370fd6 instanceof _0x5d33ef?_0x370fd6:new _0x5d33ef(function(_0x2ae12b){_0x2ae12b(_0x370fd6);});}return new(_0x5d33ef||(_0x5d33ef=Promise))(function(_0x3a7fcd,_0x2ccfaa){const _0x46b280=_0x9b96;function _0x1b090c(_0x4a817b){const _0x435b56=_0x9b96;try{_0xa30dbc(_0x406eca[_0x435b56(0xa4)](_0x4a817b));}catch(_0x3d4ccb){_0x2ccfaa(_0x3d4ccb);}}function _0x5e3046(_0x3da957){const _0x42e669=_0x9b96;try{_0xa30dbc(_0x406eca[_0x42e669(0x8a)](_0x3da957));}catch(_0x1a2fd8){_0x2ccfaa(_0x1a2fd8);}}function _0xa30dbc(_0x328a90){const _0x53ef7f=_0x9b96;_0x328a90['done']?_0x3a7fcd(_0x328a90[_0x53ef7f(0x94)]):_0x273100(_0x328a90[_0x53ef7f(0x94)])['then'](_0x1b090c,_0x5e3046);}_0xa30dbc((_0x406eca=_0x406eca[_0x46b280(0x98)](_0x5b5167,_0x50e2dc||[]))[_0x46b280(0xa4)]());});};Object[_0x11014f(0xa8)](exports,'__esModule',{'value':!![]}),exports[_0x11014f(0xa6)]=void 0x0;const init_1=require('../init'),aws_types_1=require(_0x11014f(0xaf)),client_s3_1=require(_0x11014f(0x97)),ARCHIVE_TYPES=[_0x11014f(0xa2),_0x11014f(0xa5),_0x11014f(0xac)],RETRY_MODE=_0x11014f(0x9b),MAX_ATTEMPTS=0x3;class AwsS3Utils{static['extractFileRetrieveStatusFromFileInfo'](_0x1ef954){const _0x1ec9bb=_0x11014f;if(ARCHIVE_TYPES[_0x1ec9bb(0x92)](_0x1ef954[_0x1ec9bb(0xa7)])){if(_0x1ef954[_0x1ec9bb(0x8e)])return AwsS3Utils[_0x1ec9bb(0x8b)](_0x1ef954[_0x1ec9bb(0x8e)]);return aws_types_1[_0x1ec9bb(0xa3)][_0x1ec9bb(0x96)];}return aws_types_1['AwsFileRetrieveStatus'][_0x1ec9bb(0x9d)];}static[_0x11014f(0x8b)](_0x187fd5){const _0x2c8404=_0x11014f,_0xd945ed=/ongoing-request="([^"]+)"/,_0x416e97=_0x187fd5[_0x2c8404(0x90)](_0xd945ed);return _0x416e97[0x1]==='false'?aws_types_1[_0x2c8404(0xa3)][_0x2c8404(0x9d)]:aws_types_1['AwsFileRetrieveStatus'][_0x2c8404(0x91)];}static[_0x11014f(0xa1)](_0x2d6f70,_0x260ad3,_0x2fd2fb){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x1e5a1f=_0x9b96,_0x3a9207=[];let _0x1244be,_0x466aaa=null;do{const _0x3f5979=new client_s3_1[(_0x1e5a1f(0xa9))]({'Bucket':_0x260ad3,'Prefix':_0x2d6f70,'Marker':_0x466aaa}),{Contents:_0x5650a0,IsTruncated:_0x4e984c}=yield _0x2fd2fb[_0x1e5a1f(0xaa)](_0x3f5979);if(!_0x5650a0)return _0x3a9207;for(const _0x392c44 of _0x5650a0){_0x3a9207['push'](_0x392c44[_0x1e5a1f(0xae)]);}_0x1244be=_0x4e984c,_0x1244be&&(_0x466aaa=_0x5650a0['at'](-0x1)[_0x1e5a1f(0xae)]);}while(_0x1244be);return _0x3a9207;});}static['createS3Client']({region:_0x5e0b5a,accessKeyId:_0x1a11c5,secretAccessKey:_0x2cc36d},_0x48d722){const _0x15de32=_0x11014f,_0x148056={'region':_0x5e0b5a,'requestHandler':new init_1[(_0x15de32(0x89))](),'retryMode':RETRY_MODE,'maxAttempts':MAX_ATTEMPTS};_0x1a11c5&&_0x2cc36d&&(_0x148056[_0x15de32(0xad)]={'accessKeyId':_0x1a11c5,'secretAccessKey':_0x2cc36d});const _0x36fb6a=new client_s3_1[(_0x15de32(0xb1))](_0x148056);if(!(_0x48d722===null||_0x48d722===void 0x0?void 0x0:_0x48d722['length']))return _0x36fb6a;return this[_0x15de32(0x99)](_0x36fb6a,_0x48d722);}static[_0x11014f(0x99)](_0x5aba73,_0x382d07){const _0x3cd4ab=_0x11014f;for(const {handler:_0x3daead,options:_0x361bfe}of _0x382d07){_0x5aba73[_0x3cd4ab(0xb0)][_0x3cd4ab(0x9c)](_0x3daead,_0x361bfe);}return _0x5aba73;}}exports['AwsS3Utils']=AwsS3Utils;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x1effef=_0x31be;(function(_0x49c1b7,_0x295a09){var _0x32a287=_0x31be,_0x3a215b=_0x49c1b7();while(!![]){try{var _0x1d1d9e=parseInt(_0x32a287(0x1ff))/0x1*(-parseInt(_0x32a287(0x206))/0x2)+-parseInt(_0x32a287(0x1fe))/0x3*(-parseInt(_0x32a287(0x1f7))/0x4)+parseInt(_0x32a287(0x1f2))/0x5*(parseInt(_0x32a287(0x1f9))/0x6)+parseInt(_0x32a287(0x20c))/0x7+-parseInt(_0x32a287(0x204))/0x8*(-parseInt(_0x32a287(0x201))/0x9)+-parseInt(_0x32a287(0x1ed))/0xa+-parseInt(_0x32a287(0x1fa))/0xb;if(_0x1d1d9e===_0x295a09)break;else _0x3a215b['push'](_0x3a215b['shift']());}catch(_0x57bc63){_0x3a215b['push'](_0x3a215b['shift']());}}}(_0x3de8,0xab28b));function _0x3de8(){var _0x348cb4=['deleted','apply','then','3HbZMMS','339647bBrKOo','asyncIterator','260235eZJucy','listBlobsFlat','defineProperty','280xjukXW','AzureUtils','2GuDEiU','Symbol.asyncIterator\x20is\x20not\x20defined.','push','throw','BlobServiceClient','createAzureBlobServiceClient','7289919pMslzz','call','@azure/storage-blob','12615130KurfVG','StorageSharedKeyCredential','value','next','__asyncValues','5rzmgqd','getAzureBlobsPaths','done','__esModule','function','1681444tMrqpy','return','1089648eWUJmf','3885024rKtaJS'];_0x3de8=function(){return _0x348cb4;};return _0x3de8();}function _0x31be(_0x3398ac,_0x23e135){_0x3398ac=_0x3398ac-0x1ec;var _0x3de887=_0x3de8();var _0x31beff=_0x3de887[_0x3398ac];return _0x31beff;}var __awaiter=this&&this['__awaiter']||function(_0x2d431d,_0x575f7b,_0x19a101,_0x364667){function _0x745627(_0x5a114d){return _0x5a114d instanceof _0x19a101?_0x5a114d:new _0x19a101(function(_0x38e174){_0x38e174(_0x5a114d);});}return new(_0x19a101||(_0x19a101=Promise))(function(_0x742ff6,_0x12fcb3){var _0x33eab7=_0x31be;function _0x4886b2(_0x51029a){var _0xe1bc57=_0x31be;try{_0x1693d9(_0x364667[_0xe1bc57(0x1f0)](_0x51029a));}catch(_0x35ccf4){_0x12fcb3(_0x35ccf4);}}function _0x420097(_0x2385b2){var _0x275628=_0x31be;try{_0x1693d9(_0x364667[_0x275628(0x209)](_0x2385b2));}catch(_0x10ab8b){_0x12fcb3(_0x10ab8b);}}function _0x1693d9(_0xdf3735){var _0x2fd16d=_0x31be;_0xdf3735[_0x2fd16d(0x1f4)]?_0x742ff6(_0xdf3735[_0x2fd16d(0x1ef)]):_0x745627(_0xdf3735[_0x2fd16d(0x1ef)])['then'](_0x4886b2,_0x420097);}_0x1693d9((_0x364667=_0x364667[_0x33eab7(0x1fc)](_0x2d431d,_0x575f7b||[]))[_0x33eab7(0x1f0)]());});},__asyncValues=this&&this[_0x1effef(0x1f1)]||function(_0x2fc10a){var _0x2d35d9=_0x1effef;if(!Symbol['asyncIterator'])throw new TypeError(_0x2d35d9(0x207));var _0x10ad6d=_0x2fc10a[Symbol['asyncIterator']],_0x1249da;return _0x10ad6d?_0x10ad6d['call'](_0x2fc10a):(_0x2fc10a=typeof __values===_0x2d35d9(0x1f6)?__values(_0x2fc10a):_0x2fc10a[Symbol['iterator']](),_0x1249da={},_0x926ad3('next'),_0x926ad3(_0x2d35d9(0x209)),_0x926ad3(_0x2d35d9(0x1f8)),_0x1249da[Symbol[_0x2d35d9(0x200)]]=function(){return this;},_0x1249da);function _0x926ad3(_0x3a0753){_0x1249da[_0x3a0753]=_0x2fc10a[_0x3a0753]&&function(_0x2eca45){return new Promise(function(_0x427579,_0xc016ae){var _0x1f0278=_0x31be;_0x2eca45=_0x2fc10a[_0x3a0753](_0x2eca45),_0x204696(_0x427579,_0xc016ae,_0x2eca45[_0x1f0278(0x1f4)],_0x2eca45[_0x1f0278(0x1ef)]);});};}function _0x204696(_0x39b537,_0x2b332a,_0x3ec27c,_0x13044f){var _0xac6c28=_0x2d35d9;Promise['resolve'](_0x13044f)[_0xac6c28(0x1fd)](function(_0x4b9bb6){_0x39b537({'value':_0x4b9bb6,'done':_0x3ec27c});},_0x2b332a);}};Object[_0x1effef(0x203)](exports,_0x1effef(0x1f5),{'value':!![]}),exports[_0x1effef(0x205)]=void 0x0;const storage_blob_1=require(_0x1effef(0x1ec));class AzureUtils{static[_0x1effef(0x20b)]({accountName:_0x206f25,accountKey:_0x47cb74}){var _0x87d060=_0x1effef;const _0x1f24af=new storage_blob_1[(_0x87d060(0x1ee))](_0x206f25,_0x47cb74);return new storage_blob_1[(_0x87d060(0x20a))]('https://'+_0x206f25+'.blob.core.windows.net',_0x1f24af);}static['createAzureBlobContainerClient'](_0x256e8f){const _0x5da492=this['createAzureBlobServiceClient'](_0x256e8f);return _0x5da492['getContainerClient'](_0x256e8f['containerName']);}static[_0x1effef(0x1f3)](_0x4b5b56,_0xfdc995){return __awaiter(this,void 0x0,void 0x0,function*(){var _0x33a0a3=_0x31be,_0x29504d,_0x4e35d2,_0x9abda8,_0x2ca57a;const _0x3f89f8=[];try{for(var _0x33b412=!![],_0x52e5b1=__asyncValues(_0xfdc995[_0x33a0a3(0x202)]({'prefix':_0x4b5b56})),_0x3307ae;_0x3307ae=yield _0x52e5b1[_0x33a0a3(0x1f0)](),_0x29504d=_0x3307ae['done'],!_0x29504d;_0x33b412=!![]){_0x2ca57a=_0x3307ae['value'],_0x33b412=![];const _0x402192=_0x2ca57a;!_0x402192[_0x33a0a3(0x1fb)]&&_0x3f89f8[_0x33a0a3(0x208)](_0x402192['name']);}}catch(_0x4db1c3){_0x4e35d2={'error':_0x4db1c3};}finally{try{if(!_0x33b412&&!_0x29504d&&(_0x9abda8=_0x52e5b1[_0x33a0a3(0x1f8)]))yield _0x9abda8[_0x33a0a3(0x20d)](_0x52e5b1);}finally{if(_0x4e35d2)throw _0x4e35d2['error'];}}return _0x3f89f8;});}}exports['AzureUtils']=AzureUtils;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x36a290=_0x4551;(function(_0x4d6991,_0x3f35bf){const _0x3e484a=_0x4551,_0x120a39=_0x4d6991();while(!![]){try{const _0x4531a1=-parseInt(_0x3e484a(0x19f))/0x1*(parseInt(_0x3e484a(0x1ae))/0x2)+parseInt(_0x3e484a(0x1ad))/0x3*(parseInt(_0x3e484a(0x1b2))/0x4)+parseInt(_0x3e484a(0x1a6))/0x5+parseInt(_0x3e484a(0x1a7))/0x6+parseInt(_0x3e484a(0x1ac))/0x7*(parseInt(_0x3e484a(0x1a4))/0x8)+-parseInt(_0x3e484a(0x1b0))/0x9+parseInt(_0x3e484a(0x1b3))/0xa*(-parseInt(_0x3e484a(0x19b))/0xb);if(_0x4531a1===_0x3f35bf)break;else _0x120a39['push'](_0x120a39['shift']());}catch(_0x54ee39){_0x120a39['push'](_0x120a39['shift']());}}}(_0x15b0,0xd022f));var __awaiter=this&&this[_0x36a290(0x1a5)]||function(_0x213659,_0x1816f5,_0xcd0955,_0x1ddce1){function _0x582ff1(_0x1ed784){return _0x1ed784 instanceof _0xcd0955?_0x1ed784:new _0xcd0955(function(_0x63241b){_0x63241b(_0x1ed784);});}return new(_0xcd0955||(_0xcd0955=Promise))(function(_0x5483fa,_0x3cbf39){const _0x1dd76b=_0x4551;function _0x1056c7(_0xfd7ace){const _0x32adc2=_0x4551;try{_0x3367df(_0x1ddce1[_0x32adc2(0x1a1)](_0xfd7ace));}catch(_0x7bf814){_0x3cbf39(_0x7bf814);}}function _0xeb3c62(_0xb0bb5c){const _0x16c4dc=_0x4551;try{_0x3367df(_0x1ddce1[_0x16c4dc(0x19e)](_0xb0bb5c));}catch(_0x33e9dc){_0x3cbf39(_0x33e9dc);}}function _0x3367df(_0x15a03c){const _0x5c4fac=_0x4551;_0x15a03c['done']?_0x5483fa(_0x15a03c['value']):_0x582ff1(_0x15a03c[_0x5c4fac(0x19c)])[_0x5c4fac(0x199)](_0x1056c7,_0xeb3c62);}_0x3367df((_0x1ddce1=_0x1ddce1['apply'](_0x213659,_0x1816f5||[]))[_0x1dd76b(0x1a1)]());});},__importDefault=this&&this[_0x36a290(0x1af)]||function(_0x9b27b8){const _0x411550=_0x36a290;return _0x9b27b8&&_0x9b27b8[_0x411550(0x1b4)]?_0x9b27b8:{'default':_0x9b27b8};};function _0x15b0(){const _0x42b2f6=['createCacheFileStream','28SfDYuD','3155610hrpSMz','__esModule','then','createReadStream','77fsoevf','value','crypto','throw','879242KnfZhs','path','next','default','close','24ZiPJzS','__awaiter','3227530Tujaht','5678832SPDiaY','CacheUtils','fs/promises','randomUUID','defineProperty','3175452ebFnim','692391uxDBOU','2opiHps','__importDefault','5649921QNdBVg'];_0x15b0=function(){return _0x42b2f6;};return _0x15b0();}Object[_0x36a290(0x1ab)](exports,_0x36a290(0x1b4),{'value':!![]}),exports[_0x36a290(0x1a8)]=void 0x0;const path_1=__importDefault(require(_0x36a290(0x1a0))),crypto_1=require(_0x36a290(0x19d)),promises_1=require(_0x36a290(0x1a9)),fs_1=require('fs');function _0x4551(_0x56d789,_0x560d7f){_0x56d789=_0x56d789-0x199;const _0x15b012=_0x15b0();let _0x4551e5=_0x15b012[_0x56d789];return _0x4551e5;}class CacheUtils{static[_0x36a290(0x1b1)](_0x2eccdd,_0x872828){return __awaiter(this,void 0x0,void 0x0,function*(){const _0xeaabf6=_0x4551,_0x49704e=path_1[_0xeaabf6(0x1a2)]['join'](_0x872828,(0x0,crypto_1[_0xeaabf6(0x1aa)])());yield(0x0,promises_1['writeFile'])(_0x49704e,_0x2eccdd);const _0x45cb66=(0x0,fs_1[_0xeaabf6(0x19a)])(_0x49704e);return _0x45cb66['on'](_0xeaabf6(0x1a3),()=>(0x0,promises_1['rm'])(_0x49704e)),_0x45cb66;});}}exports['CacheUtils']=CacheUtils;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const _0x376b66=_0x2b6d;function _0x2b6d(_0x262204,_0x52223a){_0x262204=_0x262204-0x19b;const _0x256919=_0x2569();let _0x2b6d3c=_0x256919[_0x262204];return _0x2b6d3c;}function _0x2569(){const _0x445241=['bucketName','getFiles','next','@google-cloud/storage','166026GiPZWM','2888360GXRXut','5tPiWWI','24891TOfkLl','name','56GLmEuL','GoogleCloudUtils','getFilesPaths','done','9351408VehkMO','value','1411605QDhPVu','throw','then','18MRYZkS','push','createStorageClient','3155072lhzNOa','5705028CuqyDr','__esModule','Storage'];_0x2569=function(){return _0x445241;};return _0x2569();}(function(_0x16f27a,_0x730ee1){const _0x1a0ecb=_0x2b6d,_0x4ede16=_0x16f27a();while(!![]){try{const _0x414c11=parseInt(_0x1a0ecb(0x1a2))/0x1*(parseInt(_0x1a0ecb(0x1a0))/0x2)+-parseInt(_0x1a0ecb(0x1a3))/0x3*(parseInt(_0x1a0ecb(0x1a5))/0x4)+parseInt(_0x1a0ecb(0x1ab))/0x5+-parseInt(_0x1a0ecb(0x1a9))/0x6+parseInt(_0x1a0ecb(0x1b2))/0x7+parseInt(_0x1a0ecb(0x1b1))/0x8+parseInt(_0x1a0ecb(0x1ae))/0x9*(parseInt(_0x1a0ecb(0x1a1))/0xa);if(_0x414c11===_0x730ee1)break;else _0x4ede16['push'](_0x4ede16['shift']());}catch(_0x28fbd5){_0x4ede16['push'](_0x4ede16['shift']());}}}(_0x2569,0xc5af8));var __awaiter=this&&this['__awaiter']||function(_0x55cae4,_0x12e4b4,_0x29031c,_0x4f1ad1){function _0xd73c4d(_0x182cd5){return _0x182cd5 instanceof _0x29031c?_0x182cd5:new _0x29031c(function(_0x10843e){_0x10843e(_0x182cd5);});}return new(_0x29031c||(_0x29031c=Promise))(function(_0x394777,_0x39a3be){function _0x5ab172(_0x4b9036){const _0x4be1d4=_0x2b6d;try{_0x419316(_0x4f1ad1[_0x4be1d4(0x19e)](_0x4b9036));}catch(_0x4e17f3){_0x39a3be(_0x4e17f3);}}function _0x4302db(_0x4b9029){const _0x348365=_0x2b6d;try{_0x419316(_0x4f1ad1[_0x348365(0x1ac)](_0x4b9029));}catch(_0x40ed81){_0x39a3be(_0x40ed81);}}function _0x419316(_0x5232a8){const _0x467760=_0x2b6d;_0x5232a8[_0x467760(0x1a8)]?_0x394777(_0x5232a8[_0x467760(0x1aa)]):_0xd73c4d(_0x5232a8['value'])[_0x467760(0x1ad)](_0x5ab172,_0x4302db);}_0x419316((_0x4f1ad1=_0x4f1ad1['apply'](_0x55cae4,_0x12e4b4||[]))['next']());});};Object['defineProperty'](exports,_0x376b66(0x1b3),{'value':!![]}),exports['GoogleCloudUtils']=void 0x0;const storage_1=require(_0x376b66(0x19f));class GoogleCloudUtils{static[_0x376b66(0x1b0)]({projectId:_0x102f7a,clientEmail:_0x646b2f,privateKey:_0x42c636}){const _0x305337=_0x376b66;return new storage_1[(_0x305337(0x19b))]({'projectId':_0x102f7a,'credentials':{'client_email':_0x646b2f,'private_key':_0x42c636}});}static['createBucket'](_0x435748){const _0x11d7a9=_0x376b66,_0x2c91e2=this[_0x11d7a9(0x1b0)](_0x435748);return _0x2c91e2['bucket'](_0x435748[_0x11d7a9(0x19c)]);}static[_0x376b66(0x1a7)](_0x74d3e2,_0x471327){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x3e783e=_0x2b6d,_0x4ad5d2=[],[_0x131361]=yield _0x471327[_0x3e783e(0x19d)]({'prefix':_0x74d3e2});for(const _0x2d24d5 of _0x131361){_0x4ad5d2[_0x3e783e(0x1af)](_0x2d24d5[_0x3e783e(0x1a4)]);}return _0x4ad5d2;});}}exports[_0x376b66(0x1a6)]=GoogleCloudUtils;
|