@flosum/storages 1.0.11 → 1.0.12
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/credentials/aws-s3-credentials.js +1 -1
- package/dist/credentials/base-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/base-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/base-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/index.js +1 -1
- package/dist/init.js +1 -1
- package/dist/retrieve/aws-s3-retrieve.js +1 -1
- package/dist/retrieve/base-retrieve.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/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/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x4fd9df=_0x483d;(function(_0x5441ac,_0x211359){const _0x409b04=_0x483d,_0x1e7718=_0x5441ac();while(!![]){try{const _0xb931c0=parseInt(_0x409b04(0x195))/0x1*(parseInt(_0x409b04(0x183))/0x2)+-parseInt(_0x409b04(0x18c))/0x3+parseInt(_0x409b04(0x186))/0x4*(parseInt(_0x409b04(0x18e))/0x5)+parseInt(_0x409b04(0x18b))/0x6*(parseInt(_0x409b04(0x199))/0x7)+parseInt(_0x409b04(0x197))/0x8+-parseInt(_0x409b04(0x196))/0x9*(-parseInt(_0x409b04(0x19f))/0xa)+parseInt(_0x409b04(0x194))/0xb*(-parseInt(_0x409b04(0x193))/0xc);if(_0xb931c0===_0x211359)break;else _0x1e7718['push'](_0x1e7718['shift']());}catch(_0x136d7b){_0x1e7718['push'](_0x1e7718['shift']());}}}(_0x1c78,0x7922b));function _0x483d(_0x2f8c0c,_0x1a469c){const _0x1c78e6=_0x1c78();return _0x483d=function(_0x483d53,_0x467fb9){_0x483d53=_0x483d53-0x182;let _0x457cc0=_0x1c78e6[_0x483d53];return _0x457cc0;},_0x483d(_0x2f8c0c,_0x1a469c);}var __awaiter=this&&this[_0x4fd9df(0x189)]||function(_0x1070d6,_0x33300d,_0xf4bc15,_0x53a906){function _0x44b045(_0x4ebef0){return _0x4ebef0 instanceof _0xf4bc15?_0x4ebef0:new _0xf4bc15(function(_0x141004){_0x141004(_0x4ebef0);});}return new(_0xf4bc15||(_0xf4bc15=Promise))(function(_0x38fadc,_0x2a9f92){const _0x5a7819=_0x483d;function _0x343f0e(_0x2b1bc6){try{_0xb5c2e2(_0x53a906['next'](_0x2b1bc6));}catch(_0x24ddfa){_0x2a9f92(_0x24ddfa);}}function _0x4d2812(_0x49b33d){const _0x3238bb=_0x483d;try{_0xb5c2e2(_0x53a906[_0x3238bb(0x18a)](_0x49b33d));}catch(_0x25a148){_0x2a9f92(_0x25a148);}}function _0xb5c2e2(_0x5134ae){const _0x522421=_0x483d;_0x5134ae[_0x522421(0x190)]?_0x38fadc(_0x5134ae[_0x522421(0x191)]):_0x44b045(_0x5134ae[_0x522421(0x191)])[_0x522421(0x1a0)](_0x343f0e,_0x4d2812);}_0xb5c2e2((_0x53a906=_0x53a906[_0x5a7819(0x19c)](_0x1070d6,_0x33300d||[]))['next']());});},__importDefault=this&&this[_0x4fd9df(0x19e)]||function(_0x59e923){const _0x5cf8b8=_0x4fd9df;return _0x59e923&&_0x59e923[_0x5cf8b8(0x1a1)]?_0x59e923:{'default':_0x59e923};};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['AwsS3Credentials']=void 0x0;const aws_sdk_1=__importDefault(require(_0x4fd9df(0x182))),base_credentials_1=require(_0x4fd9df(0x1a2));class AwsS3Credentials extends base_credentials_1[_0x4fd9df(0x187)]{constructor(){const _0xcbf0c0=_0x4fd9df;super(...arguments),this['s3']=new aws_sdk_1[(_0xcbf0c0(0x188))]['S3']({'accessKeyId':this[_0xcbf0c0(0x185)][_0xcbf0c0(0x19b)],'secretAccessKey':this['credentials'][_0xcbf0c0(0x18d)]});}get[_0x4fd9df(0x19b)](){const _0x3c75a8=_0x4fd9df;return this[_0x3c75a8(0x185)][_0x3c75a8(0x19b)];}get[_0x4fd9df(0x18d)](){const _0xb1cd23=_0x4fd9df;return this[_0xb1cd23(0x185)][_0xb1cd23(0x18d)];}get['bucketName'](){const _0x550c0a=_0x4fd9df;return this['credentials'][_0x550c0a(0x184)];}[_0x4fd9df(0x192)](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x3cebff=_0x483d;try{const _0x3375f9={'Bucket':this[_0x3cebff(0x185)][_0x3cebff(0x184)]};yield this['s3'][_0x3cebff(0x198)](_0x3375f9)[_0x3cebff(0x18f)]();}catch(_0x3b3be6){throw new Error(_0x3cebff(0x19d)+_0x3b3be6[_0x3cebff(0x19a)]);}});}['getCredentials'](_0x145a6f=![]){const _0x427afa=_0x4fd9df;if(_0x145a6f)return{'bucketName':this[_0x427afa(0x185)][_0x427afa(0x184)]};return this[_0x427afa(0x185)];}}exports['AwsS3Credentials']=AwsS3Credentials;function _0x1c78(){const _0x20196e=['__importDefault','370rZrNaJ','then','__esModule','./base-credentials','aws-sdk','90682AZFZCI','bucketName','credentials','72WbaykV','BaseCredentials','default','__awaiter','throw','530430AMXRVq','2538561ARlLbS','secretAccessKey','82180BgOUCp','promise','done','value','validate','6033912mtysEh','33koVLle','10BXLzKT','102213DKdGca','6378552CpCOOS','headBucket','70TanXVJ','message','accessKeyId','apply','Failed\x20to\x20validate\x20storage\x20credentials.\x20Raw\x20error:\x20'];_0x1c78=function(){return _0x20196e;};return _0x1c78();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x15bd(_0x4f1b5e,_0x1c742){var _0x527e2d=_0x527e();return _0x15bd=function(_0x15bd84,_0x28237d){_0x15bd84=_0x15bd84-0xb1;var _0x3261d3=_0x527e2d[_0x15bd84];return _0x3261d3;},_0x15bd(_0x4f1b5e,_0x1c742);}var _0x39a513=_0x15bd;(function(_0x1dafdc,_0xf4b88d){var _0x5edb7f=_0x15bd,_0x3ba440=_0x1dafdc();while(!![]){try{var _0x348c88=parseInt(_0x5edb7f(0xbb))/0x1+parseInt(_0x5edb7f(0xb7))/0x2+-parseInt(_0x5edb7f(0xb3))/0x3*(parseInt(_0x5edb7f(0xba))/0x4)+-parseInt(_0x5edb7f(0xbc))/0x5*(parseInt(_0x5edb7f(0xb8))/0x6)+parseInt(_0x5edb7f(0xbf))/0x7+parseInt(_0x5edb7f(0xbe))/0x8+-parseInt(_0x5edb7f(0xbd))/0x9*(-parseInt(_0x5edb7f(0xb4))/0xa);if(_0x348c88===_0xf4b88d)break;else _0x3ba440['push'](_0x3ba440['shift']());}catch(_0x5cd4d6){_0x3ba440['push'](_0x3ba440['shift']());}}}(_0x527e,0xf31d9));Object[_0x39a513(0xb5)](exports,_0x39a513(0xb2),{'value':!![]}),exports[_0x39a513(0xb6)]=void 0x0;class BaseCredentials{constructor(_0x37b27e){var _0x5189a3=_0x39a513;this[_0x5189a3(0xb9)]=_0x37b27e,this['credentials']=this[_0x5189a3(0xb9)]?JSON[_0x5189a3(0xb1)](this['rawCredentials']):null;}}exports['BaseCredentials']=BaseCredentials;function _0x527e(){var _0x34e4ac=['2777422BiiReG','426fqMtAR','rawCredentials','3911764zXZbaV','582755cKqeyG','101685CKvAON','27xPIDGi','2251768zHQMot','5700387XvPYIs','parse','__esModule','3KDDKTz','1167970nGAByO','defineProperty','BaseCredentials'];_0x527e=function(){return _0x34e4ac;};return _0x527e();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var _0x3d75c2=_0x49b8;(function(_0x41289a,_0x301202){var _0x1886b7=_0x49b8,_0x8db340=_0x41289a();while(!![]){try{var _0x52c275=-parseInt(_0x1886b7(0x1d2))/0x1*(-parseInt(_0x1886b7(0x1de))/0x2)+-parseInt(_0x1886b7(0x1df))/0x3*(-parseInt(_0x1886b7(0x1d6))/0x4)+-parseInt(_0x1886b7(0x1d1))/0x5+-parseInt(_0x1886b7(0x1cf))/0x6*(-parseInt(_0x1886b7(0x1dc))/0x7)+-parseInt(_0x1886b7(0x1ce))/0x8+-parseInt(_0x1886b7(0x1d3))/0x9*(parseInt(_0x1886b7(0x1d5))/0xa)+-parseInt(_0x1886b7(0x1d9))/0xb;if(_0x52c275===_0x301202)break;else _0x8db340['push'](_0x8db340['shift']());}catch(_0x20147c){_0x8db340['push'](_0x8db340['shift']());}}}(_0x40c9,0x32913));Object['defineProperty'](exports,_0x3d75c2(0x1d0),{'value':!![]}),exports[_0x3d75c2(0x1d4)]=exports['AwsS3Credentials']=exports[_0x3d75c2(0x1dd)]=void 0x0;var base_credentials_1=require(_0x3d75c2(0x1db));Object[_0x3d75c2(0x1d7)](exports,_0x3d75c2(0x1dd),{'enumerable':!![],'get':function(){var _0x25ddc3=_0x3d75c2;return base_credentials_1[_0x25ddc3(0x1dd)];}});var aws_s3_credentials_1=require(_0x3d75c2(0x1da));function _0x49b8(_0x2cd8e,_0x44c4a7){var _0x40c9ab=_0x40c9();return _0x49b8=function(_0x49b80f,_0x294691){_0x49b80f=_0x49b80f-0x1cd;var _0x4f873c=_0x40c9ab[_0x49b80f];return _0x4f873c;},_0x49b8(_0x2cd8e,_0x44c4a7);}Object[_0x3d75c2(0x1d7)](exports,_0x3d75c2(0x1d8),{'enumerable':!![],'get':function(){var _0x3959d4=_0x3d75c2;return aws_s3_credentials_1[_0x3959d4(0x1d8)];}});var local_credentials_1=require(_0x3d75c2(0x1cd));function _0x40c9(){var _0x181481=['6KTfAoK','./local-credentials','1198160iKQfZz','2670PoDLQj','__esModule','383755paVtnW','323bYQgKC','45AvZcYX','LocalCredentials','538590inVErm','750940JbIscV','defineProperty','AwsS3Credentials','2767160mEcCwA','./aws-s3-credentials','./base-credentials','5257xusaVE','BaseCredentials','1516eDJJhg'];_0x40c9=function(){return _0x181481;};return _0x40c9();}Object['defineProperty'](exports,_0x3d75c2(0x1d4),{'enumerable':!![],'get':function(){var _0x5397ff=_0x3d75c2;return local_credentials_1[_0x5397ff(0x1d4)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x5a6baf=_0x21af;(function(_0x9af1ac,_0x3b91a9){const _0x4329d8=_0x21af,_0x3d7c84=_0x9af1ac();while(!![]){try{const _0x2351f3=-parseInt(_0x4329d8(0xda))/0x1*(-parseInt(_0x4329d8(0xe0))/0x2)+parseInt(_0x4329d8(0xd7))/0x3+parseInt(_0x4329d8(0xd9))/0x4*(-parseInt(_0x4329d8(0xdb))/0x5)+parseInt(_0x4329d8(0xde))/0x6*(-parseInt(_0x4329d8(0xe2))/0x7)+-parseInt(_0x4329d8(0xd2))/0x8*(parseInt(_0x4329d8(0xd4))/0x9)+parseInt(_0x4329d8(0xd3))/0xa*(parseInt(_0x4329d8(0xd5))/0xb)+-parseInt(_0x4329d8(0xe1))/0xc*(parseInt(_0x4329d8(0xe3))/0xd);if(_0x2351f3===_0x3b91a9)break;else _0x3d7c84['push'](_0x3d7c84['shift']());}catch(_0x29a895){_0x3d7c84['push'](_0x3d7c84['shift']());}}}(_0x5266,0x5fe36));function _0x21af(_0x353cc2,_0x4712a4){const _0x52665b=_0x5266();return _0x21af=function(_0x21af78,_0x2ea46d){_0x21af78=_0x21af78-0xd2;let _0x8adde8=_0x52665b[_0x21af78];return _0x8adde8;},_0x21af(_0x353cc2,_0x4712a4);}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['LocalCredentials']=void 0x0;const base_credentials_1=require('./base-credentials');class LocalCredentials extends base_credentials_1[_0x5a6baf(0xdc)]{[_0x5a6baf(0xdf)](){return null;}[_0x5a6baf(0xd6)](){const _0x1f19a3=_0x5a6baf;return Promise[_0x1f19a3(0xdd)](undefined);}}exports[_0x5a6baf(0xd8)]=LocalCredentials;function _0x5266(){const _0xc5f655=['75atRZmh','BaseCredentials','resolve','24ZXuxQC','getCredentials','438862wxYSIc','24tpRYBJ','132391dktcSr','948597rrnCrI','44880cMdtnY','50950ZKRbPz','711YVKzcF','528yFptdZ','validate','1918320BlVQrH','LocalCredentials','129268UGbDYH','3sSEeBS'];_0x5266=function(){return _0xc5f655;};return _0x5266();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x5afa4a=_0xc2eb;(function(_0x44fdfd,_0x298484){const _0x3c6548=_0xc2eb,_0x55f883=_0x44fdfd();while(!![]){try{const _0x47ba24=parseInt(_0x3c6548(0xa1))/0x1+parseInt(_0x3c6548(0xb9))/0x2*(parseInt(_0x3c6548(0xac))/0x3)+parseInt(_0x3c6548(0xb6))/0x4+-parseInt(_0x3c6548(0xa2))/0x5*(-parseInt(_0x3c6548(0xb4))/0x6)+-parseInt(_0x3c6548(0xa0))/0x7*(parseInt(_0x3c6548(0xaa))/0x8)+-parseInt(_0x3c6548(0xb7))/0x9+-parseInt(_0x3c6548(0xa8))/0xa;if(_0x47ba24===_0x298484)break;else _0x55f883['push'](_0x55f883['shift']());}catch(_0xefc3c6){_0x55f883['push'](_0x55f883['shift']());}}}(_0x4b09,0xa3777));function _0x4b09(){const _0x5c2a61=['execute','264zSKKWa','split','127191mkHjjE','__awaiter','@flosum-service/utils','default','promise','../utils/aws-s3.utils','credentials','AwsS3Delete','432RArnTy','done','3711296ljVZsq','7347024ZfpfAd','__esModule','28ImLLcc','bucketName','getFilesPaths','accessKeyId','apply','posix','secretAccessKey','OBJECTS_PER_CHUNK','sep','189294ltiVdc','1182420JLREtI','75695mUQVSs','next','map','BaseDelete','value','__importDefault','14155290MAuPZw'];_0x4b09=function(){return _0x5c2a61;};return _0x4b09();}function _0xc2eb(_0x1682bb,_0x55127a){const _0x4b096f=_0x4b09();return _0xc2eb=function(_0xc2eb0f,_0x29fcee){_0xc2eb0f=_0xc2eb0f-0x9e;let _0x68d3dc=_0x4b096f[_0xc2eb0f];return _0x68d3dc;},_0xc2eb(_0x1682bb,_0x55127a);}var __awaiter=this&&this[_0x5afa4a(0xad)]||function(_0x461be8,_0x5c34f9,_0x4d68ff,_0x52980f){function _0x447104(_0x2bc60d){return _0x2bc60d instanceof _0x4d68ff?_0x2bc60d:new _0x4d68ff(function(_0x2d630c){_0x2d630c(_0x2bc60d);});}return new(_0x4d68ff||(_0x4d68ff=Promise))(function(_0x287881,_0x468f54){const _0x4f7124=_0xc2eb;function _0x48fde3(_0x202dab){const _0x4c70bb=_0xc2eb;try{_0x3317d7(_0x52980f[_0x4c70bb(0xa3)](_0x202dab));}catch(_0x4da909){_0x468f54(_0x4da909);}}function _0x3e571e(_0xe88b0){try{_0x3317d7(_0x52980f['throw'](_0xe88b0));}catch(_0x3ab011){_0x468f54(_0x3ab011);}}function _0x3317d7(_0x1a9d2b){const _0x39bccb=_0xc2eb;_0x1a9d2b[_0x39bccb(0xb5)]?_0x287881(_0x1a9d2b[_0x39bccb(0xa6)]):_0x447104(_0x1a9d2b[_0x39bccb(0xa6)])['then'](_0x48fde3,_0x3e571e);}_0x3317d7((_0x52980f=_0x52980f[_0x4f7124(0xbd)](_0x461be8,_0x5c34f9||[]))[_0x4f7124(0xa3)]());});},__importDefault=this&&this[_0x5afa4a(0xa7)]||function(_0x56beef){const _0x14ef57=_0x5afa4a;return _0x56beef&&_0x56beef[_0x14ef57(0xb8)]?_0x56beef:{'default':_0x56beef};};Object['defineProperty'](exports,_0x5afa4a(0xb8),{'value':!![]}),exports[_0x5afa4a(0xb3)]=void 0x0;const aws_sdk_1=__importDefault(require('aws-sdk')),path_1=__importDefault(require('path')),utils_1=require(_0x5afa4a(0xae)),aws_s3_utils_1=require(_0x5afa4a(0xb1)),_1=require('./');class AwsS3Delete extends _1[_0x5afa4a(0xa5)]{constructor(_0x54696f){const _0x3bf8f1=_0x5afa4a;super(_0x54696f),this[_0x3bf8f1(0xb2)]=_0x54696f,this[_0x3bf8f1(0x9e)]=0x3e8,this['s3']=new aws_sdk_1[(_0x3bf8f1(0xaf))]['S3']({'accessKeyId':this[_0x3bf8f1(0xb2)][_0x3bf8f1(0xbc)],'secretAccessKey':this[_0x3bf8f1(0xb2)][_0x3bf8f1(0xbf)]});}[_0x5afa4a(0xa9)](_0x5a8f87){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x78368=_0xc2eb,_0x591901=_0x5a8f87[_0x78368(0xab)](path_1[_0x78368(0xaf)][_0x78368(0x9f)])['join'](path_1['default'][_0x78368(0xbe)]['sep']),_0x4099c9=yield aws_s3_utils_1['AwsS3Utils'][_0x78368(0xbb)](_0x591901,this[_0x78368(0xb2)][_0x78368(0xba)],this['s3']),_0x165d18=utils_1['ArrayUtils']['splitOnChunks'](_0x4099c9,this[_0x78368(0x9e)]);for(const _0x2070c4 of _0x165d18){const _0x1bd5b9=_0x2070c4[_0x78368(0xa4)](_0x40b0aa=>({'Key':_0x40b0aa})),_0x26595f={'Bucket':this['credentials'][_0x78368(0xba)],'Delete':{'Objects':_0x1bd5b9}};yield this['s3']['deleteObjects'](_0x26595f)[_0x78368(0xb0)]();}});}}exports[_0x5afa4a(0xb3)]=AwsS3Delete;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x504149=_0x1ff6;(function(_0x367f1c,_0x2443bc){var _0x2d6b7e=_0x1ff6,_0x4ce2d4=_0x367f1c();while(!![]){try{var _0x447452=parseInt(_0x2d6b7e(0x1ac))/0x1*(parseInt(_0x2d6b7e(0x1a0))/0x2)+parseInt(_0x2d6b7e(0x1a8))/0x3*(parseInt(_0x2d6b7e(0x1aa))/0x4)+-parseInt(_0x2d6b7e(0x19d))/0x5*(-parseInt(_0x2d6b7e(0x1ab))/0x6)+parseInt(_0x2d6b7e(0x1a3))/0x7+-parseInt(_0x2d6b7e(0x1a1))/0x8*(parseInt(_0x2d6b7e(0x1a4))/0x9)+-parseInt(_0x2d6b7e(0x19e))/0xa*(parseInt(_0x2d6b7e(0x1a5))/0xb)+parseInt(_0x2d6b7e(0x1a2))/0xc*(-parseInt(_0x2d6b7e(0x19f))/0xd);if(_0x447452===_0x2443bc)break;else _0x4ce2d4['push'](_0x4ce2d4['shift']());}catch(_0x3c6081){_0x4ce2d4['push'](_0x4ce2d4['shift']());}}}(_0x2fb2,0x57bd2));function _0x1ff6(_0x479a3f,_0x5a6c61){var _0x2fb25e=_0x2fb2();return _0x1ff6=function(_0x1ff604,_0x4047c8){_0x1ff604=_0x1ff604-0x19d;var _0x397585=_0x2fb25e[_0x1ff604];return _0x397585;},_0x1ff6(_0x479a3f,_0x5a6c61);}Object[_0x504149(0x1a7)](exports,_0x504149(0x1a9),{'value':!![]}),exports['BaseDelete']=void 0x0;class BaseDelete{constructor(_0x2b1928){this['credentials']=_0x2b1928;}}exports[_0x504149(0x1a6)]=BaseDelete;function _0x2fb2(){var _0x483bb2=['4fKEhWf','313914cRblaB','219rEuraQ','5axorYc','10KYMhzz','429wHmBMd','2568CGjEBZ','1192HVrTyU','84468xlRiie','4079677hCvdSJ','40923cepyJE','2369411eGRGRt','BaseDelete','defineProperty','1704729ynHTDF','__esModule'];_0x2fb2=function(){return _0x483bb2;};return _0x2fb2();}
|
package/dist/delete/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function _0x2a12(_0x348176,_0x19452b){var _0x1c2ff1=_0x1c2f();return _0x2a12=function(_0x2a1282,_0x38d448){_0x2a1282=_0x2a1282-0x11f;var _0x36a7c2=_0x1c2ff1[_0x2a1282];return _0x36a7c2;},_0x2a12(_0x348176,_0x19452b);}var _0x9e0097=_0x2a12;(function(_0x481112,_0x269c83){var _0x4eaef5=_0x2a12,_0x4b3793=_0x481112();while(!![]){try{var _0x4b1eca=parseInt(_0x4eaef5(0x128))/0x1+parseInt(_0x4eaef5(0x11f))/0x2+parseInt(_0x4eaef5(0x126))/0x3+parseInt(_0x4eaef5(0x125))/0x4*(-parseInt(_0x4eaef5(0x12f))/0x5)+parseInt(_0x4eaef5(0x122))/0x6*(-parseInt(_0x4eaef5(0x12d))/0x7)+parseInt(_0x4eaef5(0x120))/0x8*(parseInt(_0x4eaef5(0x12b))/0x9)+-parseInt(_0x4eaef5(0x12a))/0xa;if(_0x4b1eca===_0x269c83)break;else _0x4b3793['push'](_0x4b3793['shift']());}catch(_0x5009d8){_0x4b3793['push'](_0x4b3793['shift']());}}}(_0x1c2f,0xc6097));function _0x1c2f(){var _0x235ef9=['6956470lBcpOG','495VTwmSS','__esModule','28fBMymO','BaseDelete','67570IGWCje','./base-delete','391884DTRwgH','186904BGQKke','LocalDelete','761328YuFGEU','./local-delete','defineProperty','248QLmfzP','491883FWjBHI','./aws-s3-delete','1207358dEuhnn','AwsS3Delete'];_0x1c2f=function(){return _0x235ef9;};return _0x1c2f();}Object[_0x9e0097(0x124)](exports,_0x9e0097(0x12c),{'value':!![]}),exports['LocalDelete']=exports[_0x9e0097(0x129)]=exports[_0x9e0097(0x12e)]=void 0x0;var base_delete_1=require(_0x9e0097(0x130));Object[_0x9e0097(0x124)](exports,_0x9e0097(0x12e),{'enumerable':!![],'get':function(){var _0x3dbc26=_0x9e0097;return base_delete_1[_0x3dbc26(0x12e)];}});var aws_s3_delete_1=require(_0x9e0097(0x127));Object[_0x9e0097(0x124)](exports,_0x9e0097(0x129),{'enumerable':!![],'get':function(){return aws_s3_delete_1['AwsS3Delete'];}});var local_delete_1=require(_0x9e0097(0x123));Object[_0x9e0097(0x124)](exports,_0x9e0097(0x121),{'enumerable':!![],'get':function(){var _0x1f6ee0=_0x9e0097;return local_delete_1[_0x1f6ee0(0x121)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x4faa(){const _0x2a65e5=['then','done','fs/promises','28426tJUhIT','isExistsPath','12urELrA','22HxXkOE','27HntrZL','301409JecYJK','2346127tJPfMB','defineProperty','execute','10syNbBo','@flosum-service/utils','__esModule','__awaiter','next','LocalDelete','16vXYSXI','throw','value','2311002UDTyqH','6079110YWaAil','3618900KWUhxB','FsUtils','48092qqnKHV'];_0x4faa=function(){return _0x2a65e5;};return _0x4faa();}const _0x97414b=_0x48fa;(function(_0x5f156e,_0x187281){const _0x5299ae=_0x48fa,_0x33ccef=_0x5f156e();while(!![]){try{const _0x2a2bb9=parseInt(_0x5299ae(0x11c))/0x1+parseInt(_0x5299ae(0x117))/0x2*(parseInt(_0x5299ae(0x11b))/0x3)+parseInt(_0x5299ae(0x113))/0x4*(-parseInt(_0x5299ae(0x120))/0x5)+parseInt(_0x5299ae(0x119))/0x6*(parseInt(_0x5299ae(0x11d))/0x7)+-parseInt(_0x5299ae(0x126))/0x8*(-parseInt(_0x5299ae(0x129))/0x9)+-parseInt(_0x5299ae(0x12a))/0xa+-parseInt(_0x5299ae(0x11a))/0xb*(parseInt(_0x5299ae(0x12b))/0xc);if(_0x2a2bb9===_0x187281)break;else _0x33ccef['push'](_0x33ccef['shift']());}catch(_0x5a126d){_0x33ccef['push'](_0x33ccef['shift']());}}}(_0x4faa,0x5c4f1));var __awaiter=this&&this[_0x97414b(0x123)]||function(_0x43da73,_0x59f111,_0x339d2d,_0x409134){function _0x90bbb(_0x512773){return _0x512773 instanceof _0x339d2d?_0x512773:new _0x339d2d(function(_0x44eebe){_0x44eebe(_0x512773);});}return new(_0x339d2d||(_0x339d2d=Promise))(function(_0x48a5d6,_0x532274){const _0x44af1a=_0x48fa;function _0x204c0e(_0x1429cd){const _0x3416c1=_0x48fa;try{_0x87c745(_0x409134[_0x3416c1(0x124)](_0x1429cd));}catch(_0x4f4dbd){_0x532274(_0x4f4dbd);}}function _0x1fc2d4(_0x41caef){const _0x1816fd=_0x48fa;try{_0x87c745(_0x409134[_0x1816fd(0x127)](_0x41caef));}catch(_0x5c15a5){_0x532274(_0x5c15a5);}}function _0x87c745(_0x47909e){const _0x3c9c74=_0x48fa;_0x47909e[_0x3c9c74(0x115)]?_0x48a5d6(_0x47909e[_0x3c9c74(0x128)]):_0x90bbb(_0x47909e[_0x3c9c74(0x128)])[_0x3c9c74(0x114)](_0x204c0e,_0x1fc2d4);}_0x87c745((_0x409134=_0x409134['apply'](_0x43da73,_0x59f111||[]))[_0x44af1a(0x124)]());});};function _0x48fa(_0xc62676,_0x443992){const _0x4faa08=_0x4faa();return _0x48fa=function(_0x48fa28,_0x15efea){_0x48fa28=_0x48fa28-0x112;let _0x54149c=_0x4faa08[_0x48fa28];return _0x54149c;},_0x48fa(_0xc62676,_0x443992);}Object[_0x97414b(0x11e)](exports,_0x97414b(0x122),{'value':!![]}),exports[_0x97414b(0x125)]=void 0x0;const promises_1=require(_0x97414b(0x116)),utils_1=require(_0x97414b(0x121)),_1=require('./');class LocalDelete extends _1['BaseDelete']{[_0x97414b(0x11f)](_0x3d5e7c){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x71ca6d=_0x48fa;if(yield utils_1[_0x71ca6d(0x112)][_0x71ca6d(0x118)](_0x3d5e7c))yield(0x0,promises_1['rm'])(_0x3d5e7c,{'recursive':!![]});});}}exports[_0x97414b(0x125)]=LocalDelete;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const _0x2d9daa=_0x214f;function _0x214f(_0x2d6974,_0x473cc8){const _0x240fbe=_0x240f();return _0x214f=function(_0x214ffb,_0x2bef4d){_0x214ffb=_0x214ffb-0xd6;let _0x2a527c=_0x240fbe[_0x214ffb];return _0x2a527c;},_0x214f(_0x2d6974,_0x473cc8);}(function(_0x4dd33a,_0x59c0f8){const _0x17f762=_0x214f,_0x58d190=_0x4dd33a();while(!![]){try{const _0x4b87f4=parseInt(_0x17f762(0xdc))/0x1+parseInt(_0x17f762(0xe1))/0x2*(-parseInt(_0x17f762(0xdf))/0x3)+parseInt(_0x17f762(0xe7))/0x4*(-parseInt(_0x17f762(0xe8))/0x5)+-parseInt(_0x17f762(0xee))/0x6*(-parseInt(_0x17f762(0xe2))/0x7)+-parseInt(_0x17f762(0xdb))/0x8+-parseInt(_0x17f762(0xd6))/0x9*(parseInt(_0x17f762(0xf1))/0xa)+parseInt(_0x17f762(0xdd))/0xb;if(_0x4b87f4===_0x59c0f8)break;else _0x58d190['push'](_0x58d190['shift']());}catch(_0x167d8b){_0x58d190['push'](_0x58d190['shift']());}}}(_0x240f,0x749dc));var __awaiter=this&&this[_0x2d9daa(0xfa)]||function(_0x550155,_0x3405db,_0x5ad216,_0x56957d){function _0x159ec0(_0x445d9e){return _0x445d9e instanceof _0x5ad216?_0x445d9e:new _0x5ad216(function(_0x264448){_0x264448(_0x445d9e);});}return new(_0x5ad216||(_0x5ad216=Promise))(function(_0xe99b3d,_0x165581){const _0x2310e6=_0x214f;function _0x10f592(_0x53fe8e){const _0x2b78b4=_0x214f;try{_0x4ceda6(_0x56957d[_0x2b78b4(0xe0)](_0x53fe8e));}catch(_0x3965e1){_0x165581(_0x3965e1);}}function _0x1f6942(_0x2596f4){const _0xe9c253=_0x214f;try{_0x4ceda6(_0x56957d[_0xe9c253(0xf0)](_0x2596f4));}catch(_0x41281a){_0x165581(_0x41281a);}}function _0x4ceda6(_0xa8c5db){const _0x4912de=_0x214f;_0xa8c5db[_0x4912de(0xeb)]?_0xe99b3d(_0xa8c5db[_0x4912de(0xde)]):_0x159ec0(_0xa8c5db[_0x4912de(0xde)])[_0x4912de(0xd9)](_0x10f592,_0x1f6942);}_0x4ceda6((_0x56957d=_0x56957d[_0x2310e6(0xe3)](_0x550155,_0x3405db||[]))[_0x2310e6(0xe0)]());});},__importDefault=this&&this[_0x2d9daa(0xe4)]||function(_0x7c156b){return _0x7c156b&&_0x7c156b['__esModule']?_0x7c156b:{'default':_0x7c156b};};Object[_0x2d9daa(0xf5)](exports,_0x2d9daa(0xf3),{'value':!![]}),exports[_0x2d9daa(0xd7)]=void 0x0;const aws_sdk_1=__importDefault(require('aws-sdk')),path_1=__importDefault(require(_0x2d9daa(0xfe))),crypto_1=require('crypto'),fs_1=require('fs'),promises_1=require('fs/promises'),_1=require('./');class AwsS3Deploy extends _1[_0x2d9daa(0xf7)]{constructor(_0x1ffb49,_0x52c265,_0x178841){const _0x2a37f0=_0x2d9daa;super(_0x1ffb49,_0x52c265),this[_0x2a37f0(0xd8)]=_0x1ffb49,this['tempDir']=_0x52c265,this[_0x2a37f0(0xef)]=_0x178841,this[_0x2a37f0(0xfc)]=0xa,this['s3']=new aws_sdk_1['default']['S3']({'accessKeyId':this[_0x2a37f0(0xd8)]['accessKeyId'],'secretAccessKey':this['credentials'][_0x2a37f0(0xec)]});}['writeToTemp'](_0x28ef18){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x41fdb4=_0x214f,_0x5a9efb=path_1[_0x41fdb4(0xfb)]['join'](this[_0x41fdb4(0xda)],(0x0,crypto_1[_0x41fdb4(0xff)])());return yield(0x0,promises_1[_0x41fdb4(0xf9)])(_0x5a9efb,_0x28ef18),{'path':_0x5a9efb};});}[_0x2d9daa(0xe6)](_0x479d89,_0x28c620,_0x29679f=0x0,_0x39b01f=null){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x413ff3=_0x214f;if(_0x29679f>this[_0x413ff3(0xfc)])throw _0x39b01f;const _0x483d45=(0x0,fs_1[_0x413ff3(0xea)])(_0x479d89);try{yield this[_0x413ff3(0xe5)](_0x483d45,_0x28c620);}catch(_0x1923e3){return this[_0x413ff3(0xe6)](_0x479d89,_0x28c620,_0x29679f+0x1,_0x1923e3);}});}[_0x2d9daa(0xe5)](_0x387bdb,_0x2ccc32){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x1c499f=_0x214f,_0x4460e0={'Bucket':this[_0x1c499f(0xd8)]['bucketName'],'Key':_0x2ccc32,'Body':_0x387bdb,'StorageClass':this[_0x1c499f(0xef)]};yield this['s3']['upload'](_0x4460e0)[_0x1c499f(0xfd)]();});}['handleStreamUpload'](_0x766769,_0x262b8c){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x417dd1=_0x214f,{path:_0x41ea23}=yield this[_0x417dd1(0xf6)](_0x766769);try{yield this[_0x417dd1(0xe6)](_0x41ea23,_0x262b8c);}catch(_0x26012f){throw _0x26012f;}finally{yield(0x0,promises_1['rm'])(_0x41ea23)['catch'](()=>undefined);}});}[_0x2d9daa(0xf2)](_0x396caa,_0x484120){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x3405f9=_0x214f;try{const _0x175bd2=_0x484120[_0x3405f9(0x100)](path_1[_0x3405f9(0xfb)][_0x3405f9(0xe9)])[_0x3405f9(0xf8)](path_1['default']['posix'][_0x3405f9(0xe9)]);if(Buffer[_0x3405f9(0xf4)](_0x396caa)){yield this[_0x3405f9(0xe5)](_0x396caa,_0x175bd2);return;}yield this[_0x3405f9(0xed)](_0x396caa,_0x175bd2);}catch(_0xf29bdf){throw _0xf29bdf;}});}}exports[_0x2d9daa(0xd7)]=AwsS3Deploy;function _0x240f(){const _0x1f68ed=['apply','__importDefault','upload','uploadFileStreamFromPath','484228MJSLpd','25QRXqHS','sep','createReadStream','done','secretAccessKey','handleStreamUpload','18SYQEAj','storageClass','throw','166070KzadOx','execute','__esModule','isBuffer','defineProperty','writeToTemp','BaseDeploy','join','writeFile','__awaiter','default','MAX_RETRIES','promise','path','randomUUID','split','99BbwvFZ','AwsS3Deploy','credentials','then','tempDir','6564744nTUutS','302138WwFdaa','22949806VmJqXn','value','3GGNMkh','next','875948KmpHIb','316645hcFmHH'];_0x240f=function(){return _0x1f68ed;};return _0x240f();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x449415=_0x9c13;(function(_0x253822,_0x22167b){var _0x5291b7=_0x9c13,_0x2c9d7b=_0x253822();while(!![]){try{var _0x395149=-parseInt(_0x5291b7(0xcf))/0x1*(-parseInt(_0x5291b7(0xd0))/0x2)+-parseInt(_0x5291b7(0xd2))/0x3*(-parseInt(_0x5291b7(0xce))/0x4)+parseInt(_0x5291b7(0xdc))/0x5*(parseInt(_0x5291b7(0xd7))/0x6)+parseInt(_0x5291b7(0xcd))/0x7*(-parseInt(_0x5291b7(0xda))/0x8)+-parseInt(_0x5291b7(0xd6))/0x9*(parseInt(_0x5291b7(0xd9))/0xa)+parseInt(_0x5291b7(0xd4))/0xb*(-parseInt(_0x5291b7(0xd1))/0xc)+-parseInt(_0x5291b7(0xdb))/0xd*(-parseInt(_0x5291b7(0xd8))/0xe);if(_0x395149===_0x22167b)break;else _0x2c9d7b['push'](_0x2c9d7b['shift']());}catch(_0x1e111e){_0x2c9d7b['push'](_0x2c9d7b['shift']());}}}(_0x5131,0x3d79e));function _0x5131(){var _0x250909=['21FwBlum','tempDir','33lAeeqh','__esModule','841887DdMiGy','36EAgyHl','14jIiFkJ','40SzeHAs','744384kFOYSx','9038341VmcfmN','256180pkjuJl','BaseDeploy','defineProperty','21gHAyMH','33036WJlUlt','433BNpIOx','1332vJxgda','1774968NQmoBf'];_0x5131=function(){return _0x250909;};return _0x5131();}Object[_0x449415(0xcc)](exports,_0x449415(0xd5),{'value':!![]}),exports[_0x449415(0xcb)]=void 0x0;class BaseDeploy{constructor(_0x38971f,_0x1fcfd1){var _0x59eea8=_0x449415;this['credentials']=_0x38971f,this[_0x59eea8(0xd3)]=_0x1fcfd1;}}function _0x9c13(_0x23de3f,_0x5a0bee){var _0x513100=_0x5131();return _0x9c13=function(_0x9c13d6,_0x5e6c54){_0x9c13d6=_0x9c13d6-0xcb;var _0x32f470=_0x513100[_0x9c13d6];return _0x32f470;},_0x9c13(_0x23de3f,_0x5a0bee);}exports['BaseDeploy']=BaseDeploy;
|
package/dist/deploy/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var _0x2b2c1c=_0x1d1b;(function(_0x408a19,_0x8ac6e8){var _0x89adf0=_0x1d1b,_0x39686e=_0x408a19();while(!![]){try{var _0x29ab15=parseInt(_0x89adf0(0x6a))/0x1*(parseInt(_0x89adf0(0x76))/0x2)+parseInt(_0x89adf0(0x75))/0x3*(parseInt(_0x89adf0(0x78))/0x4)+parseInt(_0x89adf0(0x6f))/0x5*(parseInt(_0x89adf0(0x74))/0x6)+-parseInt(_0x89adf0(0x77))/0x7*(-parseInt(_0x89adf0(0x72))/0x8)+parseInt(_0x89adf0(0x6c))/0x9+-parseInt(_0x89adf0(0x71))/0xa*(-parseInt(_0x89adf0(0x6d))/0xb)+-parseInt(_0x89adf0(0x6e))/0xc;if(_0x29ab15===_0x8ac6e8)break;else _0x39686e['push'](_0x39686e['shift']());}catch(_0x149742){_0x39686e['push'](_0x39686e['shift']());}}}(_0x4cbb,0x67aff));function _0x4cbb(){var _0x2a6e40=['./local-deploy','__esModule','./aws-s3-deploy','502921TjMzvN','AwsS3Deploy','6905871DdwQsl','132ogWigU','21825744EFpdsx','25RLMCZU','BaseDeploy','52950McfzhZ','8BcRruk','defineProperty','873462kZLmhj','135pUznnP','2brDUPp','498365sWelcu','9836sIuRXe','LocalDeploy'];_0x4cbb=function(){return _0x2a6e40;};return _0x4cbb();}Object[_0x2b2c1c(0x73)](exports,_0x2b2c1c(0x68),{'value':!![]}),exports[_0x2b2c1c(0x79)]=exports[_0x2b2c1c(0x6b)]=exports[_0x2b2c1c(0x70)]=void 0x0;var base_deploy_1=require('./base-deploy');Object[_0x2b2c1c(0x73)](exports,_0x2b2c1c(0x70),{'enumerable':!![],'get':function(){return base_deploy_1['BaseDeploy'];}});function _0x1d1b(_0x42f902,_0x338eb5){var _0x4cbb05=_0x4cbb();return _0x1d1b=function(_0x1d1b36,_0x19079c){_0x1d1b36=_0x1d1b36-0x67;var _0x1db110=_0x4cbb05[_0x1d1b36];return _0x1db110;},_0x1d1b(_0x42f902,_0x338eb5);}var aws_s3_deploy_1=require(_0x2b2c1c(0x69));Object[_0x2b2c1c(0x73)](exports,_0x2b2c1c(0x6b),{'enumerable':!![],'get':function(){return aws_s3_deploy_1['AwsS3Deploy'];}});var local_deploy_1=require(_0x2b2c1c(0x67));Object[_0x2b2c1c(0x73)](exports,_0x2b2c1c(0x79),{'enumerable':!![],'get':function(){var _0x9c1d0d=_0x2b2c1c;return local_deploy_1[_0x9c1d0d(0x79)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x190a5e=_0x40dc;(function(_0x1c39d5,_0x5346e7){const _0x22b0d4=_0x40dc,_0x5f3f1e=_0x1c39d5();while(!![]){try{const _0x3d279b=-parseInt(_0x22b0d4(0xb3))/0x1*(parseInt(_0x22b0d4(0xb9))/0x2)+-parseInt(_0x22b0d4(0xc1))/0x3+parseInt(_0x22b0d4(0xb4))/0x4*(-parseInt(_0x22b0d4(0xbe))/0x5)+-parseInt(_0x22b0d4(0xac))/0x6+-parseInt(_0x22b0d4(0xb7))/0x7*(parseInt(_0x22b0d4(0xb6))/0x8)+parseInt(_0x22b0d4(0xb1))/0x9+parseInt(_0x22b0d4(0xb0))/0xa;if(_0x3d279b===_0x5346e7)break;else _0x5f3f1e['push'](_0x5f3f1e['shift']());}catch(_0x22b6b3){_0x5f3f1e['push'](_0x5f3f1e['shift']());}}}(_0x584e,0x359e2));var __awaiter=this&&this['__awaiter']||function(_0x325b79,_0x28c52c,_0x3a077d,_0x568a94){function _0x1dce55(_0x49e2af){return _0x49e2af instanceof _0x3a077d?_0x49e2af:new _0x3a077d(function(_0x44349d){_0x44349d(_0x49e2af);});}return new(_0x3a077d||(_0x3a077d=Promise))(function(_0x2e1f1c,_0x4846d4){const _0x15593a=_0x40dc;function _0x16e21f(_0x5356ac){const _0xb55250=_0x40dc;try{_0x4d05bd(_0x568a94[_0xb55250(0xbc)](_0x5356ac));}catch(_0x2926e3){_0x4846d4(_0x2926e3);}}function _0x7c628c(_0x11a289){const _0x14a503=_0x40dc;try{_0x4d05bd(_0x568a94[_0x14a503(0xbf)](_0x11a289));}catch(_0x152df2){_0x4846d4(_0x152df2);}}function _0x4d05bd(_0x19ce1b){const _0x24a7d9=_0x40dc;_0x19ce1b[_0x24a7d9(0xc2)]?_0x2e1f1c(_0x19ce1b['value']):_0x1dce55(_0x19ce1b['value'])[_0x24a7d9(0xae)](_0x16e21f,_0x7c628c);}_0x4d05bd((_0x568a94=_0x568a94['apply'](_0x325b79,_0x28c52c||[]))[_0x15593a(0xbc)]());});},__importDefault=this&&this[_0x190a5e(0xab)]||function(_0x1bb335){const _0x37c05c=_0x190a5e;return _0x1bb335&&_0x1bb335[_0x37c05c(0xb2)]?_0x1bb335:{'default':_0x1bb335};};function _0x40dc(_0x8006b8,_0x31c515){const _0x584e90=_0x584e();return _0x40dc=function(_0x40dcdb,_0x9825c0){_0x40dcdb=_0x40dcdb-0xa9;let _0x3a555a=_0x584e90[_0x40dcdb];return _0x3a555a;},_0x40dc(_0x8006b8,_0x31c515);}Object[_0x190a5e(0xb8)](exports,_0x190a5e(0xb2),{'value':!![]}),exports['LocalDeploy']=void 0x0;const path_1=__importDefault(require(_0x190a5e(0xbb))),promises_1=require(_0x190a5e(0xc0)),utils_1=require(_0x190a5e(0xb5)),_1=require('./');class LocalDeploy extends _1[_0x190a5e(0xad)]{['execute'](_0x85635f,_0x1c69ac){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x24a4b5=_0x40dc;try{const _0x33840b=path_1['default'][_0x24a4b5(0xba)](_0x1c69ac),_0x17f241=yield utils_1['FsUtils'][_0x24a4b5(0xaf)](_0x33840b);!_0x17f241&&(yield(0x0,promises_1[_0x24a4b5(0xa9)])(_0x33840b,{'recursive':!![]})),yield(0x0,promises_1[_0x24a4b5(0xbd)])(_0x1c69ac,_0x85635f);}catch(_0x11f41a){(yield utils_1[_0x24a4b5(0xaa)][_0x24a4b5(0xaf)](_0x1c69ac))&&(yield(0x0,promises_1['rm'])(_0x1c69ac,{'recursive':!![]}));throw _0x11f41a;}});}}exports[_0x190a5e(0xc3)]=LocalDeploy;function _0x584e(){const _0x30e5d2=['dirname','path','next','writeFile','25945EFHGFV','throw','fs/promises','33108Nsozcx','done','LocalDeploy','mkdir','FsUtils','__importDefault','1535226ZmOnua','BaseDeploy','then','isExistsPath','7280380PBUGLm','3715578Sblbgj','__esModule','96251OOrDYZ','236wGUBew','@flosum-service/utils','8344QeXUyc','399ozMfdC','defineProperty','6vOgNhI'];_0x584e=function(){return _0x30e5d2;};return _0x584e();}
|
package/dist/factory.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x1722bc=_0x508c;(function(_0x37cbcd,_0x34c97c){const _0x109d1b=_0x508c,_0x1c0162=_0x37cbcd();while(!![]){try{const _0x34d714=parseInt(_0x109d1b(0x84))/0x1*(-parseInt(_0x109d1b(0x90))/0x2)+parseInt(_0x109d1b(0x95))/0x3*(-parseInt(_0x109d1b(0x88))/0x4)+parseInt(_0x109d1b(0x96))/0x5*(parseInt(_0x109d1b(0x9c))/0x6)+-parseInt(_0x109d1b(0x89))/0x7+-parseInt(_0x109d1b(0x8c))/0x8+parseInt(_0x109d1b(0x7c))/0x9*(-parseInt(_0x109d1b(0x91))/0xa)+parseInt(_0x109d1b(0x8e))/0xb;if(_0x34d714===_0x34c97c)break;else _0x1c0162['push'](_0x1c0162['shift']());}catch(_0x1dd867){_0x1c0162['push'](_0x1c0162['shift']());}}}(_0x54e9,0x9e443));function _0x508c(_0x4e00d6,_0x61c4ee){const _0x54e912=_0x54e9();return _0x508c=function(_0x508c4d,_0x510c92){_0x508c4d=_0x508c4d-0x7c;let _0x52c7dd=_0x54e912[_0x508c4d];return _0x52c7dd;},_0x508c(_0x4e00d6,_0x61c4ee);}Object[_0x1722bc(0x7f)](exports,'__esModule',{'value':!![]}),exports[_0x1722bc(0x7d)]=void 0x0;const storage_type_enum_1=require('./types/storage-type.enum'),aws_s3_credentials_1=require(_0x1722bc(0x83)),local_credentials_1=require(_0x1722bc(0x8b)),aws_s3_delete_1=require(_0x1722bc(0x92)),local_delete_1=require(_0x1722bc(0x7e)),aws_s3_deploy_1=require(_0x1722bc(0x87)),local_deploy_1=require(_0x1722bc(0x86)),aws_s3_retrieve_1=require(_0x1722bc(0x97)),local_retrieve_1=require(_0x1722bc(0x93));class StorageFactory{static['createRetrieve'](_0x3251da,_0x2ff29f,_0x1cf333,_0x2a33c8){const _0x318139=_0x1722bc;switch(_0x3251da){case storage_type_enum_1['StorageType'][_0x318139(0x98)]:return new aws_s3_retrieve_1['AwsS3Retrieve'](_0x2ff29f,_0x1cf333,_0x2a33c8);case storage_type_enum_1[_0x318139(0x80)][_0x318139(0x8a)]:return new local_retrieve_1[(_0x318139(0x85))](_0x2ff29f,_0x1cf333);default:throw new Error(_0x318139(0x82)+_0x3251da+'\x22');}}static[_0x1722bc(0x8d)](_0x3dc7db,_0x14691a,_0x88c959,_0x33f453){const _0x3fe396=_0x1722bc;switch(_0x3dc7db){case storage_type_enum_1[_0x3fe396(0x80)]['AWS_S3']:return new aws_s3_deploy_1[(_0x3fe396(0x99))](_0x14691a,_0x88c959,_0x33f453);case storage_type_enum_1[_0x3fe396(0x80)][_0x3fe396(0x8a)]:return new local_deploy_1['LocalDeploy'](_0x14691a,_0x88c959);default:throw new Error(_0x3fe396(0x82)+_0x3dc7db+'\x22');}}static[_0x1722bc(0x8f)](_0x43c24c,_0x2886c6){const _0x273f81=_0x1722bc;switch(_0x43c24c){case storage_type_enum_1[_0x273f81(0x80)][_0x273f81(0x98)]:return new aws_s3_delete_1[(_0x273f81(0x81))](_0x2886c6);case storage_type_enum_1[_0x273f81(0x80)][_0x273f81(0x8a)]:return new local_delete_1[(_0x273f81(0x9b))](_0x2886c6);default:throw new Error(_0x273f81(0x82)+_0x43c24c+'\x22');}}static[_0x1722bc(0x9a)](_0x2f4811,_0x18cfb7){const _0x40b01d=_0x1722bc;switch(_0x2f4811){case storage_type_enum_1[_0x40b01d(0x80)][_0x40b01d(0x98)]:return new aws_s3_credentials_1[(_0x40b01d(0x94))](_0x18cfb7);case storage_type_enum_1[_0x40b01d(0x80)][_0x40b01d(0x8a)]:return new local_credentials_1['LocalCredentials']();default:throw new Error(_0x40b01d(0x82)+_0x2f4811+'\x22');}}}function _0x54e9(){const _0x183997=['LocalRetrieve','./deploy/local-deploy','./deploy/aws-s3-deploy','28AAOAku','8681876uzDAJe','Local','./credentials/local-credentials','8009072iYXosb','createDeploy','44238414KeTpwb','createDelete','2ItMHZk','233270lNjEaM','./delete/aws-s3-delete','./retrieve/local-retrieve','AwsS3Credentials','347298cqbNTj','35oHZusy','./retrieve/aws-s3-retrieve','AWS_S3','AwsS3Deploy','createCredentials','LocalDelete','399054IKxdwd','189EinbQt','StorageFactory','./delete/local-delete','defineProperty','StorageType','AwsS3Delete','Unknown\x20storage\x20type\x20-\x20\x22','./credentials/aws-s3-credentials','297347aKMxGc'];_0x54e9=function(){return _0x183997;};return _0x54e9();}exports[_0x1722bc(0x7d)]=StorageFactory;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';var _0x16c6cc=_0x1d44;function _0x2114(){var _0x5c7abb=['call','writable','./init','60nAZreF','44FliTRV','get','6draxdz','./delete','prototype','__esModule','764764PFVoUr','3914456nMoaZj','320823dzlbBf','3789443LDrdjw','getOwnPropertyDescriptor','__exportStar','302331CVSdGR','./retrieve','./types','__createBinding','StorageFactory','create','./factory','712aodXMJ','6VbuQRp','1490hHalSu','configurable','defineProperty','default','./deploy','2272188vnjDQv'];_0x2114=function(){return _0x5c7abb;};return _0x2114();}(function(_0x58c3bf,_0x464335){var _0x4bb742=_0x1d44,_0x531f14=_0x58c3bf();while(!![]){try{var _0x19348c=parseInt(_0x4bb742(0x14f))/0x1+parseInt(_0x4bb742(0x14b))/0x2*(-parseInt(_0x4bb742(0x155))/0x3)+-parseInt(_0x4bb742(0x15c))/0x4*(parseInt(_0x4bb742(0x15e))/0x5)+-parseInt(_0x4bb742(0x15d))/0x6*(-parseInt(_0x4bb742(0x152))/0x7)+parseInt(_0x4bb742(0x150))/0x8+parseInt(_0x4bb742(0x151))/0x9*(-parseInt(_0x4bb742(0x148))/0xa)+parseInt(_0x4bb742(0x149))/0xb*(-parseInt(_0x4bb742(0x144))/0xc);if(_0x19348c===_0x464335)break;else _0x531f14['push'](_0x531f14['shift']());}catch(_0x461d8c){_0x531f14['push'](_0x531f14['shift']());}}}(_0x2114,0x7271f));function _0x1d44(_0x1aed1c,_0x1b0019){var _0x2114ef=_0x2114();return _0x1d44=function(_0x1d44b8,_0x2c4210){_0x1d44b8=_0x1d44b8-0x140;var _0xb6beb1=_0x2114ef[_0x1d44b8];return _0xb6beb1;},_0x1d44(_0x1aed1c,_0x1b0019);}var __createBinding=this&&this[_0x16c6cc(0x158)]||(Object[_0x16c6cc(0x15a)]?function(_0x37457d,_0x2d4f9e,_0x142819,_0x483113){var _0x1d52f5=_0x16c6cc;if(_0x483113===undefined)_0x483113=_0x142819;var _0xaad6d=Object[_0x1d52f5(0x153)](_0x2d4f9e,_0x142819);(!_0xaad6d||(_0x1d52f5(0x14a)in _0xaad6d?!_0x2d4f9e[_0x1d52f5(0x14e)]:_0xaad6d[_0x1d52f5(0x146)]||_0xaad6d[_0x1d52f5(0x140)]))&&(_0xaad6d={'enumerable':!![],'get':function(){return _0x2d4f9e[_0x142819];}}),Object['defineProperty'](_0x37457d,_0x483113,_0xaad6d);}:function(_0x24f998,_0xfca00d,_0x4922d3,_0x136cd5){if(_0x136cd5===undefined)_0x136cd5=_0x4922d3;_0x24f998[_0x136cd5]=_0xfca00d[_0x4922d3];}),__exportStar=this&&this[_0x16c6cc(0x154)]||function(_0x1a9a4b,_0x85dc38){var _0x2f7c55=_0x16c6cc;for(var _0x2cb0a1 in _0x1a9a4b)if(_0x2cb0a1!==_0x2f7c55(0x142)&&!Object[_0x2f7c55(0x14d)]['hasOwnProperty'][_0x2f7c55(0x145)](_0x85dc38,_0x2cb0a1))__createBinding(_0x85dc38,_0x1a9a4b,_0x2cb0a1);};Object['defineProperty'](exports,_0x16c6cc(0x14e),{'value':!![]}),exports[_0x16c6cc(0x159)]=void 0x0,require(_0x16c6cc(0x147)),__exportStar(require('./credentials'),exports),__exportStar(require(_0x16c6cc(0x14c)),exports),__exportStar(require(_0x16c6cc(0x143)),exports),__exportStar(require(_0x16c6cc(0x156)),exports);var factory_1=require(_0x16c6cc(0x15b));Object[_0x16c6cc(0x141)](exports,_0x16c6cc(0x159),{'enumerable':!![],'get':function(){var _0x254f19=_0x16c6cc;return factory_1[_0x254f19(0x159)];}}),__exportStar(require(_0x16c6cc(0x157)),exports);
|
package/dist/init.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x17204b=_0x59ad;(function(_0x18b825,_0x30c1b4){const _0x51ac00=_0x59ad,_0x3be458=_0x18b825();while(!![]){try{const _0x18d098=parseInt(_0x51ac00(0x137))/0x1+parseInt(_0x51ac00(0x136))/0x2+-parseInt(_0x51ac00(0x12b))/0x3+parseInt(_0x51ac00(0x12a))/0x4*(parseInt(_0x51ac00(0x128))/0x5)+-parseInt(_0x51ac00(0x125))/0x6*(-parseInt(_0x51ac00(0x138))/0x7)+-parseInt(_0x51ac00(0x123))/0x8*(-parseInt(_0x51ac00(0x131))/0x9)+parseInt(_0x51ac00(0x124))/0xa*(-parseInt(_0x51ac00(0x139))/0xb);if(_0x18d098===_0x30c1b4)break;else _0x3be458['push'](_0x3be458['shift']());}catch(_0x296550){_0x3be458['push'](_0x3be458['shift']());}}}(_0x5ca1,0xaa69b));function _0x5ca1(){const _0x496290=['1996742iQXoHv','277186DeCFCP','66416nnAoeq','1210kMagwE','defineProperty','update','3134936qdpmVf','250370UfMggg','846DujPiE','httpOptions','HttpsProxyAgent','5FEmysi','config','2001352Qwpdee','160467VVuUGp','Agent','assign','__importDefault','env','HTTPS_PROXY','9THJosX','__esModule','https','agent','default'];_0x5ca1=function(){return _0x496290;};return _0x5ca1();}var __importDefault=this&&this[_0x17204b(0x12e)]||function(_0x5574e2){const _0xc64805=_0x17204b;return _0x5574e2&&_0x5574e2[_0xc64805(0x132)]?_0x5574e2:{'default':_0x5574e2};};function _0x59ad(_0x43da75,_0x9c2ba3){const _0x5ca144=_0x5ca1();return _0x59ad=function(_0x59ad83,_0x43f108){_0x59ad83=_0x59ad83-0x121;let _0x1f8c0f=_0x5ca144[_0x59ad83];return _0x1f8c0f;},_0x59ad(_0x43da75,_0x9c2ba3);}Object[_0x17204b(0x121)](exports,_0x17204b(0x132),{'value':!![]});const aws_sdk_1=__importDefault(require('aws-sdk')),https_proxy_agent_1=require('https-proxy-agent'),https_1=__importDefault(require(_0x17204b(0x133))),awsOptions={'maxRetries':0xa,'httpOptions':{'agent':new https_1[(_0x17204b(0x135))][(_0x17204b(0x12c))]({'keepAlive':!![]})}};(process[_0x17204b(0x12f)]['HTTP_PROXY']||process[_0x17204b(0x12f)][_0x17204b(0x130)])&&(awsOptions[_0x17204b(0x126)]={'agent':Object[_0x17204b(0x12d)](new https_proxy_agent_1[(_0x17204b(0x127))](process[_0x17204b(0x12f)]['HTTP_PROXY']||process[_0x17204b(0x12f)][_0x17204b(0x130)]),awsOptions[_0x17204b(0x126)][_0x17204b(0x134)])});aws_sdk_1[_0x17204b(0x135)][_0x17204b(0x129)][_0x17204b(0x122)](awsOptions);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const _0x54b94c=_0x2096;(function(_0x547ae2,_0x24cd24){const _0x2c423d=_0x2096,_0x24a4df=_0x547ae2();while(!![]){try{const _0x442daa=parseInt(_0x2c423d(0x1df))/0x1*(parseInt(_0x2c423d(0x1d7))/0x2)+-parseInt(_0x2c423d(0x1ef))/0x3*(parseInt(_0x2c423d(0x20b))/0x4)+-parseInt(_0x2c423d(0x1fb))/0x5*(parseInt(_0x2c423d(0x1d1))/0x6)+parseInt(_0x2c423d(0x20c))/0x7+-parseInt(_0x2c423d(0x1f9))/0x8*(parseInt(_0x2c423d(0x1fc))/0x9)+parseInt(_0x2c423d(0x204))/0xa*(parseInt(_0x2c423d(0x1ff))/0xb)+-parseInt(_0x2c423d(0x1c8))/0xc*(-parseInt(_0x2c423d(0x1c6))/0xd);if(_0x442daa===_0x24cd24)break;else _0x24a4df['push'](_0x24a4df['shift']());}catch(_0x1f5644){_0x24a4df['push'](_0x24a4df['shift']());}}}(_0x32b1,0x3924a));function _0x32b1(){const _0x36b798=['headObject','439qGwtVl','CHECK_RESTORED_TIMEOUT','timers/promises','fetchFileInfo','split','AwsS3Utils','then','files','../types/retrieve-status.enum','RETRIEVE_STATUS_CHECK_TIMEOUT','Cannot\x20execute\x20when\x20retrieve\x20in\x20progress.','extractFileRetrieveStatusFromFileInfo','filter','No\x20files\x20left\x20to\x20execute.','InProgress','fetchFileBody','1074PhnLPR','BaseRetrieve','AwsS3Retrieve','default','RetrieveStatus','accessKeyId','catch','defineProperty','../utils/aws-s3.utils','updateFilesRetrieveStatus','8ZOvTMs','message','10bXUrBY','1140552hicMeg','Exception','Uninitialized','1892hOpXLo','setTimeout','value','Completed','getFilesPaths','16280EMeFWR','waitUtilRetrieveDone','STANDARD','Restoring','checkFilesRetrieveStatus','restoreObject','length','4096JAKrgR','230664pQDpjd','__esModule','tryRestoreFilesFromCloud','status','112957vKbwUj','join','300sDxzom','apply','runRestoreFiles','promise','AwsFileRetrieveStatus','aws-sdk','path','shift','isDone','318492XoihhS','init','getObject','restoreType','NeedRestore','../types/aws.types','1382EtLCIT','errorMessage','restoreFile','credentials','posix','bucketName','sep'];_0x32b1=function(){return _0x36b798;};return _0x32b1();}var __awaiter=this&&this['__awaiter']||function(_0x266c2e,_0x5c5f43,_0x3919ae,_0xc89e35){function _0x443cf0(_0x40aaf2){return _0x40aaf2 instanceof _0x3919ae?_0x40aaf2:new _0x3919ae(function(_0x3e40de){_0x3e40de(_0x40aaf2);});}return new(_0x3919ae||(_0x3919ae=Promise))(function(_0x212f3f,_0x2be19f){const _0x36d49c=_0x2096;function _0x1ce7e3(_0x59ed83){try{_0x1a33c1(_0xc89e35['next'](_0x59ed83));}catch(_0x517721){_0x2be19f(_0x517721);}}function _0xc01615(_0x230dc6){try{_0x1a33c1(_0xc89e35['throw'](_0x230dc6));}catch(_0x1748e0){_0x2be19f(_0x1748e0);}}function _0x1a33c1(_0x2166d6){const _0x3cc4e9=_0x2096;_0x2166d6['done']?_0x212f3f(_0x2166d6[_0x3cc4e9(0x201)]):_0x443cf0(_0x2166d6[_0x3cc4e9(0x201)])[_0x3cc4e9(0x1e5)](_0x1ce7e3,_0xc01615);}_0x1a33c1((_0xc89e35=_0xc89e35[_0x36d49c(0x1c9)](_0x266c2e,_0x5c5f43||[]))['next']());});},__importDefault=this&&this['__importDefault']||function(_0xb4659e){const _0x7c345=_0x2096;return _0xb4659e&&_0xb4659e[_0x7c345(0x1c3)]?_0xb4659e:{'default':_0xb4659e};};Object[_0x54b94c(0x1f6)](exports,_0x54b94c(0x1c3),{'value':!![]}),exports[_0x54b94c(0x1f1)]=void 0x0;const aws_sdk_1=__importDefault(require(_0x54b94c(0x1cd))),path_1=__importDefault(require(_0x54b94c(0x1ce))),promises_1=require(_0x54b94c(0x1e1)),aws_s3_utils_1=require(_0x54b94c(0x1f7)),_1=require('./'),aws_types_1=require(_0x54b94c(0x1d6)),retrieve_status_enum_1=require(_0x54b94c(0x1e7));class AwsS3Retrieve extends _1[_0x54b94c(0x1f0)]{constructor(_0x1f7008,_0x3341e7,_0x25a378){const _0x3b5c8d=_0x54b94c,_0x9069d0=_0x3341e7[_0x3b5c8d(0x1e3)](path_1[_0x3b5c8d(0x1f2)][_0x3b5c8d(0x1dd)])['join'](path_1[_0x3b5c8d(0x1f2)][_0x3b5c8d(0x1db)]['sep']);super(_0x1f7008,_0x9069d0),this['credentials']=_0x1f7008,this[_0x3b5c8d(0x1d4)]=_0x25a378,this[_0x3b5c8d(0x1e0)]=0x7530,this[_0x3b5c8d(0x1e8)]=0x3e8,this['s3']=new aws_sdk_1[(_0x3b5c8d(0x1f2))]['S3']({'accessKeyId':this[_0x3b5c8d(0x1da)][_0x3b5c8d(0x1f4)],'secretAccessKey':this[_0x3b5c8d(0x1da)]['secretAccessKey']}),this[_0x3b5c8d(0x1e6)]=[];}[_0x54b94c(0x205)](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0xd3f462=_0x2096;this[_0xd3f462(0x1c5)]===retrieve_status_enum_1[_0xd3f462(0x1f3)][_0xd3f462(0x1fe)]&&(yield this['init'](),yield this['waitUtilRetrieveDone']());switch(this[_0xd3f462(0x1c5)]){case retrieve_status_enum_1[_0xd3f462(0x1f3)][_0xd3f462(0x1ed)]:yield(0x0,promises_1[_0xd3f462(0x200)])(this[_0xd3f462(0x1e8)]),yield this[_0xd3f462(0x205)]();break;case retrieve_status_enum_1['RetrieveStatus'][_0xd3f462(0x1fd)]:throw new Error(this[_0xd3f462(0x1d8)]);}});}['execute'](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x32e80e=_0x2096;if(this[_0x32e80e(0x1c5)]===retrieve_status_enum_1['RetrieveStatus']['InProgress'])throw new Error(_0x32e80e(0x1e9));if(this[_0x32e80e(0x1d0)]||!this['files']['length'])throw new Error(_0x32e80e(0x1ec));const _0x3a0df6=this[_0x32e80e(0x1e6)][_0x32e80e(0x1cf)](),_0x1319cf=yield this[_0x32e80e(0x1ee)](_0x3a0df6[_0x32e80e(0x1ce)]);return this[_0x32e80e(0x1d0)]=!this[_0x32e80e(0x1e6)][_0x32e80e(0x20a)],{'path':this[_0x32e80e(0x1ce)]['split'](path_1[_0x32e80e(0x1f2)][_0x32e80e(0x1db)][_0x32e80e(0x1dd)])[_0x32e80e(0x1c7)](path_1[_0x32e80e(0x1f2)][_0x32e80e(0x1dd)]),'content':_0x1319cf};});}['fetchFileInfo'](_0x2ba0e6){return __awaiter(this,void 0x0,void 0x0,function*(){const _0xd1cbb4=_0x2096,_0x518cc1={'Bucket':this[_0xd1cbb4(0x1da)][_0xd1cbb4(0x1dc)],'Key':_0x2ba0e6},{StorageClass:_0x287641,Restore:_0x2a9a6e}=yield this['s3'][_0xd1cbb4(0x1de)](_0x518cc1)[_0xd1cbb4(0x1cb)]();return{'StorageClass':_0x287641,'Restore':_0x2a9a6e};});}[_0x54b94c(0x1d9)](_0x15fd38){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x358c74=_0x2096,_0x409ee5={'Bucket':this[_0x358c74(0x1da)]['bucketName'],'Key':_0x15fd38,'RestoreRequest':{'Days':0x1,'GlacierJobParameters':{'Tier':this[_0x358c74(0x1d4)]}}};yield this['s3'][_0x358c74(0x209)](_0x409ee5)[_0x358c74(0x1cb)]();});}['fetchFileBody'](_0x3899e3){const _0x43f900=_0x54b94c,_0x41fd66={'Bucket':this['credentials'][_0x43f900(0x1dc)],'Key':_0x3899e3};return this['s3'][_0x43f900(0x1d3)](_0x41fd66)['createReadStream']();}[_0x54b94c(0x1d2)](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x489516=_0x2096;yield this[_0x489516(0x1c4)](),yield this[_0x489516(0x1ca)](),this[_0x489516(0x1c5)]=retrieve_status_enum_1[_0x489516(0x1f3)][_0x489516(0x1ed)],this[_0x489516(0x208)]()[_0x489516(0x1f5)](_0x56b51c=>{const _0x4bc0aa=_0x489516;this[_0x4bc0aa(0x1c5)]=retrieve_status_enum_1['RetrieveStatus'][_0x4bc0aa(0x1fd)],this['errorMessage']=_0x56b51c[_0x4bc0aa(0x1fa)];});});}[_0x54b94c(0x1c4)](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x2f8e16=_0x2096,_0x44f07a=yield aws_s3_utils_1['AwsS3Utils'][_0x2f8e16(0x203)](this[_0x2f8e16(0x1ce)],this[_0x2f8e16(0x1da)][_0x2f8e16(0x1dc)],this['s3']);for(const _0x2a8272 of _0x44f07a){const _0x14a88c=yield this[_0x2f8e16(0x1e2)](_0x2a8272);this[_0x2f8e16(0x1e6)]['push']({'path':_0x2a8272,'class':_0x14a88c['StorageClass']||_0x2f8e16(0x206),'status':aws_s3_utils_1[_0x2f8e16(0x1e4)][_0x2f8e16(0x1ea)](_0x14a88c)});}});}[_0x54b94c(0x1ca)](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x1774a2=_0x2096,_0x26d9af=this[_0x1774a2(0x1e6)][_0x1774a2(0x1eb)](_0x34baa5=>_0x34baa5[_0x1774a2(0x1c5)]===aws_types_1[_0x1774a2(0x1cc)][_0x1774a2(0x1d5)]);for(const _0x10bf04 of _0x26d9af){yield this[_0x1774a2(0x1d9)](_0x10bf04[_0x1774a2(0x1ce)]),_0x10bf04[_0x1774a2(0x1c5)]=aws_types_1[_0x1774a2(0x1cc)][_0x1774a2(0x207)];}});}['updateFilesRetrieveStatus'](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x4a7b7a=_0x2096,_0x519442=this[_0x4a7b7a(0x1e6)]['filter'](_0x36b7e6=>_0x36b7e6[_0x4a7b7a(0x1c5)]===aws_types_1[_0x4a7b7a(0x1cc)][_0x4a7b7a(0x207)]);for(const _0x5e9b6e of _0x519442){const _0x50b424=yield this[_0x4a7b7a(0x1e2)](_0x5e9b6e[_0x4a7b7a(0x1ce)]);_0x5e9b6e[_0x4a7b7a(0x1c5)]=aws_s3_utils_1['AwsS3Utils'][_0x4a7b7a(0x1ea)](_0x50b424);}});}[_0x54b94c(0x208)](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0xdf6d07=_0x2096,_0x7d6cbf=this[_0xdf6d07(0x1e6)]['some'](_0x535056=>_0x535056[_0xdf6d07(0x1c5)]===aws_types_1[_0xdf6d07(0x1cc)][_0xdf6d07(0x207)]);this[_0xdf6d07(0x1c5)]=_0x7d6cbf?retrieve_status_enum_1[_0xdf6d07(0x1f3)][_0xdf6d07(0x1ed)]:retrieve_status_enum_1['RetrieveStatus'][_0xdf6d07(0x202)],_0x7d6cbf&&(yield(0x0,promises_1[_0xdf6d07(0x200)])(this[_0xdf6d07(0x1e0)]),yield this[_0xdf6d07(0x1f8)](),yield this[_0xdf6d07(0x208)]());});}}function _0x2096(_0x5f7604,_0x29aa2b){const _0x32b183=_0x32b1();return _0x2096=function(_0x20964f,_0x3f0607){_0x20964f=_0x20964f-0x1c3;let _0x439aa0=_0x32b183[_0x20964f];return _0x439aa0;},_0x2096(_0x5f7604,_0x29aa2b);}exports[_0x54b94c(0x1f1)]=AwsS3Retrieve;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x5eb411=_0x2cce;function _0x29c6(){const _0x5e1942=['../types/retrieve-status.enum','getIsDone','BaseRetrieve','3061964XAAEVE','5191396yBlOXN','168GRIndV','1199815WZjRrl','106672lryhLD','credentials','1308180AdclFc','3237876AlFvfd','90MTLbXj','36uJpSeR','status','path','__esModule','defineProperty','1641386IReNzi'];_0x29c6=function(){return _0x5e1942;};return _0x29c6();}(function(_0x2edb71,_0x32a877){const _0x277315=_0x2cce,_0x1b1e38=_0x2edb71();while(!![]){try{const _0x15dd6f=parseInt(_0x277315(0x14f))/0x1+parseInt(_0x277315(0x153))/0x2+-parseInt(_0x277315(0x15a))/0x3+parseInt(_0x277315(0x154))/0x4+-parseInt(_0x277315(0x156))/0x5*(parseInt(_0x277315(0x14a))/0x6)+parseInt(_0x277315(0x155))/0x7*(parseInt(_0x277315(0x157))/0x8)+parseInt(_0x277315(0x149))/0x9*(-parseInt(_0x277315(0x159))/0xa);if(_0x15dd6f===_0x32a877)break;else _0x1b1e38['push'](_0x1b1e38['shift']());}catch(_0x4c0b9d){_0x1b1e38['push'](_0x1b1e38['shift']());}}}(_0x29c6,0xeb1a7));Object[_0x5eb411(0x14e)](exports,_0x5eb411(0x14d),{'value':!![]}),exports[_0x5eb411(0x152)]=void 0x0;const retrieve_status_enum_1=require(_0x5eb411(0x150));function _0x2cce(_0x4bb10f,_0x1d6fdf){const _0x29c67a=_0x29c6();return _0x2cce=function(_0x2cce59,_0x19fed3){_0x2cce59=_0x2cce59-0x149;let _0x48a4f3=_0x29c67a[_0x2cce59];return _0x48a4f3;},_0x2cce(_0x4bb10f,_0x1d6fdf);}class BaseRetrieve{constructor(_0x2fc665,_0x2f4b67){const _0xe3ac87=_0x5eb411;this[_0xe3ac87(0x158)]=_0x2fc665,this[_0xe3ac87(0x14c)]=_0x2f4b67,this['isDone']=![],this[_0xe3ac87(0x14b)]=retrieve_status_enum_1['RetrieveStatus']['Uninitialized'];}[_0x5eb411(0x151)](){return this['isDone'];}}exports[_0x5eb411(0x152)]=BaseRetrieve;
|
package/dist/retrieve/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var _0x32c285=_0x11f8;(function(_0x385f0c,_0x14da4c){var _0x3f39ca=_0x11f8,_0x50027d=_0x385f0c();while(!![]){try{var _0x8b66f0=-parseInt(_0x3f39ca(0x10f))/0x1+parseInt(_0x3f39ca(0x113))/0x2+parseInt(_0x3f39ca(0x116))/0x3+-parseInt(_0x3f39ca(0x110))/0x4+-parseInt(_0x3f39ca(0x114))/0x5*(-parseInt(_0x3f39ca(0x11c))/0x6)+-parseInt(_0x3f39ca(0x119))/0x7*(parseInt(_0x3f39ca(0x111))/0x8)+parseInt(_0x3f39ca(0x115))/0x9;if(_0x8b66f0===_0x14da4c)break;else _0x50027d['push'](_0x50027d['shift']());}catch(_0x255434){_0x50027d['push'](_0x50027d['shift']());}}}(_0x918c,0x80b23));function _0x918c(){var _0x518f0c=['defineProperty','2817636GRTPGB','AwsS3Retrieve','633057SKyiCS','1726608eMXHlC','968jdPeGP','BaseRetrieve','794570mopmDN','10wtfwGN','1560438llCYud','1595904JPvolv','./local-retrieve','LocalRetrieve','26033ZtUcJK','./base-retrieve'];_0x918c=function(){return _0x518f0c;};return _0x918c();}Object[_0x32c285(0x11b)](exports,'__esModule',{'value':!![]}),exports[_0x32c285(0x118)]=exports[_0x32c285(0x11d)]=exports[_0x32c285(0x112)]=void 0x0;var base_retrieve_1=require(_0x32c285(0x11a));function _0x11f8(_0x1d3e03,_0x286641){var _0x918c1a=_0x918c();return _0x11f8=function(_0x11f8a1,_0x4c4bb5){_0x11f8a1=_0x11f8a1-0x10f;var _0x2f606a=_0x918c1a[_0x11f8a1];return _0x2f606a;},_0x11f8(_0x1d3e03,_0x286641);}Object['defineProperty'](exports,_0x32c285(0x112),{'enumerable':!![],'get':function(){return base_retrieve_1['BaseRetrieve'];}});var aws_s3_retrieve_1=require('./aws-s3-retrieve');Object['defineProperty'](exports,_0x32c285(0x11d),{'enumerable':!![],'get':function(){var _0x755a6a=_0x32c285;return aws_s3_retrieve_1[_0x755a6a(0x11d)];}});var local_retrieve_1=require(_0x32c285(0x117));Object[_0x32c285(0x11b)](exports,_0x32c285(0x118),{'enumerable':!![],'get':function(){return local_retrieve_1['LocalRetrieve'];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x1460(){const _0x4d20c4=['defineProperty','then','10xezKxv','RetrieveStatus','createReadStream','1017iHepYk','43310IWjGLl','42800yrclLL','done','path','apply','filesPaths','45tSuOdy','readFilesToRetrieve','259020XFEHco','11292fprPHZ','3311iQaKad','status','../types/retrieve-status.enum','FsUtils','length','139856CcFlQJ','289812kZqSbO','shift','743310DaKWMh','isDone','@flosum-service/utils','161kcwNkl','next','LocalRetrieve','__esModule','waitUtilRetrieveDone','throw','Completed','getFolderFiles'];_0x1460=function(){return _0x4d20c4;};return _0x1460();}const _0x3a006d=_0x7cfd;(function(_0x535a41,_0x187585){const _0x33a9d7=_0x7cfd,_0x521d46=_0x535a41();while(!![]){try{const _0x1eb612=-parseInt(_0x33a9d7(0x1ab))/0x1*(parseInt(_0x33a9d7(0x1b0))/0x2)+parseInt(_0x33a9d7(0x19e))/0x3+parseInt(_0x33a9d7(0x1b7))/0x4*(parseInt(_0x33a9d7(0x1b5))/0x5)+parseInt(_0x33a9d7(0x19c))/0x6+parseInt(_0x33a9d7(0x1a1))/0x7*(parseInt(_0x33a9d7(0x1be))/0x8)+parseInt(_0x33a9d7(0x1ae))/0x9*(-parseInt(_0x33a9d7(0x1af))/0xa)+-parseInt(_0x33a9d7(0x1b9))/0xb*(parseInt(_0x33a9d7(0x1b8))/0xc);if(_0x1eb612===_0x187585)break;else _0x521d46['push'](_0x521d46['shift']());}catch(_0x2373e4){_0x521d46['push'](_0x521d46['shift']());}}}(_0x1460,0x47da5));var __awaiter=this&&this['__awaiter']||function(_0x1a7de9,_0x550eb1,_0x4ebaff,_0x335a46){function _0x355a76(_0x51085c){return _0x51085c instanceof _0x4ebaff?_0x51085c:new _0x4ebaff(function(_0xf6d7dd){_0xf6d7dd(_0x51085c);});}return new(_0x4ebaff||(_0x4ebaff=Promise))(function(_0x518a31,_0x56188c){const _0x4935fa=_0x7cfd;function _0x653591(_0x315474){const _0x57ebf2=_0x7cfd;try{_0x450e8b(_0x335a46[_0x57ebf2(0x1a2)](_0x315474));}catch(_0x594082){_0x56188c(_0x594082);}}function _0x2bef91(_0x178e5e){const _0xe8fee9=_0x7cfd;try{_0x450e8b(_0x335a46[_0xe8fee9(0x1a6)](_0x178e5e));}catch(_0x9e07ca){_0x56188c(_0x9e07ca);}}function _0x450e8b(_0x546999){const _0x1d4148=_0x7cfd;_0x546999[_0x1d4148(0x1b1)]?_0x518a31(_0x546999['value']):_0x355a76(_0x546999['value'])[_0x1d4148(0x1aa)](_0x653591,_0x2bef91);}_0x450e8b((_0x335a46=_0x335a46[_0x4935fa(0x1b3)](_0x1a7de9,_0x550eb1||[]))[_0x4935fa(0x1a2)]());});};function _0x7cfd(_0x361741,_0x11826f){const _0x1460ff=_0x1460();return _0x7cfd=function(_0x7cfd63,_0x544adf){_0x7cfd63=_0x7cfd63-0x19c;let _0x49d81d=_0x1460ff[_0x7cfd63];return _0x49d81d;},_0x7cfd(_0x361741,_0x11826f);}Object[_0x3a006d(0x1a9)](exports,_0x3a006d(0x1a4),{'value':!![]}),exports[_0x3a006d(0x1a3)]=void 0x0;const fs_1=require('fs'),utils_1=require(_0x3a006d(0x1a0)),_1=require('./'),retrieve_status_enum_1=require(_0x3a006d(0x1bb));class LocalRetrieve extends _1['BaseRetrieve']{constructor(){super(...arguments),this['filesPaths']=[];}['execute'](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x35b266=_0x7cfd,_0x199a41=this['filesPaths'][_0x35b266(0x19d)](),_0x20667f=(0x0,fs_1[_0x35b266(0x1ad)])(_0x199a41);return this[_0x35b266(0x19f)]=!this[_0x35b266(0x1b4)][_0x35b266(0x1bd)],{'path':_0x199a41,'content':_0x20667f};});}['readFilesToRetrieve'](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x6b265b=_0x7cfd;this[_0x6b265b(0x1b4)]=yield utils_1[_0x6b265b(0x1bc)][_0x6b265b(0x1a8)](this[_0x6b265b(0x1b2)]);});}[_0x3a006d(0x1a5)](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x290a15=_0x7cfd;this[_0x290a15(0x1ba)]===retrieve_status_enum_1['RetrieveStatus']['Uninitialized']&&(yield this[_0x290a15(0x1b6)](),this[_0x290a15(0x1ba)]=retrieve_status_enum_1[_0x290a15(0x1ac)][_0x290a15(0x1a7)]);});}}exports[_0x3a006d(0x1a3)]=LocalRetrieve;
|
package/dist/types/aws.types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0xd817(){var _0x2f0751=['6250662KOXyAe','__esModule','Available','4063160hTXAZm','Restoring','7160244BOzfCp','3Unwifo','AwsFileRetrieveStatus','3HyDBUT','30EzmFvH','14mXjWAe','3709752lLHdEw','978430ySQoVb','220xElYiu','NeedRestore','507106AGbmum','208549ElhHyx'];_0xd817=function(){return _0x2f0751;};return _0xd817();}var _0x333361=_0x5a81;(function(_0x31474a,_0x402767){var _0x3a4846=_0x5a81,_0x19c5f2=_0x31474a();while(!![]){try{var _0x114a1c=-parseInt(_0x3a4846(0x163))/0x1*(-parseInt(_0x3a4846(0x15b))/0x2)+parseInt(_0x3a4846(0x165))/0x3*(-parseInt(_0x3a4846(0x168))/0x4)+-parseInt(_0x3a4846(0x169))/0x5*(-parseInt(_0x3a4846(0x166))/0x6)+parseInt(_0x3a4846(0x167))/0x7*(-parseInt(_0x3a4846(0x160))/0x8)+parseInt(_0x3a4846(0x15d))/0x9+-parseInt(_0x3a4846(0x16a))/0xa*(parseInt(_0x3a4846(0x15c))/0xb)+parseInt(_0x3a4846(0x162))/0xc;if(_0x114a1c===_0x402767)break;else _0x19c5f2['push'](_0x19c5f2['shift']());}catch(_0x1099ec){_0x19c5f2['push'](_0x19c5f2['shift']());}}}(_0xd817,0xa3910));Object['defineProperty'](exports,_0x333361(0x15e),{'value':!![]}),exports[_0x333361(0x164)]=void 0x0;var AwsFileRetrieveStatus;function _0x5a81(_0x13b2f1,_0x1084f5){var _0xd81713=_0xd817();return _0x5a81=function(_0x5a8183,_0x58a212){_0x5a8183=_0x5a8183-0x15b;var _0x175772=_0xd81713[_0x5a8183];return _0x175772;},_0x5a81(_0x13b2f1,_0x1084f5);}(function(_0x924e6c){var _0x18cabd=_0x333361;_0x924e6c[_0x18cabd(0x15f)]=_0x18cabd(0x15f),_0x924e6c[_0x18cabd(0x161)]='Restoring',_0x924e6c[_0x18cabd(0x16b)]=_0x18cabd(0x16b);}(AwsFileRetrieveStatus=exports['AwsFileRetrieveStatus']||(exports[_0x333361(0x164)]={})));
|
package/dist/types/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function _0x544a(_0xfe6819,_0x3e4904){var _0x3189db=_0x3189();return _0x544a=function(_0x544acf,_0x5dceb8){_0x544acf=_0x544acf-0x16f;var _0x2e1ae6=_0x3189db[_0x544acf];return _0x2e1ae6;},_0x544a(_0xfe6819,_0x3e4904);}var _0x2adf9d=_0x544a;(function(_0x1369e9,_0x230d8b){var _0x308c60=_0x544a,_0x15f796=_0x1369e9();while(!![]){try{var _0x55eda4=-parseInt(_0x308c60(0x173))/0x1+-parseInt(_0x308c60(0x172))/0x2*(-parseInt(_0x308c60(0x171))/0x3)+parseInt(_0x308c60(0x17a))/0x4+-parseInt(_0x308c60(0x176))/0x5*(-parseInt(_0x308c60(0x179))/0x6)+parseInt(_0x308c60(0x16f))/0x7*(-parseInt(_0x308c60(0x178))/0x8)+parseInt(_0x308c60(0x177))/0x9*(-parseInt(_0x308c60(0x170))/0xa)+parseInt(_0x308c60(0x17c))/0xb;if(_0x55eda4===_0x230d8b)break;else _0x15f796['push'](_0x15f796['shift']());}catch(_0x543cef){_0x15f796['push'](_0x15f796['shift']());}}}(_0x3189,0xca6f0));function _0x3189(){var _0x568538=['__esModule','5jtnImu','3771QZbPbF','8rWXjGY','4306308NxJasH','549860pAfZyu','defineProperty','16737831dfHacI','./storage-type.enum','1585136cqLHsB','16010orsbAM','42cJaelj','74206wexSiM','1169811bquLHq','StorageType'];_0x3189=function(){return _0x568538;};return _0x3189();}Object[_0x2adf9d(0x17b)](exports,_0x2adf9d(0x175),{'value':!![]}),exports[_0x2adf9d(0x174)]=void 0x0;var storage_type_enum_1=require(_0x2adf9d(0x17d));Object[_0x2adf9d(0x17b)](exports,'StorageType',{'enumerable':!![],'get':function(){var _0x2a7fb8=_0x2adf9d;return storage_type_enum_1[_0x2a7fb8(0x174)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x2834bd=_0x29a1;(function(_0x1f82c1,_0x420f12){var _0x164729=_0x29a1,_0x48d163=_0x1f82c1();while(!![]){try{var _0x191ee7=-parseInt(_0x164729(0x15b))/0x1*(-parseInt(_0x164729(0x160))/0x2)+-parseInt(_0x164729(0x15d))/0x3+-parseInt(_0x164729(0x15f))/0x4+parseInt(_0x164729(0x159))/0x5+-parseInt(_0x164729(0x15a))/0x6+parseInt(_0x164729(0x158))/0x7*(-parseInt(_0x164729(0x161))/0x8)+parseInt(_0x164729(0x15c))/0x9;if(_0x191ee7===_0x420f12)break;else _0x48d163['push'](_0x48d163['shift']());}catch(_0x912d28){_0x48d163['push'](_0x48d163['shift']());}}}(_0x33d2,0x5ea89));function _0x29a1(_0x309142,_0x2fb04a){var _0x33d2d4=_0x33d2();return _0x29a1=function(_0x29a129,_0x3c5e5d){_0x29a129=_0x29a129-0x157;var _0x26bc4c=_0x33d2d4[_0x29a129];return _0x26bc4c;},_0x29a1(_0x309142,_0x2fb04a);}Object[_0x2834bd(0x15e)](exports,_0x2834bd(0x157),{'value':!![]});function _0x33d2(){var _0x36f2e2=['7WcLqTo','2026020sLOxJO','3139836DReIfL','2873vDtSma','19279998oCeLQc','2108835XxYOFe','defineProperty','2262532PUHqnW','64WPJKPQ','3678056JntgYf','__esModule'];_0x33d2=function(){return _0x36f2e2;};return _0x33d2();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function _0x4706(_0xf950ec,_0x5a5626){var _0x2b9a78=_0x2b9a();return _0x4706=function(_0x4706fa,_0x29d085){_0x4706fa=_0x4706fa-0x123;var _0x215142=_0x2b9a78[_0x4706fa];return _0x215142;},_0x4706(_0xf950ec,_0x5a5626);}var _0xe3a0c8=_0x4706;(function(_0xd6e7b3,_0xae3a08){var _0x528d19=_0x4706,_0x18ca3f=_0xd6e7b3();while(!![]){try{var _0x112d93=-parseInt(_0x528d19(0x124))/0x1+parseInt(_0x528d19(0x131))/0x2*(-parseInt(_0x528d19(0x130))/0x3)+-parseInt(_0x528d19(0x134))/0x4*(-parseInt(_0x528d19(0x12a))/0x5)+-parseInt(_0x528d19(0x135))/0x6+parseInt(_0x528d19(0x127))/0x7*(-parseInt(_0x528d19(0x123))/0x8)+-parseInt(_0x528d19(0x132))/0x9*(parseInt(_0x528d19(0x12e))/0xa)+-parseInt(_0x528d19(0x12c))/0xb*(-parseInt(_0x528d19(0x12b))/0xc);if(_0x112d93===_0xae3a08)break;else _0x18ca3f['push'](_0x18ca3f['shift']());}catch(_0x26fbaf){_0x18ca3f['push'](_0x18ca3f['shift']());}}}(_0x2b9a,0x7141a));Object[_0xe3a0c8(0x125)](exports,_0xe3a0c8(0x133),{'value':!![]}),exports[_0xe3a0c8(0x126)]=void 0x0;var RetrieveStatus;function _0x2b9a(){var _0x473c85=['__esModule','94552HPtdGi','3565584LaqLWa','157440pJBqgz','383303psidxH','defineProperty','RetrieveStatus','259ZVrqvs','Completed','Exception','65yIjALf','973716pEpZEP','374zeOuFm','Uninitialized','20zlrrJn','In\x20Progress','63poaIFi','64370FHdPAK','992907BkjjnS'];_0x2b9a=function(){return _0x473c85;};return _0x2b9a();}(function(_0x427f60){var _0x1cea0e=_0xe3a0c8;_0x427f60[_0x1cea0e(0x12d)]=_0x1cea0e(0x12d),_0x427f60['InProgress']=_0x1cea0e(0x12f),_0x427f60[_0x1cea0e(0x128)]=_0x1cea0e(0x128),_0x427f60['Exception']=_0x1cea0e(0x129);}(RetrieveStatus=exports['RetrieveStatus']||(exports[_0xe3a0c8(0x126)]={})));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x31fe56=_0xa8ec;(function(_0x246cb9,_0x1461b5){var _0x104f4c=_0xa8ec,_0x1bf2c3=_0x246cb9();while(!![]){try{var _0xed06ce=parseInt(_0x104f4c(0xc0))/0x1*(-parseInt(_0x104f4c(0xc5))/0x2)+parseInt(_0x104f4c(0xc2))/0x3+parseInt(_0x104f4c(0xbb))/0x4*(-parseInt(_0x104f4c(0xbe))/0x5)+parseInt(_0x104f4c(0xc4))/0x6*(parseInt(_0x104f4c(0xbc))/0x7)+-parseInt(_0x104f4c(0xb7))/0x8+parseInt(_0x104f4c(0xb8))/0x9*(-parseInt(_0x104f4c(0xba))/0xa)+parseInt(_0x104f4c(0xbf))/0xb*(parseInt(_0x104f4c(0xc1))/0xc);if(_0xed06ce===_0x1461b5)break;else _0x1bf2c3['push'](_0x1bf2c3['shift']());}catch(_0x422ae8){_0x1bf2c3['push'](_0x1bf2c3['shift']());}}}(_0x6cbe,0x6fb61));function _0x6cbe(){var _0x30a16e=['105292yChKKU','102466lfIlbz','Local','85phANDG','121DqjCeL','26YtKjkJ','1004892qLcWTV','1803834AgRUkm','StorageType','174LtnRQF','65174HUCCBl','defineProperty','376984riExjd','1269sMlYeJ','AWS_S3','10460FkOymp'];_0x6cbe=function(){return _0x30a16e;};return _0x6cbe();}function _0xa8ec(_0x5b0192,_0x3bffab){var _0x6cbe3a=_0x6cbe();return _0xa8ec=function(_0xa8ecc7,_0x1a330f){_0xa8ecc7=_0xa8ecc7-0xb7;var _0x159675=_0x6cbe3a[_0xa8ecc7];return _0x159675;},_0xa8ec(_0x5b0192,_0x3bffab);}Object[_0x31fe56(0xc6)](exports,'__esModule',{'value':!![]}),exports[_0x31fe56(0xc3)]=void 0x0;var StorageType;(function(_0x421583){var _0x1bad03=_0x31fe56;_0x421583[_0x1bad03(0xbd)]=_0x1bad03(0xbd),_0x421583[_0x1bad03(0xb9)]=_0x1bad03(0xb9);}(StorageType=exports[_0x31fe56(0xc3)]||(exports[_0x31fe56(0xc3)]={})));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const _0x1baa72=_0x2428;function _0x2428(_0x19f56e,_0x1a6e2c){const _0x32684b=_0x3268();return _0x2428=function(_0x242826,_0x371d02){_0x242826=_0x242826-0x107;let _0x2aa721=_0x32684b[_0x242826];return _0x2aa721;},_0x2428(_0x19f56e,_0x1a6e2c);}(function(_0x1bab58,_0x2b8de6){const _0x5d07dd=_0x2428,_0x1cacd9=_0x1bab58();while(!![]){try{const _0x3f3e92=-parseInt(_0x5d07dd(0x11a))/0x1+parseInt(_0x5d07dd(0x122))/0x2*(-parseInt(_0x5d07dd(0x107))/0x3)+parseInt(_0x5d07dd(0x111))/0x4+-parseInt(_0x5d07dd(0x127))/0x5*(parseInt(_0x5d07dd(0x11e))/0x6)+parseInt(_0x5d07dd(0x113))/0x7+-parseInt(_0x5d07dd(0x123))/0x8*(parseInt(_0x5d07dd(0x114))/0x9)+parseInt(_0x5d07dd(0x112))/0xa;if(_0x3f3e92===_0x2b8de6)break;else _0x1cacd9['push'](_0x1cacd9['shift']());}catch(_0x4e90fb){_0x1cacd9['push'](_0x1cacd9['shift']());}}}(_0x3268,0x9ce73));function _0x3268(){const _0x32d5b3=['Flexible','push','1253730btRqgC','extractFileRetrieveStatusFromFileInfo','2488803XAdUdm','done','__esModule','then','Key','defineProperty','value','NeedRestore','promise','extractFileRetrieveStatusFromRestoreField','1679636uMTaIW','25233460nnblPO','1429652EYemGC','1341NhsaFi','Available','next','StorageClass','listObjects','__awaiter','165652FEutmc','throw','Restore','AwsFileRetrieveStatus','30jEtNNv','AwsS3Utils','../types/aws.types','Deep','2VzFooE','13736mQrkWf','Restoring'];_0x3268=function(){return _0x32d5b3;};return _0x3268();}var __awaiter=this&&this[_0x1baa72(0x119)]||function(_0x854986,_0x420b83,_0x4624c5,_0x3c228d){function _0x3bb7b8(_0x521861){return _0x521861 instanceof _0x4624c5?_0x521861:new _0x4624c5(function(_0x3a3eae){_0x3a3eae(_0x521861);});}return new(_0x4624c5||(_0x4624c5=Promise))(function(_0x3f409d,_0x169574){const _0x150e56=_0x2428;function _0x4a4e3a(_0x1b353f){const _0x3dd853=_0x2428;try{_0x3211da(_0x3c228d[_0x3dd853(0x116)](_0x1b353f));}catch(_0x43f338){_0x169574(_0x43f338);}}function _0x3b5f94(_0x2269b7){const _0xec7309=_0x2428;try{_0x3211da(_0x3c228d[_0xec7309(0x11b)](_0x2269b7));}catch(_0x5d1279){_0x169574(_0x5d1279);}}function _0x3211da(_0x59db24){const _0x324ba1=_0x2428;_0x59db24[_0x324ba1(0x108)]?_0x3f409d(_0x59db24[_0x324ba1(0x10d)]):_0x3bb7b8(_0x59db24[_0x324ba1(0x10d)])[_0x324ba1(0x10a)](_0x4a4e3a,_0x3b5f94);}_0x3211da((_0x3c228d=_0x3c228d['apply'](_0x854986,_0x420b83||[]))[_0x150e56(0x116)]());});};Object[_0x1baa72(0x10c)](exports,_0x1baa72(0x109),{'value':!![]}),exports['AwsS3Utils']=void 0x0;const aws_types_1=require(_0x1baa72(0x120));class AwsS3Utils{static[_0x1baa72(0x128)](_0x43cc89){const _0x2baf10=_0x1baa72;if(_0x43cc89[_0x2baf10(0x117)]===_0x2baf10(0x125)||_0x43cc89[_0x2baf10(0x117)]===_0x2baf10(0x121)){if(_0x43cc89[_0x2baf10(0x11c)])return AwsS3Utils[_0x2baf10(0x110)](_0x43cc89[_0x2baf10(0x11c)]);return aws_types_1[_0x2baf10(0x11d)][_0x2baf10(0x10e)];}return aws_types_1[_0x2baf10(0x11d)][_0x2baf10(0x115)];}static['extractFileRetrieveStatusFromRestoreField'](_0x3e0f5c){const _0x20ce60=_0x1baa72,_0x281114=/ongoing-request="([^"]+)"/,_0x5e687c=_0x3e0f5c['match'](_0x281114);return _0x5e687c[0x1]==='false'?aws_types_1['AwsFileRetrieveStatus'][_0x20ce60(0x115)]:aws_types_1[_0x20ce60(0x11d)][_0x20ce60(0x124)];}static['getFilesPaths'](_0x2ad269,_0x4fde46,_0xf6d94e){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x154218=_0x2428,_0x6267c4=[];let _0x5bd9cc,_0x4f521f=null;do{const _0xf61cb9={'Bucket':_0x4fde46,'Prefix':_0x2ad269,'Marker':_0x4f521f},{Contents:_0x58fcda,IsTruncated:_0x1a50d8}=yield _0xf6d94e[_0x154218(0x118)](_0xf61cb9)[_0x154218(0x10f)]();for(const _0x3d36f8 of _0x58fcda){_0x6267c4[_0x154218(0x126)](_0x3d36f8[_0x154218(0x10b)]);}_0x5bd9cc=_0x1a50d8,_0x5bd9cc&&(_0x4f521f=_0x58fcda['at'](-0x1)[_0x154218(0x10b)]);}while(_0x5bd9cc);return _0x6267c4;});}}exports[_0x1baa72(0x11f)]=AwsS3Utils;
|