@flosum/storages 1.0.10-beta.2 → 1.0.10-beta.3
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 _0xa02377=_0x41ea;(function(_0xd40652,_0x16c518){const _0xf9d8db=_0x41ea,_0x556326=_0xd40652();while(!![]){try{const _0xf02c69=parseInt(_0xf9d8db(0x181))/0x1*(parseInt(_0xf9d8db(0x186))/0x2)+parseInt(_0xf9d8db(0x195))/0x3+-parseInt(_0xf9d8db(0x184))/0x4+-parseInt(_0xf9d8db(0x196))/0x5+parseInt(_0xf9d8db(0x19a))/0x6*(parseInt(_0xf9d8db(0x190))/0x7)+-parseInt(_0xf9d8db(0x18f))/0x8*(-parseInt(_0xf9d8db(0x193))/0x9)+-parseInt(_0xf9d8db(0x194))/0xa;if(_0xf02c69===_0x16c518)break;else _0x556326['push'](_0x556326['shift']());}catch(_0x3a86ff){_0x556326['push'](_0x556326['shift']());}}}(_0x5ec3,0xa532e));function _0x5ec3(){const _0x2adfb5=['next','46tOFpZq','__awaiter','defineProperty','./base-credentials','validate','default','value','accessKeyId','then','8fQPJAl','223286lhaiGW','BaseCredentials','apply','3271959GhSciq','11055780GHBTbC','1719276aBMrOA','4946685iqXahS','secretAccessKey','bucketName','done','204ktBrLk','AwsS3Credentials','message','Failed\x20to\x20validate\x20storage\x20credentials.\x20Raw\x20error:\x20','promise','35421GomdXr','credentials','__esModule','257156yFcekr'];_0x5ec3=function(){return _0x2adfb5;};return _0x5ec3();}function _0x41ea(_0x3a391a,_0x46e80d){const _0x5ec355=_0x5ec3();return _0x41ea=function(_0x41ea9b,_0x2b9088){_0x41ea9b=_0x41ea9b-0x17d;let _0x2ebd9b=_0x5ec355[_0x41ea9b];return _0x2ebd9b;},_0x41ea(_0x3a391a,_0x46e80d);}var __awaiter=this&&this[_0xa02377(0x187)]||function(_0x439916,_0x22a7e4,_0x1159a1,_0xa95c66){function _0x1375f4(_0x1a00a7){return _0x1a00a7 instanceof _0x1159a1?_0x1a00a7:new _0x1159a1(function(_0x8082a6){_0x8082a6(_0x1a00a7);});}return new(_0x1159a1||(_0x1159a1=Promise))(function(_0x3b3193,_0x18041a){const _0x55e6d5=_0x41ea;function _0x550f4f(_0x1cdc96){const _0x40ae3d=_0x41ea;try{_0x26c632(_0xa95c66[_0x40ae3d(0x185)](_0x1cdc96));}catch(_0x1b1bea){_0x18041a(_0x1b1bea);}}function _0x27a2e8(_0xe0d259){try{_0x26c632(_0xa95c66['throw'](_0xe0d259));}catch(_0x2e85f1){_0x18041a(_0x2e85f1);}}function _0x26c632(_0x19832a){const _0x2a6e49=_0x41ea;_0x19832a[_0x2a6e49(0x199)]?_0x3b3193(_0x19832a[_0x2a6e49(0x18c)]):_0x1375f4(_0x19832a['value'])[_0x2a6e49(0x18e)](_0x550f4f,_0x27a2e8);}_0x26c632((_0xa95c66=_0xa95c66[_0x55e6d5(0x192)](_0x439916,_0x22a7e4||[]))[_0x55e6d5(0x185)]());});},__importDefault=this&&this['__importDefault']||function(_0x3ad86e){return _0x3ad86e&&_0x3ad86e['__esModule']?_0x3ad86e:{'default':_0x3ad86e};};Object[_0xa02377(0x188)](exports,_0xa02377(0x183),{'value':!![]}),exports[_0xa02377(0x17d)]=void 0x0;const aws_sdk_1=__importDefault(require('aws-sdk')),base_credentials_1=require(_0xa02377(0x189));class AwsS3Credentials extends base_credentials_1[_0xa02377(0x191)]{constructor(){const _0x575d64=_0xa02377;super(...arguments),this['s3']=new aws_sdk_1[(_0x575d64(0x18b))]['S3']({'accessKeyId':this['credentials']['accessKeyId'],'secretAccessKey':this[_0x575d64(0x182)][_0x575d64(0x197)]});}get[_0xa02377(0x18d)](){const _0x1bd48c=_0xa02377;return this[_0x1bd48c(0x182)]['accessKeyId'];}get['secretAccessKey'](){const _0x270e9a=_0xa02377;return this[_0x270e9a(0x182)][_0x270e9a(0x197)];}get[_0xa02377(0x198)](){const _0x5ac83c=_0xa02377;return this[_0x5ac83c(0x182)][_0x5ac83c(0x198)];}[_0xa02377(0x18a)](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x2e44a0=_0x41ea;try{const _0x49e16d={'Bucket':this[_0x2e44a0(0x182)][_0x2e44a0(0x198)]};yield this['s3']['headBucket'](_0x49e16d)[_0x2e44a0(0x180)]();}catch(_0x3d4599){throw new Error(_0x2e44a0(0x17f)+_0x3d4599[_0x2e44a0(0x17e)]);}});}['getCredentials'](_0x46dfd8=![]){const _0x102b7f=_0xa02377;if(_0x46dfd8)return{'bucketName':this[_0x102b7f(0x182)][_0x102b7f(0x198)]};return this[_0x102b7f(0x182)];}}exports[_0xa02377(0x17d)]=AwsS3Credentials;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x5805e7=_0xdd38;function _0x2ba7(){var _0x5d0a05=['10762380tNiSfu','36430jRpbqt','BaseCredentials','7961676uSslKP','42965wcHAPk','730975YsbRNy','rawCredentials','74ZszwLT','credentials','21126750iXhojj','__esModule','683391dlPCRI','120CAPtxn','348mhfZLN'];_0x2ba7=function(){return _0x5d0a05;};return _0x2ba7();}(function(_0x12d032,_0x9e988e){var _0x44e0f1=_0xdd38,_0x26925d=_0x12d032();while(!![]){try{var _0x751dc0=parseInt(_0x44e0f1(0x1dd))/0x1*(parseInt(_0x44e0f1(0x1e5))/0x2)+-parseInt(_0x44e0f1(0x1e1))/0x3+parseInt(_0x44e0f1(0x1e3))/0x4*(-parseInt(_0x44e0f1(0x1e8))/0x5)+-parseInt(_0x44e0f1(0x1e7))/0x6+-parseInt(_0x44e0f1(0x1e9))/0x7*(parseInt(_0x44e0f1(0x1e2))/0x8)+parseInt(_0x44e0f1(0x1e4))/0x9+parseInt(_0x44e0f1(0x1df))/0xa;if(_0x751dc0===_0x9e988e)break;else _0x26925d['push'](_0x26925d['shift']());}catch(_0x1a96c9){_0x26925d['push'](_0x26925d['shift']());}}}(_0x2ba7,0xc04f0));Object['defineProperty'](exports,_0x5805e7(0x1e0),{'value':!![]}),exports[_0x5805e7(0x1e6)]=void 0x0;function _0xdd38(_0x3845df,_0x596ee6){var _0x2ba715=_0x2ba7();return _0xdd38=function(_0xdd3890,_0x1b0be4){_0xdd3890=_0xdd3890-0x1dc;var _0x549d9b=_0x2ba715[_0xdd3890];return _0x549d9b;},_0xdd38(_0x3845df,_0x596ee6);}class BaseCredentials{constructor(_0x2b8c80){var _0x30c47c=_0x5805e7;this[_0x30c47c(0x1dc)]=_0x2b8c80,this[_0x30c47c(0x1de)]=this['rawCredentials']?JSON['parse'](this[_0x30c47c(0x1dc)]):null;}}exports['BaseCredentials']=BaseCredentials;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function _0x4d3a(_0x4f25ee,_0x5d0d21){var _0x4341f6=_0x4341();return _0x4d3a=function(_0x4d3a1f,_0x32dfd4){_0x4d3a1f=_0x4d3a1f-0x10a;var _0x48cb32=_0x4341f6[_0x4d3a1f];return _0x48cb32;},_0x4d3a(_0x4f25ee,_0x5d0d21);}var _0x911dca=_0x4d3a;(function(_0x3e605a,_0x2b8793){var _0x200728=_0x4d3a,_0x255eb5=_0x3e605a();while(!![]){try{var _0x2fd512=parseInt(_0x200728(0x115))/0x1*(-parseInt(_0x200728(0x114))/0x2)+-parseInt(_0x200728(0x112))/0x3+parseInt(_0x200728(0x10a))/0x4+parseInt(_0x200728(0x11a))/0x5+parseInt(_0x200728(0x10f))/0x6+parseInt(_0x200728(0x10c))/0x7+parseInt(_0x200728(0x117))/0x8*(parseInt(_0x200728(0x113))/0x9);if(_0x2fd512===_0x2b8793)break;else _0x255eb5['push'](_0x255eb5['shift']());}catch(_0x2a0d20){_0x255eb5['push'](_0x255eb5['shift']());}}}(_0x4341,0xb803d));Object[_0x911dca(0x119)](exports,_0x911dca(0x10e),{'value':!![]}),exports[_0x911dca(0x10b)]=exports[_0x911dca(0x111)]=exports[_0x911dca(0x110)]=void 0x0;var base_credentials_1=require(_0x911dca(0x118));function _0x4341(){var _0x3cdaf3=['4221882VjvwRV','./local-credentials','__esModule','7009488koObOO','BaseCredentials','AwsS3Credentials','3548976IFVsOC','45fSCrti','1982aHPAMz','1517rIvvhf','./aws-s3-credentials','1089944JmASNu','./base-credentials','defineProperty','2949275ZEkRWU','1590480DXQnoI','LocalCredentials'];_0x4341=function(){return _0x3cdaf3;};return _0x4341();}Object[_0x911dca(0x119)](exports,_0x911dca(0x110),{'enumerable':!![],'get':function(){return base_credentials_1['BaseCredentials'];}});var aws_s3_credentials_1=require(_0x911dca(0x116));Object[_0x911dca(0x119)](exports,'AwsS3Credentials',{'enumerable':!![],'get':function(){var _0x5409e5=_0x911dca;return aws_s3_credentials_1[_0x5409e5(0x111)];}});var local_credentials_1=require(_0x911dca(0x10d));Object[_0x911dca(0x119)](exports,_0x911dca(0x10b),{'enumerable':!![],'get':function(){var _0x282045=_0x911dca;return local_credentials_1[_0x282045(0x10b)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x24d5f9=_0x3c67;(function(_0x5bb5f9,_0x477fc8){const _0x9a64fa=_0x3c67,_0x54525b=_0x5bb5f9();while(!![]){try{const _0x447331=-parseInt(_0x9a64fa(0xa0))/0x1*(parseInt(_0x9a64fa(0x9b))/0x2)+parseInt(_0x9a64fa(0xa3))/0x3+-parseInt(_0x9a64fa(0x9a))/0x4+parseInt(_0x9a64fa(0xa6))/0x5+-parseInt(_0x9a64fa(0x9c))/0x6*(-parseInt(_0x9a64fa(0x96))/0x7)+-parseInt(_0x9a64fa(0xa4))/0x8*(-parseInt(_0x9a64fa(0xa1))/0x9)+parseInt(_0x9a64fa(0x98))/0xa*(-parseInt(_0x9a64fa(0x97))/0xb);if(_0x447331===_0x477fc8)break;else _0x54525b['push'](_0x54525b['shift']());}catch(_0x36e92d){_0x54525b['push'](_0x54525b['shift']());}}}(_0x54d6,0xdb3a4));Object['defineProperty'](exports,_0x24d5f9(0x9e),{'value':!![]}),exports['LocalCredentials']=void 0x0;const base_credentials_1=require(_0x24d5f9(0x9d));function _0x54d6(){const _0x201364=['20jEURAd','getCredentials','6690716KwYUhA','611406yWoDqr','37302DuuhuC','./base-credentials','__esModule','LocalCredentials','1qSFYiM','9VnMeAJ','validate','4057026RBvVXP','9096176fQamog','resolve','888145pusuZh','917zhRPoa','3327951SKwzgD'];_0x54d6=function(){return _0x201364;};return _0x54d6();}function _0x3c67(_0x259fa5,_0x1b5f88){const _0x54d65f=_0x54d6();return _0x3c67=function(_0x3c67e6,_0x2b24c6){_0x3c67e6=_0x3c67e6-0x96;let _0x2d89d7=_0x54d65f[_0x3c67e6];return _0x2d89d7;},_0x3c67(_0x259fa5,_0x1b5f88);}class LocalCredentials extends base_credentials_1['BaseCredentials']{[_0x24d5f9(0x99)](){return null;}[_0x24d5f9(0xa2)](){const _0x1753a1=_0x24d5f9;return Promise[_0x1753a1(0xa5)](undefined);}}exports[_0x24d5f9(0x9f)]=LocalCredentials;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x2374f6=_0x2ddd;(function(_0x1878ed,_0x8d0f3f){const _0x335939=_0x2ddd,_0x4198c9=_0x1878ed();while(!![]){try{const _0x4eb9dc=-parseInt(_0x335939(0x1ab))/0x1+-parseInt(_0x335939(0x18c))/0x2+-parseInt(_0x335939(0x1a6))/0x3+parseInt(_0x335939(0x18d))/0x4+-parseInt(_0x335939(0x19d))/0x5*(-parseInt(_0x335939(0x196))/0x6)+parseInt(_0x335939(0x1a7))/0x7*(parseInt(_0x335939(0x195))/0x8)+parseInt(_0x335939(0x1a8))/0x9*(parseInt(_0x335939(0x193))/0xa);if(_0x4eb9dc===_0x8d0f3f)break;else _0x4198c9['push'](_0x4198c9['shift']());}catch(_0x59c067){_0x4198c9['push'](_0x4198c9['shift']());}}}(_0x2923,0x9f211));function _0x2923(){const _0x276482=['ArrayUtils','AwsS3Utils','175090bEPxWj','map','52696VeCDNv','18zZCsjL','AwsS3Delete','BaseDelete','next','promise','default','execute','1570345vQXCBA','join','__awaiter','bucketName','OBJECTS_PER_CHUNK','then','__esModule','accessKeyId','splitOnChunks','2200752neRToA','679SamkHo','261TMIEal','sep','deleteObjects','1225990BrzYJM','value','credentials','848142YTXFJO','3786124YjiVMC','secretAccessKey','defineProperty','posix'];_0x2923=function(){return _0x276482;};return _0x2923();}var __awaiter=this&&this[_0x2374f6(0x19f)]||function(_0x5d271e,_0x5c26bb,_0x3de662,_0x2468ff){function _0x4fc13b(_0x41eda9){return _0x41eda9 instanceof _0x3de662?_0x41eda9:new _0x3de662(function(_0x1d798d){_0x1d798d(_0x41eda9);});}return new(_0x3de662||(_0x3de662=Promise))(function(_0x356ef4,_0x2d2ca8){function _0xe60404(_0x2cf984){const _0x41a582=_0x2ddd;try{_0x3b8a7c(_0x2468ff[_0x41a582(0x199)](_0x2cf984));}catch(_0x40b38c){_0x2d2ca8(_0x40b38c);}}function _0x32c0da(_0x55718c){try{_0x3b8a7c(_0x2468ff['throw'](_0x55718c));}catch(_0x282f60){_0x2d2ca8(_0x282f60);}}function _0x3b8a7c(_0xb2ecdb){const _0x511e0a=_0x2ddd;_0xb2ecdb['done']?_0x356ef4(_0xb2ecdb[_0x511e0a(0x18a)]):_0x4fc13b(_0xb2ecdb[_0x511e0a(0x18a)])[_0x511e0a(0x1a2)](_0xe60404,_0x32c0da);}_0x3b8a7c((_0x2468ff=_0x2468ff['apply'](_0x5d271e,_0x5c26bb||[]))['next']());});},__importDefault=this&&this['__importDefault']||function(_0x1605ae){const _0x531454=_0x2374f6;return _0x1605ae&&_0x1605ae[_0x531454(0x1a3)]?_0x1605ae:{'default':_0x1605ae};};Object[_0x2374f6(0x18f)](exports,_0x2374f6(0x1a3),{'value':!![]}),exports['AwsS3Delete']=void 0x0;const aws_sdk_1=__importDefault(require('aws-sdk')),path_1=__importDefault(require('path')),utils_1=require('@flosum-service/utils'),aws_s3_utils_1=require('../utils/aws-s3.utils'),_1=require('./');class AwsS3Delete extends _1[_0x2374f6(0x198)]{constructor(_0x1b65df){const _0x58b135=_0x2374f6;super(_0x1b65df),this[_0x58b135(0x18b)]=_0x1b65df,this[_0x58b135(0x1a1)]=0x3e8,this['s3']=new aws_sdk_1[(_0x58b135(0x19b))]['S3']({'accessKeyId':this[_0x58b135(0x18b)][_0x58b135(0x1a4)],'secretAccessKey':this[_0x58b135(0x18b)][_0x58b135(0x18e)]});}[_0x2374f6(0x19c)](_0x862192){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x1cefb6=_0x2ddd,_0x1c2707=_0x862192['split'](path_1[_0x1cefb6(0x19b)][_0x1cefb6(0x1a9)])[_0x1cefb6(0x19e)](path_1[_0x1cefb6(0x19b)][_0x1cefb6(0x190)][_0x1cefb6(0x1a9)]),_0x4a356e=yield aws_s3_utils_1[_0x1cefb6(0x192)]['getFilesPaths'](_0x1c2707,this[_0x1cefb6(0x18b)][_0x1cefb6(0x1a0)],this['s3']),_0x197b85=utils_1[_0x1cefb6(0x191)][_0x1cefb6(0x1a5)](_0x4a356e,this[_0x1cefb6(0x1a1)]);for(const _0x30b9d6 of _0x197b85){const _0xfe09ac=_0x30b9d6[_0x1cefb6(0x194)](_0x582925=>({'Key':_0x582925})),_0x296d81={'Bucket':this['credentials'][_0x1cefb6(0x1a0)],'Delete':{'Objects':_0xfe09ac}};yield this['s3'][_0x1cefb6(0x1aa)](_0x296d81)[_0x1cefb6(0x19a)]();}});}}function _0x2ddd(_0x1a53dc,_0x159b5d){const _0x292387=_0x2923();return _0x2ddd=function(_0x2dddfc,_0x463455){_0x2dddfc=_0x2dddfc-0x18a;let _0x1aabc2=_0x292387[_0x2dddfc];return _0x1aabc2;},_0x2ddd(_0x1a53dc,_0x159b5d);}exports[_0x2374f6(0x197)]=AwsS3Delete;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x44d495=_0x13a2;(function(_0x348a23,_0xc123c4){var _0x115a3b=_0x13a2,_0x3beae4=_0x348a23();while(!![]){try{var _0x3ef80e=parseInt(_0x115a3b(0xdc))/0x1*(-parseInt(_0x115a3b(0xe5))/0x2)+parseInt(_0x115a3b(0xdd))/0x3+-parseInt(_0x115a3b(0xe0))/0x4*(parseInt(_0x115a3b(0xe6))/0x5)+-parseInt(_0x115a3b(0xe4))/0x6*(-parseInt(_0x115a3b(0xdf))/0x7)+parseInt(_0x115a3b(0xdb))/0x8+parseInt(_0x115a3b(0xe1))/0x9*(parseInt(_0x115a3b(0xe3))/0xa)+-parseInt(_0x115a3b(0xd9))/0xb*(-parseInt(_0x115a3b(0xe2))/0xc);if(_0x3ef80e===_0xc123c4)break;else _0x3beae4['push'](_0x3beae4['shift']());}catch(_0x680ab9){_0x3beae4['push'](_0x3beae4['shift']());}}}(_0x24ee,0xb070b));Object[_0x44d495(0xde)](exports,'__esModule',{'value':!![]}),exports[_0x44d495(0xda)]=void 0x0;class BaseDelete{constructor(_0x3c3e5b){this['credentials']=_0x3c3e5b;}}function _0x24ee(){var _0x1c0e59=['114aSkTNJ','5wESfQg','44924kETvoH','BaseDelete','3625112kiDTuK','23363aNVgff','895782bvMDDY','defineProperty','1984927TATDKH','4630436dXXufS','3354165YvvHfV','1968YrbKkD','10lAXQwE','30bjXiCl'];_0x24ee=function(){return _0x1c0e59;};return _0x24ee();}function _0x13a2(_0x5d7438,_0x13273b){var _0x24ee92=_0x24ee();return _0x13a2=function(_0x13a239,_0x46c9cb){_0x13a239=_0x13a239-0xd9;var _0x214f2f=_0x24ee92[_0x13a239];return _0x214f2f;},_0x13a2(_0x5d7438,_0x13273b);}exports['BaseDelete']=BaseDelete;
|
package/dist/delete/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x2afaa3=_0x4107;(function(_0x314f01,_0x4c3aeb){var _0x2b3d68=_0x4107,_0x1f9fdb=_0x314f01();while(!![]){try{var _0x15fddd=parseInt(_0x2b3d68(0x1f6))/0x1+-parseInt(_0x2b3d68(0x1e9))/0x2+parseInt(_0x2b3d68(0x1f4))/0x3*(parseInt(_0x2b3d68(0x1f0))/0x4)+-parseInt(_0x2b3d68(0x1ec))/0x5+-parseInt(_0x2b3d68(0x1e8))/0x6+parseInt(_0x2b3d68(0x1ef))/0x7*(-parseInt(_0x2b3d68(0x1f3))/0x8)+parseInt(_0x2b3d68(0x1f2))/0x9;if(_0x15fddd===_0x4c3aeb)break;else _0x1f9fdb['push'](_0x1f9fdb['shift']());}catch(_0x2a77d2){_0x1f9fdb['push'](_0x1f9fdb['shift']());}}}(_0x1568,0xdd444));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['LocalDelete']=exports['AwsS3Delete']=exports[_0x2afaa3(0x1f1)]=void 0x0;var base_delete_1=require(_0x2afaa3(0x1ed));Object[_0x2afaa3(0x1f5)](exports,_0x2afaa3(0x1f1),{'enumerable':!![],'get':function(){var _0x43a534=_0x2afaa3;return base_delete_1[_0x43a534(0x1f1)];}});var aws_s3_delete_1=require('./aws-s3-delete');function _0x4107(_0x57d54e,_0x30efa7){var _0x1568e1=_0x1568();return _0x4107=function(_0x4107fc,_0x50e043){_0x4107fc=_0x4107fc-0x1e8;var _0x1dc10b=_0x1568e1[_0x4107fc];return _0x1dc10b;},_0x4107(_0x57d54e,_0x30efa7);}Object[_0x2afaa3(0x1f5)](exports,_0x2afaa3(0x1eb),{'enumerable':!![],'get':function(){var _0x513f5f=_0x2afaa3;return aws_s3_delete_1[_0x513f5f(0x1eb)];}});var local_delete_1=require(_0x2afaa3(0x1ee));function _0x1568(){var _0x27a319=['4klUAmJ','BaseDelete','40403916XEectH','59864ZiCGBH','3869367QCeaEc','defineProperty','241180RzNssJ','9057834REQove','2048600vLlXCP','LocalDelete','AwsS3Delete','8896825FCJCUx','./base-delete','./local-delete','749mVpHTD'];_0x1568=function(){return _0x27a319;};return _0x1568();}Object['defineProperty'](exports,_0x2afaa3(0x1ea),{'enumerable':!![],'get':function(){var _0x3c4bc7=_0x2afaa3;return local_delete_1[_0x3c4bc7(0x1ea)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x4c2e4c=_0x4dad;(function(_0x2eb69a,_0x5ec2ef){const _0x4e75cc=_0x4dad,_0x2baad7=_0x2eb69a();while(!![]){try{const _0x215ca2=-parseInt(_0x4e75cc(0xb4))/0x1+-parseInt(_0x4e75cc(0xad))/0x2+parseInt(_0x4e75cc(0xb3))/0x3+parseInt(_0x4e75cc(0xa4))/0x4+-parseInt(_0x4e75cc(0xa8))/0x5+parseInt(_0x4e75cc(0xa6))/0x6+parseInt(_0x4e75cc(0xaa))/0x7*(parseInt(_0x4e75cc(0xa5))/0x8);if(_0x215ca2===_0x5ec2ef)break;else _0x2baad7['push'](_0x2baad7['shift']());}catch(_0x54346f){_0x2baad7['push'](_0x2baad7['shift']());}}}(_0x328a,0x7471c));var __awaiter=this&&this[_0x4c2e4c(0xb7)]||function(_0x4e28f2,_0x167565,_0x5368df,_0x23fb41){function _0x2b399b(_0x52c0cd){return _0x52c0cd instanceof _0x5368df?_0x52c0cd:new _0x5368df(function(_0x22e965){_0x22e965(_0x52c0cd);});}return new(_0x5368df||(_0x5368df=Promise))(function(_0x29a263,_0x33abb8){const _0x48e74c=_0x4dad;function _0x11109c(_0x1097d1){const _0x1cdb74=_0x4dad;try{_0x4fe491(_0x23fb41[_0x1cdb74(0xac)](_0x1097d1));}catch(_0x243f2c){_0x33abb8(_0x243f2c);}}function _0xc98cba(_0x4a03d5){try{_0x4fe491(_0x23fb41['throw'](_0x4a03d5));}catch(_0x15c86b){_0x33abb8(_0x15c86b);}}function _0x4fe491(_0x277b90){const _0xeff1be=_0x4dad;_0x277b90[_0xeff1be(0xb8)]?_0x29a263(_0x277b90['value']):_0x2b399b(_0x277b90['value'])[_0xeff1be(0xb0)](_0x11109c,_0xc98cba);}_0x4fe491((_0x23fb41=_0x23fb41[_0x48e74c(0xaf)](_0x4e28f2,_0x167565||[]))['next']());});};function _0x4dad(_0x14a1a4,_0x46828b){const _0x328a88=_0x328a();return _0x4dad=function(_0x4dade7,_0x1f166c){_0x4dade7=_0x4dade7-0xa4;let _0x344ad0=_0x328a88[_0x4dade7];return _0x344ad0;},_0x4dad(_0x14a1a4,_0x46828b);}Object['defineProperty'](exports,_0x4c2e4c(0xa9),{'value':!![]}),exports[_0x4c2e4c(0xae)]=void 0x0;const promises_1=require(_0x4c2e4c(0xb2)),utils_1=require(_0x4c2e4c(0xa7)),_1=require('./');class LocalDelete extends _1[_0x4c2e4c(0xb5)]{[_0x4c2e4c(0xab)](_0x2ee247){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x44979d=_0x4dad;if(yield utils_1[_0x44979d(0xb6)][_0x44979d(0xb1)](_0x2ee247))yield(0x0,promises_1['rm'])(_0x2ee247,{'recursive':!![]});});}}function _0x328a(){const _0x2d3e46=['LocalDelete','apply','then','isExistsPath','fs/promises','812997LSMfKL','231107JQylfX','BaseDelete','FsUtils','__awaiter','done','1816192nraska','1190224pHSZMZ','2766498eOqAOO','@flosum-service/utils','643490oPSrge','__esModule','7nsZRWP','execute','next','996294SrbsmO'];_0x328a=function(){return _0x2d3e46;};return _0x328a();}exports[_0x4c2e4c(0xae)]=LocalDelete;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x5e5b(_0x2d8e06,_0x45f02d){const _0x46ac78=_0x46ac();return _0x5e5b=function(_0x5e5bc3,_0x17e0bd){_0x5e5bc3=_0x5e5bc3-0x1ef;let _0x28db35=_0x46ac78[_0x5e5bc3];return _0x28db35;},_0x5e5b(_0x2d8e06,_0x45f02d);}const _0x1109dc=_0x5e5b;(function(_0x255888,_0x4a1d0c){const _0x1fc5e6=_0x5e5b,_0x41dd16=_0x255888();while(!![]){try{const _0x4accfb=parseInt(_0x1fc5e6(0x1fd))/0x1*(-parseInt(_0x1fc5e6(0x212))/0x2)+parseInt(_0x1fc5e6(0x20a))/0x3*(parseInt(_0x1fc5e6(0x1fb))/0x4)+-parseInt(_0x1fc5e6(0x1fc))/0x5+parseInt(_0x1fc5e6(0x1f7))/0x6*(-parseInt(_0x1fc5e6(0x220))/0x7)+-parseInt(_0x1fc5e6(0x21f))/0x8+-parseInt(_0x1fc5e6(0x222))/0x9*(parseInt(_0x1fc5e6(0x22a))/0xa)+parseInt(_0x1fc5e6(0x204))/0xb;if(_0x4accfb===_0x4a1d0c)break;else _0x41dd16['push'](_0x41dd16['shift']());}catch(_0x30becc){_0x41dd16['push'](_0x41dd16['shift']());}}}(_0x46ac,0x29cd6));var __awaiter=this&&this[_0x1109dc(0x224)]||function(_0x38ac86,_0x40af71,_0x237566,_0x5b2056){function _0x25d27c(_0xb69ef1){return _0xb69ef1 instanceof _0x237566?_0xb69ef1:new _0x237566(function(_0x1bd1f0){_0x1bd1f0(_0xb69ef1);});}return new(_0x237566||(_0x237566=Promise))(function(_0x2ce0fe,_0x275546){const _0x1d021b=_0x5e5b;function _0x4940f3(_0x3ae77f){try{_0x14f018(_0x5b2056['next'](_0x3ae77f));}catch(_0x1f9d55){_0x275546(_0x1f9d55);}}function _0x48b588(_0x1ff2cc){const _0xa0e1a1=_0x5e5b;try{_0x14f018(_0x5b2056[_0xa0e1a1(0x221)](_0x1ff2cc));}catch(_0x6268ac){_0x275546(_0x6268ac);}}function _0x14f018(_0x2d7079){const _0xba1b63=_0x5e5b;_0x2d7079[_0xba1b63(0x20c)]?_0x2ce0fe(_0x2d7079[_0xba1b63(0x21b)]):_0x25d27c(_0x2d7079[_0xba1b63(0x21b)])['then'](_0x4940f3,_0x48b588);}_0x14f018((_0x5b2056=_0x5b2056[_0x1d021b(0x202)](_0x38ac86,_0x40af71||[]))[_0x1d021b(0x219)]());});},__importDefault=this&&this[_0x1109dc(0x21c)]||function(_0x6005bf){const _0x2dfc76=_0x1109dc;return _0x6005bf&&_0x6005bf[_0x2dfc76(0x21d)]?_0x6005bf:{'default':_0x6005bf};};Object[_0x1109dc(0x207)](exports,'__esModule',{'value':!![]}),exports[_0x1109dc(0x1fa)]=void 0x0;const aws_sdk_1=__importDefault(require(_0x1109dc(0x1ef))),path_1=__importDefault(require(_0x1109dc(0x1f9))),crypto_1=require('crypto'),fs_1=require('fs'),promises_1=require('fs/promises'),promises_2=require(_0x1109dc(0x214)),_1=require('./'),https_1=__importDefault(require(_0x1109dc(0x205)));class AwsS3Deploy extends _1[_0x1109dc(0x210)]{constructor(_0x56e5e6,_0x2358a6,_0x999a46){const _0x58edd8=_0x1109dc;super(_0x56e5e6,_0x2358a6),this[_0x58edd8(0x225)]=_0x56e5e6,this[_0x58edd8(0x201)]=_0x2358a6,this['storageClass']=_0x999a46,this[_0x58edd8(0x213)]=0xa,this[_0x58edd8(0x215)]=+process[_0x58edd8(0x1fe)][_0x58edd8(0x1f1)]||0x2,this['QUEUE_CHECK_TIMEOUT']=0x5*0x3e8,this[_0x58edd8(0x203)]=0x0,this['s3']=new aws_sdk_1[(_0x58edd8(0x1f6))]['S3']({'accessKeyId':this['credentials'][_0x58edd8(0x1ff)],'secretAccessKey':this[_0x58edd8(0x225)][_0x58edd8(0x1f2)],'maxRetries':0xa,'httpOptions':{'agent':new https_1[(_0x58edd8(0x1f6))][(_0x58edd8(0x20d))]({'keepAlive':!![]})}}),console[_0x58edd8(0x206)]('this.s3:',this['s3']['config']['httpOptions'][_0x58edd8(0x1f0)]);}[_0x1109dc(0x209)](_0x3d80fb){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x374a20=_0x5e5b,_0x5a677b=path_1['default'][_0x374a20(0x21a)](this[_0x374a20(0x201)],(0x0,crypto_1[_0x374a20(0x218)])());return console[_0x374a20(0x20f)](_0x374a20(0x1f5)+_0x5a677b),yield(0x0,promises_1[_0x374a20(0x227)])(_0x5a677b,_0x3d80fb),console[_0x374a20(0x216)](_0x374a20(0x1f5)+_0x5a677b),{'path':_0x5a677b};});}['uploadFileStreamFromPath'](_0x32e3e8,_0x3c06b8,_0x2d9398=0x0,_0x50fa58=null){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x5f4d4d=_0x5e5b;if(_0x2d9398>this[_0x5f4d4d(0x213)])throw _0x50fa58;console[_0x5f4d4d(0x20f)](_0x5f4d4d(0x217)+_0x3c06b8+_0x5f4d4d(0x1f8)+_0x2d9398);const _0x3c6791=(0x0,fs_1['createReadStream'])(_0x32e3e8);try{yield this[_0x5f4d4d(0x21e)](_0x3c6791,_0x3c06b8);}catch(_0x1fd5fd){return this[_0x5f4d4d(0x229)](_0x32e3e8,_0x3c06b8,_0x2d9398+0x1,_0x1fd5fd);}console['timeEnd'](_0x5f4d4d(0x217)+_0x3c06b8+',\x20try\x20'+_0x2d9398);});}[_0x1109dc(0x21e)](_0x1fc743,_0x4eec02){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x390dae=_0x5e5b,_0x3cad12={'Bucket':this['credentials'][_0x390dae(0x226)],'Key':_0x4eec02,'Body':_0x1fc743,'StorageClass':this['storageClass']};yield this['s3']['upload'](_0x3cad12)[_0x390dae(0x211)]();});}[_0x1109dc(0x1f3)](_0x32a08,_0x3a5712){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x74ef2f=_0x5e5b,{path:_0x225daf}=yield this[_0x74ef2f(0x209)](_0x32a08);try{yield this['uploadFileStreamFromPath'](_0x225daf,_0x3a5712);}catch(_0x3e28b0){throw _0x3e28b0;}finally{yield(0x0,promises_1['rm'])(_0x225daf)[_0x74ef2f(0x200)](()=>undefined);}});}[_0x1109dc(0x208)](_0x520a28,_0x39a523){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x25b016=_0x5e5b;if(this['_queueSize']===this[_0x25b016(0x215)])return yield(0x0,promises_2[_0x25b016(0x1f4)])(this[_0x25b016(0x20b)]),this['execute'](_0x520a28,_0x39a523);try{this[_0x25b016(0x203)]+=0x1;const _0x2a6bf=_0x39a523[_0x25b016(0x228)](path_1[_0x25b016(0x1f6)][_0x25b016(0x223)])['join'](path_1[_0x25b016(0x1f6)]['posix'][_0x25b016(0x223)]);if(Buffer[_0x25b016(0x20e)](_0x520a28)){yield this[_0x25b016(0x21e)](_0x520a28,_0x2a6bf);return;}yield this[_0x25b016(0x1f3)](_0x520a28,_0x2a6bf);}catch(_0x4d9c89){throw _0x4d9c89;}finally{this[_0x25b016(0x203)]-=0x1;}});}}function _0x46ac(){const _0x42843f=['next','join','value','__importDefault','__esModule','upload','1652792PhFHXC','427nXWDQT','throw','13401AeNumn','sep','__awaiter','credentials','bucketName','writeFile','split','uploadFileStreamFromPath','1990LeOBba','aws-sdk','agent','POOL_SIZE','secretAccessKey','handleStreamUpload','setTimeout','written\x20to\x20tmp\x20at\x20','default','16194RPJzSC',',\x20try\x20','path','AwsS3Deploy','80wmKLGL','135200QcAZJM','217LTDVAs','env','accessKeyId','catch','tempDir','apply','_queueSize','9681727rfACnR','https','log','defineProperty','execute','writeToTemp','38796FSvIGM','QUEUE_CHECK_TIMEOUT','done','Agent','isBuffer','time','BaseDeploy','promise','2516BkogIh','MAX_RETRIES','timers/promises','QUEUE_MAX_SIZE','timeEnd','uploaded\x20to\x20aws\x20at\x20','randomUUID'];_0x46ac=function(){return _0x42843f;};return _0x46ac();}exports[_0x1109dc(0x1fa)]=AwsS3Deploy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function _0x2871(_0x8a4067,_0x508a82){var _0x19cc41=_0x19cc();return _0x2871=function(_0x287181,_0x22f365){_0x287181=_0x287181-0x18f;var _0x4b4f2b=_0x19cc41[_0x287181];return _0x4b4f2b;},_0x2871(_0x8a4067,_0x508a82);}var _0x9653a8=_0x2871;(function(_0x5c9881,_0x5d5813){var _0x37de9c=_0x2871,_0x3da1a0=_0x5c9881();while(!![]){try{var _0x15250c=-parseInt(_0x37de9c(0x198))/0x1*(parseInt(_0x37de9c(0x191))/0x2)+parseInt(_0x37de9c(0x194))/0x3+parseInt(_0x37de9c(0x19b))/0x4*(-parseInt(_0x37de9c(0x192))/0x5)+-parseInt(_0x37de9c(0x18f))/0x6+-parseInt(_0x37de9c(0x19a))/0x7*(parseInt(_0x37de9c(0x19c))/0x8)+parseInt(_0x37de9c(0x196))/0x9+parseInt(_0x37de9c(0x199))/0xa;if(_0x15250c===_0x5d5813)break;else _0x3da1a0['push'](_0x3da1a0['shift']());}catch(_0x27522a){_0x3da1a0['push'](_0x3da1a0['shift']());}}}(_0x19cc,0xbb54a));Object[_0x9653a8(0x197)](exports,_0x9653a8(0x195),{'value':!![]}),exports[_0x9653a8(0x193)]=void 0x0;function _0x19cc(){var _0x4dc5e8=['__esModule','11515329QalBAg','defineProperty','1288943BJpJRE','35571540AVJtwZ','49OzvZsO','2372LJLItN','1190632rKEhjw','8304996RJDSMt','tempDir','2TZSHhL','7515AWQoOu','BaseDeploy','1610586NocRoT'];_0x19cc=function(){return _0x4dc5e8;};return _0x19cc();}class BaseDeploy{constructor(_0x4f53c7,_0x529cab){var _0x4af8d3=_0x9653a8;this['credentials']=_0x4f53c7,this[_0x4af8d3(0x190)]=_0x529cab;}}exports[_0x9653a8(0x193)]=BaseDeploy;
|
package/dist/deploy/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function _0x2aab(){var _0x3aa112=['426KiKLjs','AwsS3Deploy','7804450cZfulh','BaseDeploy','4816608mpHcYt','LocalDeploy','9BbsQer','defineProperty','4485944FLPlMM','5686457rNfIzs','16ungxtG','54341PdoXOu','3382220OHMPyR','./aws-s3-deploy','__esModule','6586EtQrja','./local-deploy','./base-deploy'];_0x2aab=function(){return _0x3aa112;};return _0x2aab();}var _0x405cf4=_0xc53d;(function(_0x48257c,_0x46e534){var _0xaa3939=_0xc53d,_0x2a8a6f=_0x48257c();while(!![]){try{var _0x289510=-parseInt(_0xaa3939(0x1a4))/0x1+parseInt(_0xaa3939(0x1a8))/0x2*(-parseInt(_0xaa3939(0x199))/0x3)+-parseInt(_0xaa3939(0x1a1))/0x4+-parseInt(_0xaa3939(0x1a5))/0x5+parseInt(_0xaa3939(0x19d))/0x6+-parseInt(_0xaa3939(0x1a2))/0x7*(-parseInt(_0xaa3939(0x1a3))/0x8)+parseInt(_0xaa3939(0x19f))/0x9*(parseInt(_0xaa3939(0x19b))/0xa);if(_0x289510===_0x46e534)break;else _0x2a8a6f['push'](_0x2a8a6f['shift']());}catch(_0x4702cb){_0x2a8a6f['push'](_0x2a8a6f['shift']());}}}(_0x2aab,0xd8ce6));Object[_0x405cf4(0x1a0)](exports,_0x405cf4(0x1a7),{'value':!![]}),exports['LocalDeploy']=exports[_0x405cf4(0x19a)]=exports[_0x405cf4(0x19c)]=void 0x0;function _0xc53d(_0x304de2,_0x3dee58){var _0x2aabf0=_0x2aab();return _0xc53d=function(_0xc53d25,_0x1771f1){_0xc53d25=_0xc53d25-0x197;var _0x19ded6=_0x2aabf0[_0xc53d25];return _0x19ded6;},_0xc53d(_0x304de2,_0x3dee58);}var base_deploy_1=require(_0x405cf4(0x198));Object[_0x405cf4(0x1a0)](exports,_0x405cf4(0x19c),{'enumerable':!![],'get':function(){return base_deploy_1['BaseDeploy'];}});var aws_s3_deploy_1=require(_0x405cf4(0x1a6));Object[_0x405cf4(0x1a0)](exports,_0x405cf4(0x19a),{'enumerable':!![],'get':function(){return aws_s3_deploy_1['AwsS3Deploy'];}});var local_deploy_1=require(_0x405cf4(0x197));Object[_0x405cf4(0x1a0)](exports,_0x405cf4(0x19e),{'enumerable':!![],'get':function(){var _0x3fd6e8=_0x405cf4;return local_deploy_1[_0x3fd6e8(0x19e)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x3280(_0x5e9f6d,_0x14cbfc){const _0xbba706=_0xbba7();return _0x3280=function(_0x32805c,_0x446e0b){_0x32805c=_0x32805c-0x1d8;let _0x2f8a9d=_0xbba706[_0x32805c];return _0x2f8a9d;},_0x3280(_0x5e9f6d,_0x14cbfc);}const _0x36429f=_0x3280;(function(_0x238042,_0x3e9acc){const _0x16c065=_0x3280,_0x434abd=_0x238042();while(!![]){try{const _0x18e949=parseInt(_0x16c065(0x1e3))/0x1*(parseInt(_0x16c065(0x1f0))/0x2)+parseInt(_0x16c065(0x1ee))/0x3*(parseInt(_0x16c065(0x1dc))/0x4)+parseInt(_0x16c065(0x1ec))/0x5*(-parseInt(_0x16c065(0x1e5))/0x6)+parseInt(_0x16c065(0x1e0))/0x7+-parseInt(_0x16c065(0x1da))/0x8+-parseInt(_0x16c065(0x1de))/0x9+-parseInt(_0x16c065(0x1ef))/0xa*(parseInt(_0x16c065(0x1ed))/0xb);if(_0x18e949===_0x3e9acc)break;else _0x434abd['push'](_0x434abd['shift']());}catch(_0x2747e6){_0x434abd['push'](_0x434abd['shift']());}}}(_0xbba7,0xae994));var __awaiter=this&&this[_0x36429f(0x1f2)]||function(_0x2d11a7,_0x496541,_0x5318d0,_0x2d6949){function _0x5dfbbc(_0x9794dd){return _0x9794dd instanceof _0x5318d0?_0x9794dd:new _0x5318d0(function(_0xa3af2e){_0xa3af2e(_0x9794dd);});}return new(_0x5318d0||(_0x5318d0=Promise))(function(_0x1fd02d,_0x5430da){const _0x2c00c5=_0x3280;function _0x539dad(_0x52c59e){const _0x3efd77=_0x3280;try{_0x56010f(_0x2d6949[_0x3efd77(0x1d9)](_0x52c59e));}catch(_0x519847){_0x5430da(_0x519847);}}function _0x30b12d(_0x60a6d5){const _0x479386=_0x3280;try{_0x56010f(_0x2d6949[_0x479386(0x1f3)](_0x60a6d5));}catch(_0x288c69){_0x5430da(_0x288c69);}}function _0x56010f(_0x5764a2){const _0x27a68d=_0x3280;_0x5764a2[_0x27a68d(0x1e2)]?_0x1fd02d(_0x5764a2['value']):_0x5dfbbc(_0x5764a2[_0x27a68d(0x1f1)])[_0x27a68d(0x1db)](_0x539dad,_0x30b12d);}_0x56010f((_0x2d6949=_0x2d6949['apply'](_0x2d11a7,_0x496541||[]))[_0x2c00c5(0x1d9)]());});},__importDefault=this&&this['__importDefault']||function(_0x58cd4b){return _0x58cd4b&&_0x58cd4b['__esModule']?_0x58cd4b:{'default':_0x58cd4b};};Object['defineProperty'](exports,_0x36429f(0x1e6),{'value':!![]}),exports[_0x36429f(0x1e9)]=void 0x0;function _0xbba7(){const _0x13139b=['execute','9585485BLMwiz','dirname','done','15BTnFzO','@flosum-service/utils','4362EcndQd','__esModule','BaseDeploy','isExistsPath','LocalDeploy','mkdir','default','4325AzyCOv','187aUEydc','159dWlRTL','18590kueAzz','41452kYgIDY','value','__awaiter','throw','fs/promises','next','6938264yUHpGS','then','82652xayOOq','path','4792383NPvEJT'];_0xbba7=function(){return _0x13139b;};return _0xbba7();}const path_1=__importDefault(require(_0x36429f(0x1dd))),promises_1=require(_0x36429f(0x1d8)),utils_1=require(_0x36429f(0x1e4)),_1=require('./');class LocalDeploy extends _1[_0x36429f(0x1e7)]{[_0x36429f(0x1df)](_0x26be0c,_0x2e41b4){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x5ee7d7=_0x3280;try{const _0x2cf8d8=path_1[_0x5ee7d7(0x1eb)][_0x5ee7d7(0x1e1)](_0x2e41b4),_0x1a0cfe=yield utils_1['FsUtils'][_0x5ee7d7(0x1e8)](_0x2cf8d8);!_0x1a0cfe&&(yield(0x0,promises_1[_0x5ee7d7(0x1ea)])(_0x2cf8d8,{'recursive':!![]})),yield(0x0,promises_1['writeFile'])(_0x2e41b4,_0x26be0c);}catch(_0x51059d){(yield utils_1['FsUtils'][_0x5ee7d7(0x1e8)](_0x2e41b4))&&(yield(0x0,promises_1['rm'])(_0x2e41b4,{'recursive':!![]}));throw _0x51059d;}});}}exports['LocalDeploy']=LocalDeploy;
|
package/dist/factory.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x475f(_0x149715,_0xd446cf){const _0x55b71e=_0x55b7();return _0x475f=function(_0x475fac,_0x465301){_0x475fac=_0x475fac-0x199;let _0x42f27f=_0x55b71e[_0x475fac];return _0x42f27f;},_0x475f(_0x149715,_0xd446cf);}function _0x55b7(){const _0x5d6737=['AwsS3Credentials','LocalCredentials','createDeploy','./delete/local-delete','./retrieve/local-retrieve','./types/storage-type.enum','Local','1971304OcHtgD','./deploy/aws-s3-deploy','10XYajyI','AwsS3Delete','__esModule','AwsS3Deploy','7372757WzSvKH','9107190KquwbU','20ysRzoT','900765qbnJxq','6giNDta','defineProperty','930288ZopjEY','LocalDelete','createCredentials','createRetrieve','./retrieve/aws-s3-retrieve','AwsS3Retrieve','./delete/aws-s3-delete','LocalDeploy','3225928pkdpBv','AWS_S3','Unknown\x20storage\x20type\x20-\x20\x22','StorageType','LocalRetrieve','createDelete','StorageFactory','10140128NmJbPf'];_0x55b7=function(){return _0x5d6737;};return _0x55b7();}const _0x58a739=_0x475f;(function(_0x2cd6f8,_0x3bbeda){const _0x27d888=_0x475f,_0x4490c5=_0x2cd6f8();while(!![]){try{const _0x5f102e=parseInt(_0x27d888(0x1a8))/0x1+-parseInt(_0x27d888(0x19f))/0x2+-parseInt(_0x27d888(0x1ab))/0x3+parseInt(_0x27d888(0x1b3))/0x4*(parseInt(_0x27d888(0x1a1))/0x5)+-parseInt(_0x27d888(0x1a9))/0x6*(parseInt(_0x27d888(0x1a5))/0x7)+-parseInt(_0x27d888(0x1ba))/0x8+parseInt(_0x27d888(0x1a6))/0x9*(parseInt(_0x27d888(0x1a7))/0xa);if(_0x5f102e===_0x3bbeda)break;else _0x4490c5['push'](_0x4490c5['shift']());}catch(_0x46c914){_0x4490c5['push'](_0x4490c5['shift']());}}}(_0x55b7,0xe0dca));Object[_0x58a739(0x1aa)](exports,_0x58a739(0x1a3),{'value':!![]}),exports[_0x58a739(0x1b9)]=void 0x0;const storage_type_enum_1=require(_0x58a739(0x19d)),aws_s3_credentials_1=require('./credentials/aws-s3-credentials'),local_credentials_1=require('./credentials/local-credentials'),aws_s3_delete_1=require(_0x58a739(0x1b1)),local_delete_1=require(_0x58a739(0x19b)),aws_s3_deploy_1=require(_0x58a739(0x1a0)),local_deploy_1=require('./deploy/local-deploy'),aws_s3_retrieve_1=require(_0x58a739(0x1af)),local_retrieve_1=require(_0x58a739(0x19c));class StorageFactory{static[_0x58a739(0x1ae)](_0x28b462,_0xa8f25,_0x2bd3bc,_0x1bd2cb){const _0x4ebe30=_0x58a739;switch(_0x28b462){case storage_type_enum_1[_0x4ebe30(0x1b6)][_0x4ebe30(0x1b4)]:return new aws_s3_retrieve_1[(_0x4ebe30(0x1b0))](_0xa8f25,_0x2bd3bc,_0x1bd2cb);case storage_type_enum_1['StorageType'][_0x4ebe30(0x19e)]:return new local_retrieve_1[(_0x4ebe30(0x1b7))](_0xa8f25,_0x2bd3bc);default:throw new Error(_0x4ebe30(0x1b5)+_0x28b462+'\x22');}}static[_0x58a739(0x19a)](_0x4482e3,_0x1d0c52,_0x146a90,_0x316294){const _0x1906a5=_0x58a739;switch(_0x4482e3){case storage_type_enum_1[_0x1906a5(0x1b6)][_0x1906a5(0x1b4)]:return new aws_s3_deploy_1[(_0x1906a5(0x1a4))](_0x1d0c52,_0x146a90,_0x316294);case storage_type_enum_1[_0x1906a5(0x1b6)][_0x1906a5(0x19e)]:return new local_deploy_1[(_0x1906a5(0x1b2))](_0x1d0c52,_0x146a90);default:throw new Error('Unknown\x20storage\x20type\x20-\x20\x22'+_0x4482e3+'\x22');}}static[_0x58a739(0x1b8)](_0x395046,_0x216dbd){const _0x5bdbfc=_0x58a739;switch(_0x395046){case storage_type_enum_1[_0x5bdbfc(0x1b6)][_0x5bdbfc(0x1b4)]:return new aws_s3_delete_1[(_0x5bdbfc(0x1a2))](_0x216dbd);case storage_type_enum_1[_0x5bdbfc(0x1b6)][_0x5bdbfc(0x19e)]:return new local_delete_1[(_0x5bdbfc(0x1ac))](_0x216dbd);default:throw new Error(_0x5bdbfc(0x1b5)+_0x395046+'\x22');}}static[_0x58a739(0x1ad)](_0x23ef58,_0x91ab4e){const _0x44208a=_0x58a739;switch(_0x23ef58){case storage_type_enum_1[_0x44208a(0x1b6)][_0x44208a(0x1b4)]:return new aws_s3_credentials_1[(_0x44208a(0x1bb))](_0x91ab4e);case storage_type_enum_1['StorageType']['Local']:return new local_credentials_1[(_0x44208a(0x199))]();default:throw new Error(_0x44208a(0x1b5)+_0x23ef58+'\x22');}}}exports[_0x58a739(0x1b9)]=StorageFactory;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x1615c9=_0xf360;(function(_0x3ed4eb,_0x3f961f){var _0x501a2c=_0xf360,_0x4b41dd=_0x3ed4eb();while(!![]){try{var _0x226dfb=-parseInt(_0x501a2c(0xc8))/0x1*(parseInt(_0x501a2c(0xd1))/0x2)+parseInt(_0x501a2c(0xca))/0x3*(parseInt(_0x501a2c(0xcb))/0x4)+-parseInt(_0x501a2c(0xd8))/0x5+parseInt(_0x501a2c(0xcc))/0x6+parseInt(_0x501a2c(0xd5))/0x7+parseInt(_0x501a2c(0xc3))/0x8+-parseInt(_0x501a2c(0xc0))/0x9;if(_0x226dfb===_0x3f961f)break;else _0x4b41dd['push'](_0x4b41dd['shift']());}catch(_0x23e061){_0x4b41dd['push'](_0x4b41dd['shift']());}}}(_0x2b92,0xcbb4b));var __createBinding=this&&this['__createBinding']||(Object[_0x1615c9(0xd6)]?function(_0x11dea8,_0x4e04ef,_0x3d531f,_0x10ea86){var _0x2381a3=_0x1615c9;if(_0x10ea86===undefined)_0x10ea86=_0x3d531f;var _0x26e191=Object[_0x2381a3(0xc1)](_0x4e04ef,_0x3d531f);(!_0x26e191||(_0x2381a3(0xd4)in _0x26e191?!_0x4e04ef['__esModule']:_0x26e191['writable']||_0x26e191[_0x2381a3(0xd2)]))&&(_0x26e191={'enumerable':!![],'get':function(){return _0x4e04ef[_0x3d531f];}}),Object['defineProperty'](_0x11dea8,_0x10ea86,_0x26e191);}:function(_0x5690b2,_0xcf6683,_0x176e91,_0x3063cc){if(_0x3063cc===undefined)_0x3063cc=_0x176e91;_0x5690b2[_0x3063cc]=_0xcf6683[_0x176e91];}),__exportStar=this&&this[_0x1615c9(0xd7)]||function(_0x17e6c3,_0x414dc9){var _0x48a1d6=_0x1615c9;for(var _0x180182 in _0x17e6c3)if(_0x180182!==_0x48a1d6(0xce)&&!Object[_0x48a1d6(0xcd)][_0x48a1d6(0xc7)][_0x48a1d6(0xc9)](_0x414dc9,_0x180182))__createBinding(_0x414dc9,_0x17e6c3,_0x180182);};Object['defineProperty'](exports,_0x1615c9(0xbd),{'value':!![]}),exports['StorageFactory']=void 0x0,require(_0x1615c9(0xc2)),__exportStar(require(_0x1615c9(0xc5)),exports),__exportStar(require(_0x1615c9(0xd3)),exports),__exportStar(require(_0x1615c9(0xc6)),exports),__exportStar(require(_0x1615c9(0xc4)),exports);var factory_1=require(_0x1615c9(0xcf));function _0xf360(_0x401fcb,_0x34c9a2){var _0x2b92f8=_0x2b92();return _0xf360=function(_0xf360b8,_0x5c528a){_0xf360b8=_0xf360b8-0xbd;var _0x8c8db0=_0x2b92f8[_0xf360b8];return _0x8c8db0;},_0xf360(_0x401fcb,_0x34c9a2);}function _0x2b92(){var _0x1dd71e=['defineProperty','9546471wdPYau','getOwnPropertyDescriptor','./init','5997864hFgtGg','./retrieve','./credentials','./deploy','hasOwnProperty','1573153tqVdum','call','6shdocW','2867140DHUAxz','8425230xtVDts','prototype','default','./factory','./types','2dvNBds','configurable','./delete','get','2197405IkxUrS','create','__exportStar','2165860KFTKtq','__esModule','StorageFactory'];_0x2b92=function(){return _0x1dd71e;};return _0x2b92();}Object[_0x1615c9(0xbf)](exports,_0x1615c9(0xbe),{'enumerable':!![],'get':function(){var _0x3fa226=_0x1615c9;return factory_1[_0x3fa226(0xbe)];}}),__exportStar(require(_0x1615c9(0xd0)),exports);
|
package/dist/init.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x386a20=_0x5ce6;(function(_0x2f91fc,_0x434b8f){const _0x3c24e5=_0x5ce6,_0x500fe6=_0x2f91fc();while(!![]){try{const _0x19b0e9=-parseInt(_0x3c24e5(0x115))/0x1*(-parseInt(_0x3c24e5(0x105))/0x2)+-parseInt(_0x3c24e5(0x113))/0x3*(-parseInt(_0x3c24e5(0x100))/0x4)+-parseInt(_0x3c24e5(0x114))/0x5*(-parseInt(_0x3c24e5(0x10c))/0x6)+parseInt(_0x3c24e5(0xfe))/0x7+-parseInt(_0x3c24e5(0x102))/0x8*(-parseInt(_0x3c24e5(0xff))/0x9)+-parseInt(_0x3c24e5(0xfd))/0xa+-parseInt(_0x3c24e5(0x109))/0xb*(parseInt(_0x3c24e5(0x10a))/0xc);if(_0x19b0e9===_0x434b8f)break;else _0x500fe6['push'](_0x500fe6['shift']());}catch(_0x2373d1){_0x500fe6['push'](_0x500fe6['shift']());}}}(_0x3dcc,0xbdb25));function _0x3dcc(){const _0x4a73d5=['https','143RdUHyQ','1531428pNwNEr','HTTP_PROXY','126WYWhoQ','config','Agent','assign','update','env','HttpsProxyAgent','24018OgYKda','16110vgKiIO','72346jHKufW','11061360rlSFXQ','2263905OHVlZP','9hfpHEZ','444IrgKEy','default','9996744ArXIpT','aws-sdk','__esModule','28ettPnt','HTTPS_PROXY','defineProperty'];_0x3dcc=function(){return _0x4a73d5;};return _0x3dcc();}var __importDefault=this&&this['__importDefault']||function(_0x5974e1){const _0xfc95b1=_0x5ce6;return _0x5974e1&&_0x5974e1[_0xfc95b1(0x104)]?_0x5974e1:{'default':_0x5974e1};};function _0x5ce6(_0x2de401,_0x2dcdd1){const _0x3dcc4c=_0x3dcc();return _0x5ce6=function(_0x5ce682,_0x328590){_0x5ce682=_0x5ce682-0xfd;let _0x1456d5=_0x3dcc4c[_0x5ce682];return _0x1456d5;},_0x5ce6(_0x2de401,_0x2dcdd1);}Object[_0x386a20(0x107)](exports,_0x386a20(0x104),{'value':!![]});const aws_sdk_1=__importDefault(require(_0x386a20(0x103))),https_proxy_agent_1=require('https-proxy-agent'),https_1=__importDefault(require(_0x386a20(0x108)));(process[_0x386a20(0x111)][_0x386a20(0x10b)]||process[_0x386a20(0x111)][_0x386a20(0x106)])&&aws_sdk_1[_0x386a20(0x101)][_0x386a20(0x10d)][_0x386a20(0x110)]({'httpOptions':{'agent':Object[_0x386a20(0x10f)](new https_proxy_agent_1[(_0x386a20(0x112))](process[_0x386a20(0x111)]['HTTP_PROXY']||process['env'][_0x386a20(0x106)]),new https_1[(_0x386a20(0x101))][(_0x386a20(0x10e))]({'keepAlive':!![]}))}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x56fcc7=_0x33f5;(function(_0x2ac567,_0x138737){const _0x526855=_0x33f5,_0xa9fe4f=_0x2ac567();while(!![]){try{const _0x16aec7=-parseInt(_0x526855(0x191))/0x1*(-parseInt(_0x526855(0x1bb))/0x2)+-parseInt(_0x526855(0x1b9))/0x3*(-parseInt(_0x526855(0x187))/0x4)+parseInt(_0x526855(0x1ae))/0x5+parseInt(_0x526855(0x1ce))/0x6+parseInt(_0x526855(0x192))/0x7*(-parseInt(_0x526855(0x1a6))/0x8)+-parseInt(_0x526855(0x198))/0x9*(-parseInt(_0x526855(0x1c3))/0xa)+-parseInt(_0x526855(0x1c9))/0xb*(parseInt(_0x526855(0x1a3))/0xc);if(_0x16aec7===_0x138737)break;else _0xa9fe4f['push'](_0xa9fe4f['shift']());}catch(_0x5ba57e){_0xa9fe4f['push'](_0xa9fe4f['shift']());}}}(_0x347c,0xe50e0));function _0x347c(){const _0x20a56b=['bucketName','5796780Azuoon','StorageClass','length','124SzqQmF','path','CHECK_RESTORED_TIMEOUT','STANDARD','AwsFileRetrieveStatus','defineProperty','headObject','shift','restoreFile','runRestoreFiles','18qTwbTw','14RtnMNV','fetchFileBody','status','accessKeyId','fetchFileInfo','__awaiter','9lpYgYP','restoreObject','init','BaseRetrieve','credentials','split','value','then','files','__esModule','AwsS3Utils','315516pLOaSJ','message','Cannot\x20execute\x20when\x20retrieve\x20in\x20progress.','6356288hiriSk','InProgress','execute','catch','filter','default','setTimeout','getObject','3908510AyKSTR','NeedRestore','extractFileRetrieveStatusFromFileInfo','errorMessage','checkFilesRetrieveStatus','createReadStream','done','posix','isDone','waitUtilRetrieveDone','aws-sdk','174789kxIBMJ','sep','64658rndSde','Uninitialized','tryRestoreFilesFromCloud','Completed','updateFilesRetrieveStatus','next','__importDefault','Restoring','1530040CsZbGt','RetrieveStatus','AwsS3Retrieve','promise','some','restoreType','737yJoXpU','join','apply','RETRIEVE_STATUS_CHECK_TIMEOUT'];_0x347c=function(){return _0x20a56b;};return _0x347c();}function _0x33f5(_0x1ff877,_0x2cf769){const _0x347c2c=_0x347c();return _0x33f5=function(_0x33f5c2,_0x5862a1){_0x33f5c2=_0x33f5c2-0x185;let _0x4d30b7=_0x347c2c[_0x33f5c2];return _0x4d30b7;},_0x33f5(_0x1ff877,_0x2cf769);}var __awaiter=this&&this[_0x56fcc7(0x197)]||function(_0x17ffc7,_0x4b880e,_0x339998,_0x1a069e){function _0x431e3c(_0x1659dd){return _0x1659dd instanceof _0x339998?_0x1659dd:new _0x339998(function(_0xc56692){_0xc56692(_0x1659dd);});}return new(_0x339998||(_0x339998=Promise))(function(_0x583760,_0x5e9647){const _0x5c571a=_0x33f5;function _0x3f2906(_0x599dd5){const _0x5710a1=_0x33f5;try{_0x575fd3(_0x1a069e[_0x5710a1(0x1c0)](_0x599dd5));}catch(_0x2afbae){_0x5e9647(_0x2afbae);}}function _0x1958b3(_0x314a71){try{_0x575fd3(_0x1a069e['throw'](_0x314a71));}catch(_0x1b424f){_0x5e9647(_0x1b424f);}}function _0x575fd3(_0x19fcf8){const _0x2f44f4=_0x33f5;_0x19fcf8[_0x2f44f4(0x1b4)]?_0x583760(_0x19fcf8[_0x2f44f4(0x19e)]):_0x431e3c(_0x19fcf8[_0x2f44f4(0x19e)])[_0x2f44f4(0x19f)](_0x3f2906,_0x1958b3);}_0x575fd3((_0x1a069e=_0x1a069e[_0x5c571a(0x1cb)](_0x17ffc7,_0x4b880e||[]))[_0x5c571a(0x1c0)]());});},__importDefault=this&&this[_0x56fcc7(0x1c1)]||function(_0x10becc){const _0x1f0e7c=_0x56fcc7;return _0x10becc&&_0x10becc[_0x1f0e7c(0x1a1)]?_0x10becc:{'default':_0x10becc};};Object[_0x56fcc7(0x18c)](exports,_0x56fcc7(0x1a1),{'value':!![]}),exports[_0x56fcc7(0x1c5)]=void 0x0;const aws_sdk_1=__importDefault(require(_0x56fcc7(0x1b8))),path_1=__importDefault(require('path')),promises_1=require('timers/promises'),aws_s3_utils_1=require('../utils/aws-s3.utils'),_1=require('./'),aws_types_1=require('../types/aws.types'),retrieve_status_enum_1=require('../types/retrieve-status.enum');class AwsS3Retrieve extends _1[_0x56fcc7(0x19b)]{constructor(_0x55b3e9,_0x1f17a0,_0x46fa30){const _0x11b0f0=_0x56fcc7,_0x47aa7d=_0x1f17a0[_0x11b0f0(0x19d)](path_1[_0x11b0f0(0x1ab)][_0x11b0f0(0x1ba)])['join'](path_1[_0x11b0f0(0x1ab)][_0x11b0f0(0x1b5)][_0x11b0f0(0x1ba)]);super(_0x55b3e9,_0x47aa7d),this[_0x11b0f0(0x19c)]=_0x55b3e9,this[_0x11b0f0(0x1c8)]=_0x46fa30,this[_0x11b0f0(0x189)]=0x7530,this[_0x11b0f0(0x1cc)]=0x3e8,this['s3']=new aws_sdk_1[(_0x11b0f0(0x1ab))]['S3']({'accessKeyId':this[_0x11b0f0(0x19c)][_0x11b0f0(0x195)],'secretAccessKey':this['credentials']['secretAccessKey']}),this[_0x11b0f0(0x1a0)]=[];}[_0x56fcc7(0x1b7)](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x3ad9d1=_0x33f5;this[_0x3ad9d1(0x194)]===retrieve_status_enum_1[_0x3ad9d1(0x1c4)][_0x3ad9d1(0x1bc)]&&(yield this[_0x3ad9d1(0x19a)](),yield this[_0x3ad9d1(0x1b7)]());switch(this[_0x3ad9d1(0x194)]){case retrieve_status_enum_1[_0x3ad9d1(0x1c4)][_0x3ad9d1(0x1a7)]:yield(0x0,promises_1[_0x3ad9d1(0x1ac)])(this[_0x3ad9d1(0x1cc)]),yield this[_0x3ad9d1(0x1b7)]();break;case retrieve_status_enum_1['RetrieveStatus']['Exception']:throw new Error(this[_0x3ad9d1(0x1b1)]);}});}[_0x56fcc7(0x1a8)](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x2ea533=_0x33f5;if(this[_0x2ea533(0x194)]===retrieve_status_enum_1[_0x2ea533(0x1c4)][_0x2ea533(0x1a7)])throw new Error(_0x2ea533(0x1a5));if(this[_0x2ea533(0x1b6)]||!this[_0x2ea533(0x1a0)]['length'])throw new Error('No\x20files\x20left\x20to\x20execute.');const _0x1f9030=this[_0x2ea533(0x1a0)][_0x2ea533(0x18e)](),_0x2732a6=yield this[_0x2ea533(0x193)](_0x1f9030[_0x2ea533(0x188)]);return this[_0x2ea533(0x1b6)]=!this[_0x2ea533(0x1a0)][_0x2ea533(0x186)],{'path':this[_0x2ea533(0x188)]['split'](path_1[_0x2ea533(0x1ab)]['posix'][_0x2ea533(0x1ba)])[_0x2ea533(0x1ca)](path_1[_0x2ea533(0x1ab)][_0x2ea533(0x1ba)]),'content':_0x2732a6};});}[_0x56fcc7(0x196)](_0x2c452e){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x2ae2f9=_0x33f5,_0x6093c3={'Bucket':this[_0x2ae2f9(0x19c)][_0x2ae2f9(0x1cd)],'Key':_0x2c452e},{StorageClass:_0x322e21,Restore:_0x179be0}=yield this['s3'][_0x2ae2f9(0x18d)](_0x6093c3)[_0x2ae2f9(0x1c6)]();return{'StorageClass':_0x322e21,'Restore':_0x179be0};});}[_0x56fcc7(0x18f)](_0x155f40){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x3bf2b0=_0x33f5,_0x297f6f={'Bucket':this[_0x3bf2b0(0x19c)][_0x3bf2b0(0x1cd)],'Key':_0x155f40,'RestoreRequest':{'Days':0x1,'GlacierJobParameters':{'Tier':this[_0x3bf2b0(0x1c8)]}}};yield this['s3'][_0x3bf2b0(0x199)](_0x297f6f)[_0x3bf2b0(0x1c6)]();});}[_0x56fcc7(0x193)](_0x59ffdf){const _0x3d1ca5=_0x56fcc7,_0x1a915e={'Bucket':this[_0x3d1ca5(0x19c)]['bucketName'],'Key':_0x59ffdf};return this['s3'][_0x3d1ca5(0x1ad)](_0x1a915e)[_0x3d1ca5(0x1b3)]();}[_0x56fcc7(0x19a)](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x318cc0=_0x33f5;yield this[_0x318cc0(0x1bd)](),yield this[_0x318cc0(0x190)](),this['status']=retrieve_status_enum_1['RetrieveStatus']['InProgress'],this[_0x318cc0(0x1b2)]()[_0x318cc0(0x1a9)](_0xb37e8d=>{const _0x3bca00=_0x318cc0;this[_0x3bca00(0x194)]=retrieve_status_enum_1[_0x3bca00(0x1c4)]['Exception'],this[_0x3bca00(0x1b1)]=_0xb37e8d[_0x3bca00(0x1a4)];});});}[_0x56fcc7(0x1bd)](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x1fc955=_0x33f5,_0x916eb4=yield aws_s3_utils_1[_0x1fc955(0x1a2)]['getFilesPaths'](this[_0x1fc955(0x188)],this[_0x1fc955(0x19c)]['bucketName'],this['s3']);for(const _0x57e279 of _0x916eb4){const _0xd72f70=yield this['fetchFileInfo'](_0x57e279);this[_0x1fc955(0x1a0)]['push']({'path':_0x57e279,'class':_0xd72f70[_0x1fc955(0x185)]||_0x1fc955(0x18a),'status':aws_s3_utils_1['AwsS3Utils'][_0x1fc955(0x1b0)](_0xd72f70)});}});}[_0x56fcc7(0x190)](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x2599fc=_0x33f5,_0x12f2af=this[_0x2599fc(0x1a0)][_0x2599fc(0x1aa)](_0x2d82bd=>_0x2d82bd[_0x2599fc(0x194)]===aws_types_1[_0x2599fc(0x18b)][_0x2599fc(0x1af)]);for(const _0x58660d of _0x12f2af){yield this[_0x2599fc(0x18f)](_0x58660d[_0x2599fc(0x188)]),_0x58660d[_0x2599fc(0x194)]=aws_types_1['AwsFileRetrieveStatus'][_0x2599fc(0x1c2)];}});}['updateFilesRetrieveStatus'](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x18bada=_0x33f5,_0x24487d=this[_0x18bada(0x1a0)]['filter'](_0x296805=>_0x296805['status']===aws_types_1['AwsFileRetrieveStatus'][_0x18bada(0x1c2)]);for(const _0x2287d3 of _0x24487d){const _0x1ce6d4=yield this[_0x18bada(0x196)](_0x2287d3[_0x18bada(0x188)]);_0x2287d3['status']=aws_s3_utils_1[_0x18bada(0x1a2)][_0x18bada(0x1b0)](_0x1ce6d4);}});}[_0x56fcc7(0x1b2)](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x52e21e=_0x33f5,_0x45a3f1=this[_0x52e21e(0x1a0)][_0x52e21e(0x1c7)](_0x463b28=>_0x463b28[_0x52e21e(0x194)]===aws_types_1[_0x52e21e(0x18b)][_0x52e21e(0x1c2)]);this[_0x52e21e(0x194)]=_0x45a3f1?retrieve_status_enum_1[_0x52e21e(0x1c4)][_0x52e21e(0x1a7)]:retrieve_status_enum_1[_0x52e21e(0x1c4)][_0x52e21e(0x1be)],_0x45a3f1&&(yield(0x0,promises_1[_0x52e21e(0x1ac)])(this['CHECK_RESTORED_TIMEOUT']),yield this[_0x52e21e(0x1bf)](),yield this[_0x52e21e(0x1b2)]());});}}exports['AwsS3Retrieve']=AwsS3Retrieve;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x5e3b(){const _0x584ebe=['10tUKFgW','1191944bzuMyo','11995WQntDM','10622403oVMKms','../types/retrieve-status.enum','__esModule','defineProperty','624bzIqXV','4kXwFUy','7491306ZSBXtz','142655TcGnsZ','credentials','RetrieveStatus','BaseRetrieve','253836aZcitC','2080329EtkwKw','getIsDone','1419BujcNs','status','7ZoNFKI','isDone'];_0x5e3b=function(){return _0x584ebe;};return _0x5e3b();}function _0x5e29(_0x307925,_0x3cc8f5){const _0x5e3b77=_0x5e3b();return _0x5e29=function(_0x5e2973,_0x2802d7){_0x5e2973=_0x5e2973-0x6f;let _0x2f6d13=_0x5e3b77[_0x5e2973];return _0x2f6d13;},_0x5e29(_0x307925,_0x3cc8f5);}const _0x553a47=_0x5e29;(function(_0x1db1a2,_0x35af93){const _0x3b50bc=_0x5e29,_0x116d0b=_0x1db1a2();while(!![]){try{const _0x40fed0=parseInt(_0x3b50bc(0x80))/0x1+-parseInt(_0x3b50bc(0x7e))/0x2*(parseInt(_0x3b50bc(0x70))/0x3)+-parseInt(_0x3b50bc(0x7d))/0x4*(parseInt(_0x3b50bc(0x78))/0x5)+parseInt(_0x3b50bc(0x7f))/0x6*(-parseInt(_0x3b50bc(0x74))/0x7)+-parseInt(_0x3b50bc(0x77))/0x8+parseInt(_0x3b50bc(0x79))/0x9*(parseInt(_0x3b50bc(0x76))/0xa)+-parseInt(_0x3b50bc(0x72))/0xb*(-parseInt(_0x3b50bc(0x6f))/0xc);if(_0x40fed0===_0x35af93)break;else _0x116d0b['push'](_0x116d0b['shift']());}catch(_0x279448){_0x116d0b['push'](_0x116d0b['shift']());}}}(_0x5e3b,0xda039));Object[_0x553a47(0x7c)](exports,_0x553a47(0x7b),{'value':!![]}),exports[_0x553a47(0x83)]=void 0x0;const retrieve_status_enum_1=require(_0x553a47(0x7a));class BaseRetrieve{constructor(_0x92acd4,_0x4a9e3c){const _0x25a25a=_0x553a47;this[_0x25a25a(0x81)]=_0x92acd4,this['path']=_0x4a9e3c,this[_0x25a25a(0x75)]=![],this[_0x25a25a(0x73)]=retrieve_status_enum_1[_0x25a25a(0x82)]['Uninitialized'];}[_0x553a47(0x71)](){const _0x1ce1c6=_0x553a47;return this[_0x1ce1c6(0x75)];}}exports[_0x553a47(0x83)]=BaseRetrieve;
|
package/dist/retrieve/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x5776c6=_0x45dd;(function(_0x245ba7,_0x3a6b06){var _0x1c7379=_0x45dd,_0x398ca1=_0x245ba7();while(!![]){try{var _0x5d8f1f=-parseInt(_0x1c7379(0x176))/0x1*(-parseInt(_0x1c7379(0x183))/0x2)+parseInt(_0x1c7379(0x180))/0x3+parseInt(_0x1c7379(0x174))/0x4+-parseInt(_0x1c7379(0x17f))/0x5*(parseInt(_0x1c7379(0x17a))/0x6)+-parseInt(_0x1c7379(0x173))/0x7+-parseInt(_0x1c7379(0x17b))/0x8*(-parseInt(_0x1c7379(0x175))/0x9)+parseInt(_0x1c7379(0x184))/0xa*(parseInt(_0x1c7379(0x177))/0xb);if(_0x5d8f1f===_0x3a6b06)break;else _0x398ca1['push'](_0x398ca1['shift']());}catch(_0x549c4a){_0x398ca1['push'](_0x398ca1['shift']());}}}(_0x478c,0x75c2a));function _0x478c(){var _0x21a1d6=['6gEesFc','52232aVPWqo','./aws-s3-retrieve','__esModule','LocalRetrieve','2850145RtdSUV','434487ouHuBC','AwsS3Retrieve','./local-retrieve','2RbFhjB','6130PQKYAB','6541185UWyelt','489868TCIkFS','711Dlguwa','616489eMSbex','10538HkLynD','defineProperty','BaseRetrieve'];_0x478c=function(){return _0x21a1d6;};return _0x478c();}Object[_0x5776c6(0x178)](exports,_0x5776c6(0x17d),{'value':!![]}),exports[_0x5776c6(0x17e)]=exports[_0x5776c6(0x181)]=exports[_0x5776c6(0x179)]=void 0x0;var base_retrieve_1=require('./base-retrieve');Object[_0x5776c6(0x178)](exports,_0x5776c6(0x179),{'enumerable':!![],'get':function(){return base_retrieve_1['BaseRetrieve'];}});function _0x45dd(_0x252b1e,_0x45ed49){var _0x478cf6=_0x478c();return _0x45dd=function(_0x45ddd9,_0x157b2b){_0x45ddd9=_0x45ddd9-0x173;var _0x528a95=_0x478cf6[_0x45ddd9];return _0x528a95;},_0x45dd(_0x252b1e,_0x45ed49);}var aws_s3_retrieve_1=require(_0x5776c6(0x17c));Object['defineProperty'](exports,_0x5776c6(0x181),{'enumerable':!![],'get':function(){var _0x4c5b73=_0x5776c6;return aws_s3_retrieve_1[_0x4c5b73(0x181)];}});var local_retrieve_1=require(_0x5776c6(0x182));Object[_0x5776c6(0x178)](exports,_0x5776c6(0x17e),{'enumerable':!![],'get':function(){return local_retrieve_1['LocalRetrieve'];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x5747e4=_0x47b9;(function(_0xe048f5,_0x73745b){const _0x575e3a=_0x47b9,_0x1b2028=_0xe048f5();while(!![]){try{const _0x5d9f86=parseInt(_0x575e3a(0x178))/0x1+-parseInt(_0x575e3a(0x160))/0x2+-parseInt(_0x575e3a(0x17a))/0x3*(parseInt(_0x575e3a(0x180))/0x4)+-parseInt(_0x575e3a(0x179))/0x5+-parseInt(_0x575e3a(0x17f))/0x6+-parseInt(_0x575e3a(0x164))/0x7*(-parseInt(_0x575e3a(0x174))/0x8)+-parseInt(_0x575e3a(0x16f))/0x9*(-parseInt(_0x575e3a(0x17e))/0xa);if(_0x5d9f86===_0x73745b)break;else _0x1b2028['push'](_0x1b2028['shift']());}catch(_0x21a982){_0x1b2028['push'](_0x1b2028['shift']());}}}(_0x68c4,0x480a0));var __awaiter=this&&this['__awaiter']||function(_0x4623eb,_0x2248fc,_0x37147a,_0x2cc417){function _0x20a62e(_0xc74e96){return _0xc74e96 instanceof _0x37147a?_0xc74e96:new _0x37147a(function(_0x424199){_0x424199(_0xc74e96);});}return new(_0x37147a||(_0x37147a=Promise))(function(_0x593a63,_0x56f6f2){const _0x5f38fb=_0x47b9;function _0x18662d(_0x4115e1){const _0x3f2464=_0x47b9;try{_0x5ed2c3(_0x2cc417[_0x3f2464(0x16a)](_0x4115e1));}catch(_0x4a35e0){_0x56f6f2(_0x4a35e0);}}function _0x407a98(_0x466b20){const _0x4ce08a=_0x47b9;try{_0x5ed2c3(_0x2cc417[_0x4ce08a(0x172)](_0x466b20));}catch(_0x1316e2){_0x56f6f2(_0x1316e2);}}function _0x5ed2c3(_0x48ae36){const _0x57b89d=_0x47b9;_0x48ae36[_0x57b89d(0x16d)]?_0x593a63(_0x48ae36[_0x57b89d(0x16b)]):_0x20a62e(_0x48ae36[_0x57b89d(0x16b)])[_0x57b89d(0x17c)](_0x18662d,_0x407a98);}_0x5ed2c3((_0x2cc417=_0x2cc417[_0x5f38fb(0x167)](_0x4623eb,_0x2248fc||[]))[_0x5f38fb(0x16a)]());});};function _0x47b9(_0x5ad13e,_0x313eba){const _0x68c49e=_0x68c4();return _0x47b9=function(_0x47b94e,_0x18da99){_0x47b94e=_0x47b94e-0x15f;let _0x16d4bd=_0x68c49e[_0x47b94e];return _0x16d4bd;},_0x47b9(_0x5ad13e,_0x313eba);}Object[_0x5747e4(0x170)](exports,'__esModule',{'value':!![]}),exports['LocalRetrieve']=void 0x0;const fs_1=require('fs'),utils_1=require(_0x5747e4(0x16c)),_1=require('./'),retrieve_status_enum_1=require(_0x5747e4(0x162));class LocalRetrieve extends _1[_0x5747e4(0x169)]{constructor(){super(...arguments),this['filesPaths']=[];}[_0x5747e4(0x176)](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x24e6c7=_0x47b9,_0x46fecf=this[_0x24e6c7(0x161)][_0x24e6c7(0x177)](),_0x462785=(0x0,fs_1[_0x24e6c7(0x166)])(_0x46fecf);return this[_0x24e6c7(0x17d)]=!this['filesPaths'][_0x24e6c7(0x15f)],{'path':_0x46fecf,'content':_0x462785};});}['readFilesToRetrieve'](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x1842e9=_0x47b9;this['filesPaths']=yield utils_1[_0x1842e9(0x17b)]['getFolderFiles'](this[_0x1842e9(0x175)]);});}[_0x5747e4(0x165)](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x5e1be9=_0x47b9;this[_0x5e1be9(0x168)]===retrieve_status_enum_1['RetrieveStatus'][_0x5e1be9(0x173)]&&(yield this[_0x5e1be9(0x16e)](),this[_0x5e1be9(0x168)]=retrieve_status_enum_1[_0x5e1be9(0x171)]['Completed']);});}}function _0x68c4(){const _0x252bd6=['readFilesToRetrieve','162GGfmVx','defineProperty','RetrieveStatus','throw','Uninitialized','3368WvUxKG','path','execute','shift','69391ZTCJni','2141380kgMxiH','479847CGtjPb','FsUtils','then','isDone','512640wtNJmE','599268FhUAGL','4GmSOuJ','length','616598QgDXBd','filesPaths','../types/retrieve-status.enum','LocalRetrieve','4977nmTiRZ','waitUtilRetrieveDone','createReadStream','apply','status','BaseRetrieve','next','value','@flosum-service/utils','done'];_0x68c4=function(){return _0x252bd6;};return _0x68c4();}exports[_0x5747e4(0x163)]=LocalRetrieve;
|
package/dist/types/aws.types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function _0x4c7b(){var _0xe67d4a=['97638FhmBrz','23QPwLcv','NeedRestore','1015029bYpqoC','Restoring','3123618bBTTTu','AwsFileRetrieveStatus','11179737NArUwT','7cuzhpu','2582080IWqSJi','4300vnLUkZ','298661koiCbL','__esModule','460CboSpK','Available','5745feJfIH'];_0x4c7b=function(){return _0xe67d4a;};return _0x4c7b();}function _0x16c7(_0x2259b4,_0x3499a6){var _0x4c7b79=_0x4c7b();return _0x16c7=function(_0x16c781,_0x2c7e35){_0x16c781=_0x16c781-0x1de;var _0x2cbd73=_0x4c7b79[_0x16c781];return _0x2cbd73;},_0x16c7(_0x2259b4,_0x3499a6);}var _0x2bd19a=_0x16c7;(function(_0x484d0f,_0x252d97){var _0x3eeee4=_0x16c7,_0x3d4265=_0x484d0f();while(!![]){try{var _0x525241=-parseInt(_0x3eeee4(0x1df))/0x1*(parseInt(_0x3eeee4(0x1de))/0x2)+-parseInt(_0x3eeee4(0x1e1))/0x3+-parseInt(_0x3eeee4(0x1e8))/0x4*(-parseInt(_0x3eeee4(0x1ed))/0x5)+parseInt(_0x3eeee4(0x1e3))/0x6+-parseInt(_0x3eeee4(0x1e6))/0x7*(-parseInt(_0x3eeee4(0x1e7))/0x8)+-parseInt(_0x3eeee4(0x1e5))/0x9+-parseInt(_0x3eeee4(0x1eb))/0xa*(-parseInt(_0x3eeee4(0x1e9))/0xb);if(_0x525241===_0x252d97)break;else _0x3d4265['push'](_0x3d4265['shift']());}catch(_0x48e3e7){_0x3d4265['push'](_0x3d4265['shift']());}}}(_0x4c7b,0x985ef));Object['defineProperty'](exports,_0x2bd19a(0x1ea),{'value':!![]}),exports[_0x2bd19a(0x1e4)]=void 0x0;var AwsFileRetrieveStatus;(function(_0x3d7864){var _0x4f459f=_0x2bd19a;_0x3d7864['Available']=_0x4f459f(0x1ec),_0x3d7864['Restoring']=_0x4f459f(0x1e2),_0x3d7864[_0x4f459f(0x1e0)]='NeedRestore';}(AwsFileRetrieveStatus=exports[_0x2bd19a(0x1e4)]||(exports[_0x2bd19a(0x1e4)]={})));
|
package/dist/types/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x2805(_0x28ae55,_0x3ac6bf){var _0x2673b4=_0x2673();return _0x2805=function(_0x280566,_0x1ec2a7){_0x280566=_0x280566-0xd9;var _0x28e7e4=_0x2673b4[_0x280566];return _0x28e7e4;},_0x2805(_0x28ae55,_0x3ac6bf);}var _0x16e058=_0x2805;(function(_0x578af1,_0x571540){var _0x556491=_0x2805,_0x2cdc72=_0x578af1();while(!![]){try{var _0x4b1547=parseInt(_0x556491(0xe4))/0x1+parseInt(_0x556491(0xdb))/0x2*(-parseInt(_0x556491(0xdd))/0x3)+parseInt(_0x556491(0xde))/0x4*(-parseInt(_0x556491(0xe3))/0x5)+parseInt(_0x556491(0xe6))/0x6*(-parseInt(_0x556491(0xe7))/0x7)+parseInt(_0x556491(0xda))/0x8+parseInt(_0x556491(0xd9))/0x9+-parseInt(_0x556491(0xe5))/0xa*(parseInt(_0x556491(0xdc))/0xb);if(_0x4b1547===_0x571540)break;else _0x2cdc72['push'](_0x2cdc72['shift']());}catch(_0x3861dc){_0x2cdc72['push'](_0x2cdc72['shift']());}}}(_0x2673,0x445cc));Object[_0x16e058(0xe2)](exports,_0x16e058(0xdf),{'value':!![]}),exports[_0x16e058(0xe0)]=void 0x0;function _0x2673(){var _0x3e93bd=['5JgaupX','433065ybiDGG','130VmjwDS','12VeWezF','991053FgdgBv','2729997aEpWJO','1314256hyizuH','133834FueYfo','27841gAczBH','12VlAzij','147756zQtRqG','__esModule','StorageType','./storage-type.enum','defineProperty'];_0x2673=function(){return _0x3e93bd;};return _0x2673();}var storage_type_enum_1=require(_0x16e058(0xe1));Object[_0x16e058(0xe2)](exports,'StorageType',{'enumerable':!![],'get':function(){return storage_type_enum_1['StorageType'];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function _0x16ee(){var _0x3ba367=['3873305zlzhzf','2306ILAxfm','8TGBvqg','4JIfiJN','1511293CXwtuf','defineProperty','744xwkXxg','1085232qlMCVX','440292tQUsPX','7474779lVJoIf','26391860VKcmCD'];_0x16ee=function(){return _0x3ba367;};return _0x16ee();}var _0xd61eb8=_0x20a5;function _0x20a5(_0x42b641,_0x48d6ad){var _0x16eef3=_0x16ee();return _0x20a5=function(_0x20a54c,_0x2ae00b){_0x20a54c=_0x20a54c-0xd4;var _0x726266=_0x16eef3[_0x20a54c];return _0x726266;},_0x20a5(_0x42b641,_0x48d6ad);}(function(_0x5661f8,_0x1a86d0){var _0x2c1535=_0x20a5,_0x82d274=_0x5661f8();while(!![]){try{var _0x585f9e=parseInt(_0x2c1535(0xd9))/0x1*(parseInt(_0x2c1535(0xde))/0x2)+parseInt(_0x2c1535(0xd4))/0x3+-parseInt(_0x2c1535(0xdb))/0x4*(-parseInt(_0x2c1535(0xd8))/0x5)+parseInt(_0x2c1535(0xd5))/0x6+-parseInt(_0x2c1535(0xdc))/0x7*(-parseInt(_0x2c1535(0xda))/0x8)+parseInt(_0x2c1535(0xd6))/0x9+-parseInt(_0x2c1535(0xd7))/0xa;if(_0x585f9e===_0x1a86d0)break;else _0x82d274['push'](_0x82d274['shift']());}catch(_0x5063a3){_0x82d274['push'](_0x82d274['shift']());}}}(_0x16ee,0x73eef));Object[_0xd61eb8(0xdd)](exports,'__esModule',{'value':!![]});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x13fd03=_0x32a4;(function(_0x3cea22,_0x47ff18){var _0x114a83=_0x32a4,_0x1603b4=_0x3cea22();while(!![]){try{var _0x12ba57=-parseInt(_0x114a83(0x134))/0x1+parseInt(_0x114a83(0x135))/0x2+parseInt(_0x114a83(0x12f))/0x3+-parseInt(_0x114a83(0x136))/0x4+parseInt(_0x114a83(0x130))/0x5+-parseInt(_0x114a83(0x139))/0x6+-parseInt(_0x114a83(0x12e))/0x7*(parseInt(_0x114a83(0x138))/0x8);if(_0x12ba57===_0x47ff18)break;else _0x1603b4['push'](_0x1603b4['shift']());}catch(_0xac9a17){_0x1603b4['push'](_0x1603b4['shift']());}}}(_0x1162,0x2e60d));Object[_0x13fd03(0x131)](exports,'__esModule',{'value':!![]}),exports[_0x13fd03(0x137)]=void 0x0;function _0x32a4(_0x254281,_0xf2c58d){var _0x11626e=_0x1162();return _0x32a4=function(_0x32a4b7,_0x3381e3){_0x32a4b7=_0x32a4b7-0x12e;var _0x5b29ab=_0x11626e[_0x32a4b7];return _0x5b29ab;},_0x32a4(_0x254281,_0xf2c58d);}var RetrieveStatus;(function(_0x4f3ba5){var _0x23dd95=_0x13fd03;_0x4f3ba5['Uninitialized']='Uninitialized',_0x4f3ba5['InProgress']=_0x23dd95(0x132),_0x4f3ba5[_0x23dd95(0x133)]='Completed',_0x4f3ba5[_0x23dd95(0x13a)]='Exception';}(RetrieveStatus=exports[_0x13fd03(0x137)]||(exports[_0x13fd03(0x137)]={})));function _0x1162(){var _0x2239f7=['8207DPvGfc','447602fUeqDA','516328UyrwYu','RetrieveStatus','23224tKASOc','1602978lhTJau','Exception','763pQFIQG','1024968FBRlFI','1726935VBxbtY','defineProperty','In\x20Progress','Completed'];_0x1162=function(){return _0x2239f7;};return _0x1162();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x2679(_0x16ef3f,_0x3c4cee){var _0x33be82=_0x33be();return _0x2679=function(_0x2679c4,_0x173ca4){_0x2679c4=_0x2679c4-0x1b7;var _0x3e4b16=_0x33be82[_0x2679c4];return _0x3e4b16;},_0x2679(_0x16ef3f,_0x3c4cee);}var _0x166e5f=_0x2679;(function(_0xec5c54,_0x3584ca){var _0x265e1e=_0x2679,_0x2a3e17=_0xec5c54();while(!![]){try{var _0x14c67c=parseInt(_0x265e1e(0x1c5))/0x1+parseInt(_0x265e1e(0x1b9))/0x2*(parseInt(_0x265e1e(0x1c2))/0x3)+parseInt(_0x265e1e(0x1b7))/0x4+-parseInt(_0x265e1e(0x1c6))/0x5+-parseInt(_0x265e1e(0x1c0))/0x6*(parseInt(_0x265e1e(0x1bc))/0x7)+-parseInt(_0x265e1e(0x1bb))/0x8*(-parseInt(_0x265e1e(0x1c3))/0x9)+-parseInt(_0x265e1e(0x1bd))/0xa*(parseInt(_0x265e1e(0x1c4))/0xb);if(_0x14c67c===_0x3584ca)break;else _0x2a3e17['push'](_0x2a3e17['shift']());}catch(_0x4c5606){_0x2a3e17['push'](_0x2a3e17['shift']());}}}(_0x33be,0xe74d3));function _0x33be(){var _0x408963=['1592922RCfJwj','__esModule','810450aOfoWK','441pGcgua','11BpgMFk','1269309YGpPgr','3049910knKVdM','6011224hCVLDO','AWS_S3','12fmSEBg','Local','4176pykNss','49ITWNiG','10027910IMyfvW','StorageType','defineProperty'];_0x33be=function(){return _0x408963;};return _0x33be();}Object[_0x166e5f(0x1bf)](exports,_0x166e5f(0x1c1),{'value':!![]}),exports[_0x166e5f(0x1be)]=void 0x0;var StorageType;(function(_0xe01de3){var _0x55b02a=_0x166e5f;_0xe01de3['Local']=_0x55b02a(0x1ba),_0xe01de3[_0x55b02a(0x1b8)]=_0x55b02a(0x1b8);}(StorageType=exports[_0x166e5f(0x1be)]||(exports[_0x166e5f(0x1be)]={})));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0x261a(_0x54bc14,_0x5dc303){const _0xbfc1e6=_0xbfc1();return _0x261a=function(_0x261a6b,_0x4b4e99){_0x261a6b=_0x261a6b-0xad;let _0x3f9164=_0xbfc1e6[_0x261a6b];return _0x3f9164;},_0x261a(_0x54bc14,_0x5dc303);}const _0xa9fd86=_0x261a;(function(_0x16bedb,_0x1b5f32){const _0x2007ee=_0x261a,_0x7b69cd=_0x16bedb();while(!![]){try{const _0x2568dc=parseInt(_0x2007ee(0xaf))/0x1*(-parseInt(_0x2007ee(0xc7))/0x2)+-parseInt(_0x2007ee(0xc4))/0x3*(-parseInt(_0x2007ee(0xc3))/0x4)+parseInt(_0x2007ee(0xcc))/0x5*(-parseInt(_0x2007ee(0xcd))/0x6)+parseInt(_0x2007ee(0xb4))/0x7+-parseInt(_0x2007ee(0xc6))/0x8+-parseInt(_0x2007ee(0xb6))/0x9+parseInt(_0x2007ee(0xae))/0xa;if(_0x2568dc===_0x1b5f32)break;else _0x7b69cd['push'](_0x7b69cd['shift']());}catch(_0x3dc570){_0x7b69cd['push'](_0x7b69cd['shift']());}}}(_0xbfc1,0x9f202));function _0xbfc1(){const _0x2a1bba=['getFilesPaths','apply','Restore','../types/aws.types','39610QdLOpl','654putXZQ','Available','AwsS3Utils','34271850feLeNb','1215830nOVzsV','AwsFileRetrieveStatus','match','Restoring','extractFileRetrieveStatusFromRestoreField','192549robQkJ','listObjects','7263747RbSOGK','extractFileRetrieveStatusFromFileInfo','Deep','then','StorageClass','__awaiter','next','promise','Flexible','push','value','__esModule','Key','16vraXgA','102255KlKoUw','defineProperty','422744iZBVdm','2YXymZk'];_0xbfc1=function(){return _0x2a1bba;};return _0xbfc1();}var __awaiter=this&&this[_0xa9fd86(0xbb)]||function(_0x54953f,_0x336c83,_0x5f361b,_0x201fcc){function _0x33fd93(_0x1e4933){return _0x1e4933 instanceof _0x5f361b?_0x1e4933:new _0x5f361b(function(_0x1df7b8){_0x1df7b8(_0x1e4933);});}return new(_0x5f361b||(_0x5f361b=Promise))(function(_0x2c1bd2,_0x4ccb8b){const _0x9c2707=_0x261a;function _0x10e95e(_0x331a7d){const _0x10117f=_0x261a;try{_0xd3b94(_0x201fcc[_0x10117f(0xbc)](_0x331a7d));}catch(_0x105822){_0x4ccb8b(_0x105822);}}function _0x4901d7(_0x226997){try{_0xd3b94(_0x201fcc['throw'](_0x226997));}catch(_0x4bb0e4){_0x4ccb8b(_0x4bb0e4);}}function _0xd3b94(_0x54681c){const _0x32aa7e=_0x261a;_0x54681c['done']?_0x2c1bd2(_0x54681c[_0x32aa7e(0xc0)]):_0x33fd93(_0x54681c['value'])[_0x32aa7e(0xb9)](_0x10e95e,_0x4901d7);}_0xd3b94((_0x201fcc=_0x201fcc[_0x9c2707(0xc9)](_0x54953f,_0x336c83||[]))[_0x9c2707(0xbc)]());});};Object[_0xa9fd86(0xc5)](exports,_0xa9fd86(0xc1),{'value':!![]}),exports[_0xa9fd86(0xad)]=void 0x0;const aws_types_1=require(_0xa9fd86(0xcb));class AwsS3Utils{static[_0xa9fd86(0xb7)](_0xf5e50f){const _0x597180=_0xa9fd86;if(_0xf5e50f[_0x597180(0xba)]===_0x597180(0xbe)||_0xf5e50f[_0x597180(0xba)]===_0x597180(0xb8)){if(_0xf5e50f['Restore'])return AwsS3Utils['extractFileRetrieveStatusFromRestoreField'](_0xf5e50f[_0x597180(0xca)]);return aws_types_1[_0x597180(0xb0)]['NeedRestore'];}return aws_types_1[_0x597180(0xb0)][_0x597180(0xce)];}static[_0xa9fd86(0xb3)](_0x2b8503){const _0x341d27=_0xa9fd86,_0x18d842=/ongoing-request="([^"]+)"/,_0x3926e7=_0x2b8503[_0x341d27(0xb1)](_0x18d842);return _0x3926e7[0x1]==='false'?aws_types_1['AwsFileRetrieveStatus']['Available']:aws_types_1[_0x341d27(0xb0)][_0x341d27(0xb2)];}static[_0xa9fd86(0xc8)](_0x591cef,_0x5d51c8,_0x5da6ae){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x46a116=_0x261a,_0x5b7e39=[];let _0x5aff63,_0xa8d759=null;do{const _0x3c7307={'Bucket':_0x5d51c8,'Prefix':_0x591cef,'Marker':_0xa8d759},{Contents:_0x464190,IsTruncated:_0x5c1d5b}=yield _0x5da6ae[_0x46a116(0xb5)](_0x3c7307)[_0x46a116(0xbd)]();for(const _0x1d658c of _0x464190){_0x5b7e39[_0x46a116(0xbf)](_0x1d658c[_0x46a116(0xc2)]);}_0x5aff63=_0x5c1d5b,_0x5aff63&&(_0xa8d759=_0x464190['at'](-0x1)[_0x46a116(0xc2)]);}while(_0x5aff63);return _0x5b7e39;});}}exports[_0xa9fd86(0xad)]=AwsS3Utils;
|