@flosum/storages 1.4.3 → 1.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/copy/aws-s3-copy.js +1 -1
- package/dist/copy/base-copy.js +1 -1
- package/dist/copy/index.js +1 -1
- package/dist/copy/local-copy.js +1 -1
- package/dist/credentials/aws-s3-credentials.d.ts +0 -2
- package/dist/credentials/aws-s3-credentials.js +1 -1
- package/dist/credentials/azure-credentials.d.ts +0 -2
- package/dist/credentials/azure-credentials.js +1 -1
- package/dist/credentials/base-credentials.js +1 -1
- package/dist/credentials/google-cloud-credentials-validator.d.ts +0 -2
- package/dist/credentials/google-cloud-credentials-validator.js +1 -1
- package/dist/credentials/google-cloud-credentials.js +1 -1
- package/dist/credentials/index.js +1 -1
- package/dist/credentials/local-credentials.js +1 -1
- package/dist/delete/aws-s3-delete.js +1 -1
- package/dist/delete/azure-delete.js +1 -1
- package/dist/delete/base-delete.js +1 -1
- package/dist/delete/google-cloud-delete.js +1 -1
- package/dist/delete/index.js +1 -1
- package/dist/delete/local-delete.js +1 -1
- package/dist/deploy/aws-s3-deploy.js +1 -1
- package/dist/deploy/azure-deploy.js +1 -1
- package/dist/deploy/base-deploy.js +1 -1
- package/dist/deploy/google-cloud-deploy.js +1 -1
- package/dist/deploy/index.js +1 -1
- package/dist/deploy/local-deploy.js +1 -1
- package/dist/factory.js +1 -1
- package/dist/file-size-retriever/aws-s3-file-size-retriever.js +1 -1
- package/dist/file-size-retriever/azure-file-size-retriever.js +1 -1
- package/dist/file-size-retriever/base-file-size-retriever.js +1 -1
- package/dist/file-size-retriever/google-cloud-file-size-retriever.js +1 -1
- package/dist/file-size-retriever/index.js +1 -1
- package/dist/file-size-retriever/local-size-retriever.js +1 -1
- package/dist/index.js +1 -1
- package/dist/init.js +1 -1
- package/dist/instances/aws-s3.storage-instance.js +1 -1
- package/dist/instances/base.storage-instance.js +1 -1
- package/dist/instances/index.js +1 -1
- package/dist/instances/local.storage-instance.js +1 -1
- package/dist/retrieve/aws-s3-import-helper.js +1 -1
- package/dist/retrieve/aws-s3-retrieve.js +1 -1
- package/dist/retrieve/azure-retrieve.js +1 -1
- package/dist/retrieve/base-retrieve.js +1 -1
- package/dist/retrieve/google-cloud-retrieve.js +1 -1
- package/dist/retrieve/helpers/aws-s3-helper.js +1 -1
- package/dist/retrieve/helpers/azure-helper.js +1 -1
- package/dist/retrieve/helpers/base-helper.js +1 -1
- package/dist/retrieve/helpers/google-cloud-helper.js +1 -1
- package/dist/retrieve/helpers/local-helper.js +1 -1
- package/dist/retrieve/index.js +1 -1
- package/dist/retrieve/local-retrieve.js +1 -1
- package/dist/types/aws.types.js +1 -1
- package/dist/types/azure.types.js +1 -1
- package/dist/types/google-cloud.types.js +1 -1
- package/dist/types/index.js +1 -1
- package/dist/types/internal.types.js +1 -1
- package/dist/types/retrieve-status.enum.js +1 -1
- package/dist/types/storage-type.enum.js +1 -1
- package/dist/utils/aws-s3.utils.js +1 -1
- package/dist/utils/azure.utils.js +1 -1
- package/dist/utils/cache.utils.js +1 -1
- package/dist/utils/google-cloud.utils.js +1 -1
- package/package.json +1 -1
package/dist/copy/aws-s3-copy.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x2cd068=_0x5100;(function(_0x37a3cd,_0x5163fb){const _0x814105=_0x5100,_0x2bac0c=_0x37a3cd();while(!![]){try{const _0x3648a9=-parseInt(_0x814105(0x8c))/0x1+-parseInt(_0x814105(0xa1))/0x2*(-parseInt(_0x814105(0xa8))/0x3)+-parseInt(_0x814105(0x97))/0x4*(parseInt(_0x814105(0xa3))/0x5)+parseInt(_0x814105(0xab))/0x6*(-parseInt(_0x814105(0x90))/0x7)+parseInt(_0x814105(0x95))/0x8*(-parseInt(_0x814105(0x8e))/0x9)+-parseInt(_0x814105(0x91))/0xa*(parseInt(_0x814105(0x94))/0xb)+parseInt(_0x814105(0x9c))/0xc*(parseInt(_0x814105(0xa5))/0xd);if(_0x3648a9===_0x5163fb)break;else _0x2bac0c['push'](_0x2bac0c['shift']());}catch(_0x18b2cd){_0x2bac0c['push'](_0x2bac0c['shift']());}}}(_0x54fb,0x49e8a));function _0x5100(_0x5e1965,_0x24fa3e){_0x5e1965=_0x5e1965-0x8c;const _0x54fb38=_0x54fb();let _0x5100ee=_0x54fb38[_0x5e1965];return _0x5100ee;}var __awaiter=this&&this[_0x2cd068(0x93)]||function(_0x3087ef,_0x251db1,_0x4077e5,_0x1985bb){function _0x1b5074(_0x3a1f07){return _0x3a1f07 instanceof _0x4077e5?_0x3a1f07:new _0x4077e5(function(_0x24eece){_0x24eece(_0x3a1f07);});}return new(_0x4077e5||(_0x4077e5=Promise))(function(_0x231930,_0x5e28d5){const _0x46460a=_0x5100;function _0x4fb8d7(_0x398487){const _0x4751d1=_0x5100;try{_0x3466c1(_0x1985bb[_0x4751d1(0xa9)](_0x398487));}catch(_0x583f7b){_0x5e28d5(_0x583f7b);}}function _0x528daf(_0x39b6d4){try{_0x3466c1(_0x1985bb['throw'](_0x39b6d4));}catch(_0x3aed21){_0x5e28d5(_0x3aed21);}}function _0x3466c1(_0x2c6213){const _0x4432a7=_0x5100;_0x2c6213[_0x4432a7(0x9b)]?_0x231930(_0x2c6213[_0x4432a7(0x8d)]):_0x1b5074(_0x2c6213[_0x4432a7(0x8d)])[_0x4432a7(0x96)](_0x4fb8d7,_0x528daf);}_0x3466c1((_0x1985bb=_0x1985bb[_0x46460a(0xaa)](_0x3087ef,_0x251db1||[]))[_0x46460a(0xa9)]());});};Object[_0x2cd068(0xa7)](exports,'__esModule',{'value':!![]}),exports[_0x2cd068(0x98)]=void 0x0;const base_copy_1=require(_0x2cd068(0x99)),client_s3_1=require(_0x2cd068(0x92)),aws_s3_utils_1=require(_0x2cd068(0x9e));class AwsS3Copy extends base_copy_1[_0x2cd068(0x9d)]{constructor(_0x3c8a21,_0x331478){const _0x2f307e=_0x2cd068;super(_0x3c8a21),this['s3Client']=_0x331478||aws_s3_utils_1[_0x2f307e(0x9f)][_0x2f307e(0xa2)](_0x3c8a21);}[_0x2cd068(0xa0)](_0x552b6f,_0x5593af){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x572918=_0x5100,_0x3d010b=new client_s3_1[(_0x572918(0x9a))]({'Bucket':this['credentials'][_0x572918(0xa4)],'CopySource':_0x552b6f,'Key':_0x5593af});yield this[_0x572918(0xa6)][_0x572918(0x8f)](_0x3d010b);});}}exports[_0x2cd068(0x98)]=AwsS3Copy;function _0x54fb(){const _0x377132=['../utils/aws-s3.utils','AwsS3Utils','execute','1201568GjkavK','createS3Client','1560820EyFVaO','bucketName','2097082NLNzez','s3Client','defineProperty','3kJeMQJ','next','apply','3303228WgApbE','326141rJlCtD','value','9hVCyeM','send','7BmyKVH','1894070EjhBMv','@aws-sdk/client-s3','__awaiter','11BkYFap','392016PFgnXk','then','4cAbNVi','AwsS3Copy','./base-copy','CopyObjectCommand','done','84Mralqt','BaseCopy'];_0x54fb=function(){return _0x377132;};return _0x54fb();}
|
package/dist/copy/base-copy.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x2952c6=_0x1021;(function(_0x5cde66,_0x1fcf36){var _0x102d3b=_0x1021,_0x4e2830=_0x5cde66();while(!![]){try{var _0xcf3d61=-parseInt(_0x102d3b(0x176))/0x1+parseInt(_0x102d3b(0x180))/0x2*(-parseInt(_0x102d3b(0x177))/0x3)+parseInt(_0x102d3b(0x17d))/0x4*(parseInt(_0x102d3b(0x173))/0x5)+-parseInt(_0x102d3b(0x175))/0x6*(parseInt(_0x102d3b(0x17f))/0x7)+parseInt(_0x102d3b(0x178))/0x8*(-parseInt(_0x102d3b(0x179))/0x9)+-parseInt(_0x102d3b(0x174))/0xa*(-parseInt(_0x102d3b(0x17a))/0xb)+parseInt(_0x102d3b(0x17c))/0xc;if(_0xcf3d61===_0x1fcf36)break;else _0x4e2830['push'](_0x4e2830['shift']());}catch(_0x1dcfc2){_0x4e2830['push'](_0x4e2830['shift']());}}}(_0x413e,0x5ab96));function _0x1021(_0x5ba769,_0x344719){_0x5ba769=_0x5ba769-0x173;var _0x413e27=_0x413e();var _0x102172=_0x413e27[_0x5ba769];return _0x102172;}Object[_0x2952c6(0x17e)](exports,_0x2952c6(0x182),{'value':!![]}),exports[_0x2952c6(0x181)]=void 0x0;class BaseCopy{constructor(_0x3a2099){var _0x178dda=_0x2952c6;this[_0x178dda(0x17b)]=_0x3a2099;}}function _0x413e(){var _0x321ad2=['BaseCopy','__esModule','5kjZuOv','3478180REOxct','42QsdnOu','5811dbGVpg','138PmffoT','112YRJyYt','229707IChBQN','11NOzcyz','credentials','11837760NRwNlp','1543588fYZsit','defineProperty','606830eEKjcI','16462APeSqy'];_0x413e=function(){return _0x321ad2;};return _0x413e();}exports[_0x2952c6(0x181)]=BaseCopy;
|
package/dist/copy/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var _0x37ba12=_0x5c20;(function(_0x49aa65,_0x51c8e0){var _0x3e6e03=_0x5c20,_0x114ebe=_0x49aa65();while(!![]){try{var _0x4c171a=parseInt(_0x3e6e03(0x149))/0x1+parseInt(_0x3e6e03(0x159))/0x2*(parseInt(_0x3e6e03(0x151))/0x3)+-parseInt(_0x3e6e03(0x153))/0x4*(-parseInt(_0x3e6e03(0x155))/0x5)+parseInt(_0x3e6e03(0x150))/0x6*(-parseInt(_0x3e6e03(0x15a))/0x7)+-parseInt(_0x3e6e03(0x154))/0x8*(-parseInt(_0x3e6e03(0x14b))/0x9)+parseInt(_0x3e6e03(0x158))/0xa*(-parseInt(_0x3e6e03(0x152))/0xb)+parseInt(_0x3e6e03(0x156))/0xc;if(_0x4c171a===_0x51c8e0)break;else _0x114ebe['push'](_0x114ebe['shift']());}catch(_0x1242ac){_0x114ebe['push'](_0x114ebe['shift']());}}}(_0x4dab,0xb05a1));function _0x4dab(){var _0xc28ce6=['./base-copy','5351230IHdwFr','222iKlOnP','16156rfzQlF','527627Dblcsz','AwsS3Copy','2043JhsgRU','__esModule','BaseCopy','defineProperty','LocalCopy','1920cwrQUL','12emDAsF','11JlCWTb','556prSjut','40864zzkvtT','10970tfTGWb','41604jzLWRO'];_0x4dab=function(){return _0xc28ce6;};return _0x4dab();}function _0x5c20(_0x3a1e65,_0x19ebed){_0x3a1e65=_0x3a1e65-0x149;var _0x4dab2c=_0x4dab();var _0x5c2044=_0x4dab2c[_0x3a1e65];return _0x5c2044;}Object[_0x37ba12(0x14e)](exports,_0x37ba12(0x14c),{'value':!![]}),exports[_0x37ba12(0x14a)]=exports[_0x37ba12(0x14f)]=exports[_0x37ba12(0x14d)]=void 0x0;var base_copy_1=require(_0x37ba12(0x157));Object[_0x37ba12(0x14e)](exports,'BaseCopy',{'enumerable':!![],'get':function(){return base_copy_1['BaseCopy'];}});var local_copy_1=require('./local-copy');Object[_0x37ba12(0x14e)](exports,_0x37ba12(0x14f),{'enumerable':!![],'get':function(){var _0x26a698=_0x37ba12;return local_copy_1[_0x26a698(0x14f)];}});var aws_s3_copy_1=require('./aws-s3-copy');Object[_0x37ba12(0x14e)](exports,_0x37ba12(0x14a),{'enumerable':!![],'get':function(){var _0x5aad1e=_0x37ba12;return aws_s3_copy_1[_0x5aad1e(0x14a)];}});
|
package/dist/copy/local-copy.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x8345a1=_0x2f52;function _0x5926(){const _0x3b5c96=['9125zyIwjE','5959376nlXCrw','fs/promises','apply','__esModule','execute','583629ipRjqv','222052JvOzLr','1218666SsaoCC','copyFile','19181952LiZZho','dirname','./base-copy','736CwWnoy','throw','path','BaseCopy','LocalCopy','mkdir','defineProperty','3qOsNZe','next','__awaiter','4372403rklwtN'];_0x5926=function(){return _0x3b5c96;};return _0x5926();}(function(_0x1fedd6,_0x221c96){const _0x489936=_0x2f52,_0x2e6485=_0x1fedd6();while(!![]){try{const _0x3d3e07=-parseInt(_0x489936(0xb2))/0x1+parseInt(_0x489936(0xb3))/0x2*(-parseInt(_0x489936(0xc0))/0x3)+-parseInt(_0x489936(0xb9))/0x4*(-parseInt(_0x489936(0xc4))/0x5)+parseInt(_0x489936(0xb4))/0x6+-parseInt(_0x489936(0xc3))/0x7+-parseInt(_0x489936(0xc5))/0x8+parseInt(_0x489936(0xb6))/0x9;if(_0x3d3e07===_0x221c96)break;else _0x2e6485['push'](_0x2e6485['shift']());}catch(_0x4cff3f){_0x2e6485['push'](_0x2e6485['shift']());}}}(_0x5926,0x93f51));var __awaiter=this&&this[_0x8345a1(0xc2)]||function(_0xa2725d,_0x4923bd,_0x15ad46,_0x42f948){function _0x47f020(_0x42a153){return _0x42a153 instanceof _0x15ad46?_0x42a153:new _0x15ad46(function(_0xa5f1d3){_0xa5f1d3(_0x42a153);});}return new(_0x15ad46||(_0x15ad46=Promise))(function(_0x342ef9,_0x87bcfc){const _0x5a89f4=_0x2f52;function _0x2d6631(_0x2b71e6){const _0x49f9d2=_0x2f52;try{_0x419d32(_0x42f948[_0x49f9d2(0xc1)](_0x2b71e6));}catch(_0x245414){_0x87bcfc(_0x245414);}}function _0x29ee8d(_0x548867){const _0x3bf790=_0x2f52;try{_0x419d32(_0x42f948[_0x3bf790(0xba)](_0x548867));}catch(_0x2264bf){_0x87bcfc(_0x2264bf);}}function _0x419d32(_0x3683cf){_0x3683cf['done']?_0x342ef9(_0x3683cf['value']):_0x47f020(_0x3683cf['value'])['then'](_0x2d6631,_0x29ee8d);}_0x419d32((_0x42f948=_0x42f948[_0x5a89f4(0xaf)](_0xa2725d,_0x4923bd||[]))['next']());});};Object[_0x8345a1(0xbf)](exports,_0x8345a1(0xb0),{'value':!![]}),exports[_0x8345a1(0xbd)]=void 0x0;const base_copy_1=require(_0x8345a1(0xb8)),promises_1=require(_0x8345a1(0xae)),path_1=require(_0x8345a1(0xbb));class LocalCopy extends base_copy_1[_0x8345a1(0xbc)]{[_0x8345a1(0xb1)](_0xd310b1,_0x1aa40b){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x27b77e=_0x2f52,_0x50995f=(0x0,path_1[_0x27b77e(0xb7)])(_0x1aa40b);yield(0x0,promises_1[_0x27b77e(0xbe)])(_0x50995f,{'recursive':!![]}),yield(0x0,promises_1[_0x27b77e(0xb5)])(_0xd310b1,_0x1aa40b);});}}function _0x2f52(_0x16a36e,_0x1afccf){_0x16a36e=_0x16a36e-0xae;const _0x592628=_0x5926();let _0x2f522c=_0x592628[_0x16a36e];return _0x2f522c;}exports[_0x8345a1(0xbd)]=LocalCopy;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { BaseCredentials } from './base-credentials';
|
|
2
2
|
import { AwsCredentials } from '../types/aws.types';
|
|
3
3
|
export declare class AwsS3Credentials extends BaseCredentials<AwsCredentials> {
|
|
4
|
-
private readonly s3Client;
|
|
5
|
-
constructor(rawCredentials?: Record<string, any>);
|
|
6
4
|
get accessKeyId(): string;
|
|
7
5
|
get secretAccessKey(): string;
|
|
8
6
|
get bucketName(): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x3ad1a9=_0x2b66;(function(_0x407468,_0x1ed124){const _0x25a6e9=_0x2b66,_0x49b25e=_0x407468();while(!![]){try{const _0x13af8a=-parseInt(_0x25a6e9(0x105))/0x1+parseInt(_0x25a6e9(0xf6))/0x2+parseInt(_0x25a6e9(0x103))/0x3+parseInt(_0x25a6e9(0xff))/0x4*(parseInt(_0x25a6e9(0xf4))/0x5)+-parseInt(_0x25a6e9(0xf2))/0x6+parseInt(_0x25a6e9(0x100))/0x7*(-parseInt(_0x25a6e9(0x107))/0x8)+-parseInt(_0x25a6e9(0xf3))/0x9;if(_0x13af8a===_0x1ed124)break;else _0x49b25e['push'](_0x49b25e['shift']());}catch(_0x3061a1){_0x49b25e['push'](_0x49b25e['shift']());}}}(_0x1569,0xe3247));function _0x2b66(_0x2146de,_0x3858cd){_0x2146de=_0x2146de-0xef;const _0x15697d=_0x1569();let _0x2b666e=_0x15697d[_0x2146de];return _0x2b666e;}var __awaiter=this&&this['__awaiter']||function(_0x5a13fd,_0x5c45e5,_0x520700,_0x1b479a){function _0x24a532(_0xcca7fd){return _0xcca7fd instanceof _0x520700?_0xcca7fd:new _0x520700(function(_0x3f6eae){_0x3f6eae(_0xcca7fd);});}return new(_0x520700||(_0x520700=Promise))(function(_0x2a547a,_0x4a515a){function _0x5b211a(_0x312abf){const _0x2fc881=_0x2b66;try{_0x22651a(_0x1b479a[_0x2fc881(0xfb)](_0x312abf));}catch(_0x5014c6){_0x4a515a(_0x5014c6);}}function _0x28910d(_0x67f788){const _0x5b4fe2=_0x2b66;try{_0x22651a(_0x1b479a[_0x5b4fe2(0xf0)](_0x67f788));}catch(_0x99d313){_0x4a515a(_0x99d313);}}function _0x22651a(_0x310c60){const _0x195067=_0x2b66;_0x310c60[_0x195067(0xef)]?_0x2a547a(_0x310c60['value']):_0x24a532(_0x310c60[_0x195067(0x102)])[_0x195067(0x101)](_0x5b211a,_0x28910d);}_0x22651a((_0x1b479a=_0x1b479a['apply'](_0x5a13fd,_0x5c45e5||[]))['next']());});};Object[_0x3ad1a9(0x106)](exports,_0x3ad1a9(0xf9),{'value':!![]}),exports[_0x3ad1a9(0xfc)]=void 0x0;const base_credentials_1=require('./base-credentials'),client_s3_1=require(_0x3ad1a9(0xfe)),aws_s3_utils_1=require('../utils/aws-s3.utils');function _0x1569(){const _0x235fe0=['553jaVLZR','then','value','4400337JqGSmN','send','604620blPMKx','defineProperty','10864YJVvJh','validate','destroy','getCredentials','done','throw','createS3Client','9106416qrlvvG','2471247NzVEJM','2849890kjRSeE','credentials','515766fGtQdW','region','accessKeyId','__esModule','bucketName','next','AwsS3Credentials','secretAccessKey','@aws-sdk/client-s3','12BXMnBi'];_0x1569=function(){return _0x235fe0;};return _0x1569();}class AwsS3Credentials extends base_credentials_1['BaseCredentials']{get[_0x3ad1a9(0xf8)](){return this['credentials']['accessKeyId'];}get['secretAccessKey'](){const _0x1f22c9=_0x3ad1a9;return this[_0x1f22c9(0xf5)][_0x1f22c9(0xfd)];}get[_0x3ad1a9(0xfa)](){const _0x4d4d1a=_0x3ad1a9;return this[_0x4d4d1a(0xf5)][_0x4d4d1a(0xfa)];}get[_0x3ad1a9(0xf7)](){const _0x2bec4c=_0x3ad1a9;return this['credentials'][_0x2bec4c(0xf7)];}[_0x3ad1a9(0x108)](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x31eb5e=_0x2b66,_0x4d37cd=aws_s3_utils_1['AwsS3Utils'][_0x31eb5e(0xf1)](this[_0x31eb5e(0xf5)]);try{yield _0x4d37cd[_0x31eb5e(0x104)](new client_s3_1['HeadBucketCommand']({'Bucket':this['credentials'][_0x31eb5e(0xfa)]}));}finally{_0x4d37cd[_0x31eb5e(0x109)]();}});}[_0x3ad1a9(0x10a)](_0x2c27e5=![]){const _0x3a3f62=_0x3ad1a9;if(_0x2c27e5)return{'bucketName':this['credentials'][_0x3a3f62(0xfa)]};return this['credentials'];}}exports['AwsS3Credentials']=AwsS3Credentials;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { BaseCredentials } from './base-credentials';
|
|
2
2
|
import { AzureBlobCredentials } from '../types/azure.types';
|
|
3
3
|
export declare class AzureCredentials extends BaseCredentials<AzureBlobCredentials> {
|
|
4
|
-
private readonly blobServiceClient;
|
|
5
|
-
constructor(rawCredentials?: Record<string, string>);
|
|
6
4
|
get accountKey(): string;
|
|
7
5
|
get accountName(): string;
|
|
8
6
|
get containerName(): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x18970b=_0x2f25;function _0x2f25(_0x1c17f6,_0x343122){_0x1c17f6=_0x1c17f6-0x74;const _0x5bd32b=_0x5bd3();let _0x2f2510=_0x5bd32b[_0x1c17f6];return _0x2f2510;}(function(_0x435a1b,_0x58643a){const _0xeabbeb=_0x2f25,_0x14855a=_0x435a1b();while(!![]){try{const _0x18c095=parseInt(_0xeabbeb(0x7a))/0x1*(parseInt(_0xeabbeb(0x90))/0x2)+-parseInt(_0xeabbeb(0x8d))/0x3+parseInt(_0xeabbeb(0x82))/0x4+parseInt(_0xeabbeb(0x79))/0x5*(-parseInt(_0xeabbeb(0x8c))/0x6)+parseInt(_0xeabbeb(0x7f))/0x7*(-parseInt(_0xeabbeb(0x89))/0x8)+-parseInt(_0xeabbeb(0x87))/0x9*(parseInt(_0xeabbeb(0x77))/0xa)+parseInt(_0xeabbeb(0x8f))/0xb;if(_0x18c095===_0x58643a)break;else _0x14855a['push'](_0x14855a['shift']());}catch(_0x522aa9){_0x14855a['push'](_0x14855a['shift']());}}}(_0x5bd3,0x9cb3a));function _0x5bd3(){const _0x154651=['../utils/azure.utils','containerName','74205VhorGD','accountKey','248qxJYTu','__awaiter','then','2694uSetOf','862203vUctFw','createAzureBlobServiceClient','26805999GpIcbT','202YRcTwB','getContainerClient','getProperties','credentials','590DQIcjY','value','14095LgzlFG','5762jbJiaU','accountName','throw','next','AzureCredentials','251517KWyTbS','__esModule','BaseCredentials','3105708CxNovl','./base-credentials','getCredentials'];_0x5bd3=function(){return _0x154651;};return _0x5bd3();}var __awaiter=this&&this[_0x18970b(0x8a)]||function(_0xaa4d87,_0x12679b,_0x5bbe56,_0x4c6255){function _0x26e837(_0x5abdb0){return _0x5abdb0 instanceof _0x5bbe56?_0x5abdb0:new _0x5bbe56(function(_0x2d613b){_0x2d613b(_0x5abdb0);});}return new(_0x5bbe56||(_0x5bbe56=Promise))(function(_0x8ac0e4,_0xcc366){const _0x115d05=_0x2f25;function _0x5d186a(_0x518a63){const _0xd51dc8=_0x2f25;try{_0x414019(_0x4c6255[_0xd51dc8(0x7d)](_0x518a63));}catch(_0x4badc2){_0xcc366(_0x4badc2);}}function _0x535fb2(_0x32a31f){const _0x1c0bbd=_0x2f25;try{_0x414019(_0x4c6255[_0x1c0bbd(0x7c)](_0x32a31f));}catch(_0x19aae2){_0xcc366(_0x19aae2);}}function _0x414019(_0x6daf7){const _0x4e6d74=_0x2f25;_0x6daf7['done']?_0x8ac0e4(_0x6daf7[_0x4e6d74(0x78)]):_0x26e837(_0x6daf7[_0x4e6d74(0x78)])[_0x4e6d74(0x8b)](_0x5d186a,_0x535fb2);}_0x414019((_0x4c6255=_0x4c6255['apply'](_0xaa4d87,_0x12679b||[]))[_0x115d05(0x7d)]());});};Object['defineProperty'](exports,_0x18970b(0x80),{'value':!![]}),exports[_0x18970b(0x7e)]=void 0x0;const base_credentials_1=require(_0x18970b(0x83)),azure_utils_1=require(_0x18970b(0x85));class AzureCredentials extends base_credentials_1[_0x18970b(0x81)]{get['accountKey'](){const _0x24e948=_0x18970b;return this[_0x24e948(0x76)][_0x24e948(0x88)];}get[_0x18970b(0x7b)](){const _0x74fcae=_0x18970b;return this[_0x74fcae(0x76)][_0x74fcae(0x7b)];}get['containerName'](){const _0x4ee6bf=_0x18970b;return this[_0x4ee6bf(0x76)][_0x4ee6bf(0x86)];}['validate'](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x44ea37=_0x2f25,_0x2b22b7=azure_utils_1['AzureUtils'][_0x44ea37(0x8e)](this[_0x44ea37(0x76)]),_0x2c8cea=_0x2b22b7[_0x44ea37(0x74)](this[_0x44ea37(0x76)][_0x44ea37(0x86)]);yield _0x2c8cea[_0x44ea37(0x75)]();});}[_0x18970b(0x84)](_0x152055=![]){const _0x4123fa=_0x18970b;if(_0x152055)return{'accountName':this[_0x4123fa(0x76)]['accountName']};return this[_0x4123fa(0x76)];}}exports[_0x18970b(0x7e)]=AzureCredentials;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x5058(){var _0x496492=['22287155XbSYEY','9sEFfAf','10AJSFKq','BaseCredentials','572600xPxuEs','52dFaXAB','rawCredentials','defineProperty','__esModule','4139152MuzifJ','2098943yegdjK','6PmsORf','44685kUQjQP','1641154DYbVvi','3568435ZkXQzo'];_0x5058=function(){return _0x496492;};return _0x5058();}function _0xdd1d(_0x525d17,_0x7ac820){_0x525d17=_0x525d17-0x18c;var _0x50589a=_0x5058();var _0xdd1d6e=_0x50589a[_0x525d17];return _0xdd1d6e;}var _0x399adf=_0xdd1d;(function(_0xd6a585,_0x161028){var _0x37cdf1=_0xdd1d,_0x430168=_0xd6a585();while(!![]){try{var _0x31404e=parseInt(_0x37cdf1(0x191))/0x1+parseInt(_0x37cdf1(0x19a))/0x2+parseInt(_0x37cdf1(0x199))/0x3*(parseInt(_0x37cdf1(0x192))/0x4)+parseInt(_0x37cdf1(0x18c))/0x5+-parseInt(_0x37cdf1(0x198))/0x6*(parseInt(_0x37cdf1(0x197))/0x7)+parseInt(_0x37cdf1(0x196))/0x8*(parseInt(_0x37cdf1(0x18e))/0x9)+parseInt(_0x37cdf1(0x18f))/0xa*(-parseInt(_0x37cdf1(0x18d))/0xb);if(_0x31404e===_0x161028)break;else _0x430168['push'](_0x430168['shift']());}catch(_0x3788c7){_0x430168['push'](_0x430168['shift']());}}}(_0x5058,0x781a3));Object[_0x399adf(0x194)](exports,_0x399adf(0x195),{'value':!![]}),exports[_0x399adf(0x190)]=void 0x0;class BaseCredentials{constructor(_0x270167){var _0x434100=_0x399adf;this[_0x434100(0x193)]=_0x270167,this['credentials']=this[_0x434100(0x193)]?this['rawCredentials']:null;}}exports[_0x399adf(0x190)]=BaseCredentials;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { GoogleCloudStorageCredentials } from '../types/google-cloud.types';
|
|
2
2
|
export declare class GoogleCloudCredentialsValidator {
|
|
3
3
|
static validate(credentials: GoogleCloudStorageCredentials): Promise<void>;
|
|
4
|
-
private static validateRequiredFields;
|
|
5
4
|
private static validateServiceAccount;
|
|
6
5
|
private static validateHmac;
|
|
7
6
|
private static createClient;
|
|
8
|
-
private static getHmacValidationErrorMessage;
|
|
9
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x3f4edf=_0x2274;(function(_0x384f89,_0x47656c){const _0x532062=_0x2274,_0x5351dc=_0x384f89();while(!![]){try{const _0x59df01=parseInt(_0x532062(0x113))/0x1+parseInt(_0x532062(0x119))/0x2*(-parseInt(_0x532062(0x11f))/0x3)+-parseInt(_0x532062(0x105))/0x4+parseInt(_0x532062(0x103))/0x5*(parseInt(_0x532062(0x120))/0x6)+-parseInt(_0x532062(0x114))/0x7*(parseInt(_0x532062(0x121))/0x8)+parseInt(_0x532062(0x111))/0x9+parseInt(_0x532062(0x104))/0xa*(-parseInt(_0x532062(0x106))/0xb);if(_0x59df01===_0x47656c)break;else _0x5351dc['push'](_0x5351dc['shift']());}catch(_0x2b11c2){_0x5351dc['push'](_0x5351dc['shift']());}}}(_0x2a9a,0x68691));function _0x2274(_0x2122ff,_0xaf86c){_0x2122ff=_0x2122ff-0x103;const _0x2a9ad9=_0x2a9a();let _0x227464=_0x2a9ad9[_0x2122ff];return _0x227464;}var __awaiter=this&&this['__awaiter']||function(_0x23eda9,_0x5c1117,_0x48b835,_0x300570){function _0x19b531(_0x3629ca){return _0x3629ca instanceof _0x48b835?_0x3629ca:new _0x48b835(function(_0xcaadbb){_0xcaadbb(_0x3629ca);});}return new(_0x48b835||(_0x48b835=Promise))(function(_0x122047,_0x328c05){const _0x34b993=_0x2274;function _0x40498f(_0x187f1b){const _0x365250=_0x2274;try{_0x1e120e(_0x300570[_0x365250(0x112)](_0x187f1b));}catch(_0x52d262){_0x328c05(_0x52d262);}}function _0x24a558(_0x13fb47){const _0x4d3a47=_0x2274;try{_0x1e120e(_0x300570[_0x4d3a47(0x118)](_0x13fb47));}catch(_0x3277a4){_0x328c05(_0x3277a4);}}function _0x1e120e(_0x31c967){const _0x356a88=_0x2274;_0x31c967['done']?_0x122047(_0x31c967['value']):_0x19b531(_0x31c967[_0x356a88(0x10e)])['then'](_0x40498f,_0x24a558);}_0x1e120e((_0x300570=_0x300570[_0x34b993(0x10f)](_0x23eda9,_0x5c1117||[]))[_0x34b993(0x112)]());});};Object[_0x3f4edf(0x108)](exports,_0x3f4edf(0x10a),{'value':!![]}),exports[_0x3f4edf(0x11b)]=void 0x0;const client_s3_1=require(_0x3f4edf(0x10c)),init_1=require(_0x3f4edf(0x10d)),google_cloud_utils_1=require(_0x3f4edf(0x11d));class GoogleCloudCredentialsValidator{static[_0x3f4edf(0x11e)](_0x3bf3db){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x424d74=_0x2274;yield this[_0x424d74(0x110)](_0x3bf3db),yield this[_0x424d74(0x11a)](_0x3bf3db);});}static[_0x3f4edf(0x110)](_0x3ad388){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x1acea=_0x2274,_0x3bf1fa=google_cloud_utils_1[_0x1acea(0x11c)][_0x1acea(0x122)](_0x3ad388),_0x489e19=_0x3bf1fa['bucket'](_0x3ad388['bucketName']);yield _0x489e19['getMetadata']();});}static['validateHmac'](_0x5df68a){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x42dc64=_0x2274,_0x504774=this[_0x42dc64(0x10b)](_0x5df68a);try{yield _0x504774['send'](new client_s3_1['ListObjectsV2Command']({'Bucket':_0x5df68a[_0x42dc64(0x109)],'MaxKeys':0x1}));}finally{_0x504774['destroy']();}});}static[_0x3f4edf(0x10b)]({hmacAccessId:_0x4a4d49,hmacSecret:_0x229bcc}){const _0x5f3657=_0x3f4edf,_0x12c738={'endpoint':_0x5f3657(0x116),'region':_0x5f3657(0x117),'forcePathStyle':!![],'requestHandler':new init_1[(_0x5f3657(0x107))](),'credentials':{'accessKeyId':_0x4a4d49,'secretAccessKey':_0x229bcc}};return new client_s3_1[(_0x5f3657(0x115))](_0x12c738);}}function _0x2a9a(){const _0x393dd3=['validateHmac','GoogleCloudCredentialsValidator','GoogleCloudUtils','../utils/google-cloud.utils','validate','15zkbeph','1134222mImMvm','24BEuLxS','createStorageClient','5WjOCiI','102260HaxXbL','1252240gQGRBG','121ijqSlT','HttpHandler','defineProperty','bucketName','__esModule','createClient','@aws-sdk/client-s3','../init','value','apply','validateServiceAccount','6562764NWyAzD','next','828294abDAoh','1977689jPHBAI','S3Client','https://storage.googleapis.com','auto','throw','18294ypTqzV'];_0x2a9a=function(){return _0x393dd3;};return _0x2a9a();}exports[_0x3f4edf(0x11b)]=GoogleCloudCredentialsValidator;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x8a5b88=_0x44d1;function _0x44d1(_0x32db17,_0x5abacb){_0x32db17=_0x32db17-0xee;const _0x1c9490=_0x1c94();let _0x44d1c2=_0x1c9490[_0x32db17];return _0x44d1c2;}function _0x1c94(){const _0x4f25e2=['getCredentials','privateKey','credentials','163115pIdHgb','1683wPzGIU','1460432wJMyQM','57194NqmZYi','done','hmacAccessId','GoogleCloudCredentialsValidator','./google-cloud-credentials-validator','hmacSecret','defineProperty','__awaiter','apply','value','BaseCredentials','validate','42OnSYMc','next','bucketName','948084SMxwcm','then','2984PvJOYA','__esModule','projectId','5383JRkVUH','720030WIOJnz','clientEmail','440ClQuxQ','throw'];_0x1c94=function(){return _0x4f25e2;};return _0x1c94();}(function(_0x2b18de,_0x3c42fe){const _0x42f5f2=_0x44d1,_0x3bf4bb=_0x2b18de();while(!![]){try{const _0x2d7e28=parseInt(_0x42f5f2(0x100))/0x1+-parseInt(_0x42f5f2(0x103))/0x2*(-parseInt(_0x42f5f2(0xf0))/0x3)+-parseInt(_0x42f5f2(0x102))/0x4+parseInt(_0x42f5f2(0xf9))/0x5+parseInt(_0x42f5f2(0xf3))/0x6+-parseInt(_0x42f5f2(0xf8))/0x7*(parseInt(_0x42f5f2(0xf5))/0x8)+parseInt(_0x42f5f2(0x101))/0x9*(-parseInt(_0x42f5f2(0xfb))/0xa);if(_0x2d7e28===_0x3c42fe)break;else _0x3bf4bb['push'](_0x3bf4bb['shift']());}catch(_0x5c7259){_0x3bf4bb['push'](_0x3bf4bb['shift']());}}}(_0x1c94,0x32208));var __awaiter=this&&this[_0x8a5b88(0x10a)]||function(_0x5269e7,_0x297f97,_0x926a96,_0x82aaaf){function _0x5d4579(_0x55177c){return _0x55177c instanceof _0x926a96?_0x55177c:new _0x926a96(function(_0x3b6ef7){_0x3b6ef7(_0x55177c);});}return new(_0x926a96||(_0x926a96=Promise))(function(_0x12c797,_0xd3b2b5){const _0x32d765=_0x44d1;function _0x448612(_0x50dd8e){const _0x1a35d2=_0x44d1;try{_0x2eb849(_0x82aaaf[_0x1a35d2(0xf1)](_0x50dd8e));}catch(_0x3cd10d){_0xd3b2b5(_0x3cd10d);}}function _0xd3edb9(_0x219d94){const _0x1ee0d8=_0x44d1;try{_0x2eb849(_0x82aaaf[_0x1ee0d8(0xfc)](_0x219d94));}catch(_0x459f07){_0xd3b2b5(_0x459f07);}}function _0x2eb849(_0x4dadbf){const _0x30a847=_0x44d1;_0x4dadbf[_0x30a847(0x104)]?_0x12c797(_0x4dadbf[_0x30a847(0x10c)]):_0x5d4579(_0x4dadbf['value'])[_0x30a847(0xf4)](_0x448612,_0xd3edb9);}_0x2eb849((_0x82aaaf=_0x82aaaf[_0x32d765(0x10b)](_0x5269e7,_0x297f97||[]))['next']());});};Object[_0x8a5b88(0x109)](exports,_0x8a5b88(0xf6),{'value':!![]}),exports['GoogleCloudCredentials']=void 0x0;const base_credentials_1=require('./base-credentials'),google_cloud_credentials_validator_1=require(_0x8a5b88(0x107));class GoogleCloudCredentials extends base_credentials_1[_0x8a5b88(0xee)]{get[_0x8a5b88(0xf7)](){const _0x3db1bd=_0x8a5b88;return this['credentials'][_0x3db1bd(0xf7)];}get['clientEmail'](){const _0x535abf=_0x8a5b88;return this[_0x535abf(0xff)][_0x535abf(0xfa)];}get[_0x8a5b88(0xfe)](){return this['credentials']['privateKey'];}get[_0x8a5b88(0xf2)](){const _0x23a176=_0x8a5b88;return this['credentials'][_0x23a176(0xf2)];}get[_0x8a5b88(0x105)](){const _0x946fd5=_0x8a5b88;return this[_0x946fd5(0xff)]['hmacAccessId'];}get[_0x8a5b88(0x108)](){const _0x1eba34=_0x8a5b88;return this[_0x1eba34(0xff)][_0x1eba34(0x108)];}[_0x8a5b88(0xef)](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0xc91198=_0x44d1;yield google_cloud_credentials_validator_1[_0xc91198(0x106)][_0xc91198(0xef)](this['credentials']);});}[_0x8a5b88(0xfd)](_0x3c00b4=![]){const _0x53e049=_0x8a5b88;if(_0x3c00b4)return{'bucketName':this[_0x53e049(0xff)][_0x53e049(0xf2)]};return this[_0x53e049(0xff)];}}exports['GoogleCloudCredentials']=GoogleCloudCredentials;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x1306d2=_0x3928;(function(_0x29b7a5,_0x4913c8){var _0x138374=_0x3928,_0x150028=_0x29b7a5();while(!![]){try{var _0x3f3ab1=parseInt(_0x138374(0x151))/0x1*(parseInt(_0x138374(0x157))/0x2)+parseInt(_0x138374(0x154))/0x3+-parseInt(_0x138374(0x14d))/0x4+parseInt(_0x138374(0x15c))/0x5*(parseInt(_0x138374(0x14b))/0x6)+parseInt(_0x138374(0x156))/0x7+-parseInt(_0x138374(0x15b))/0x8*(parseInt(_0x138374(0x153))/0x9)+-parseInt(_0x138374(0x155))/0xa;if(_0x3f3ab1===_0x4913c8)break;else _0x150028['push'](_0x150028['shift']());}catch(_0x2280fd){_0x150028['push'](_0x150028['shift']());}}}(_0x5534,0xc41d8));function _0x3928(_0x15e23d,_0x48cbb8){_0x15e23d=_0x15e23d-0x14a;var _0x553431=_0x5534();var _0x3928e9=_0x553431[_0x15e23d];return _0x3928e9;}function _0x5534(){var _0x4409de=['BaseCredentials','504vSSiiR','4261805XnygZo','./local-credentials','./google-cloud-credentials','6OyVYsy','AwsS3Credentials','2653376jnjalS','./aws-s3-credentials','./azure-credentials','LocalCredentials','668654XxjkwY','AzureCredentials','27171rdjsXq','2857137AnzVuZ','15383780YKMxLx','372113sOBNcD','4grQsOR','defineProperty','GoogleCloudCredentials'];_0x5534=function(){return _0x4409de;};return _0x5534();}Object[_0x1306d2(0x158)](exports,'__esModule',{'value':!![]}),exports[_0x1306d2(0x159)]=exports[_0x1306d2(0x152)]=exports['LocalCredentials']=exports['AwsS3Credentials']=exports['BaseCredentials']=void 0x0;var base_credentials_1=require('./base-credentials');Object[_0x1306d2(0x158)](exports,_0x1306d2(0x15a),{'enumerable':!![],'get':function(){var _0x2e29f8=_0x1306d2;return base_credentials_1[_0x2e29f8(0x15a)];}});var aws_s3_credentials_1=require(_0x1306d2(0x14e));Object['defineProperty'](exports,_0x1306d2(0x14c),{'enumerable':!![],'get':function(){return aws_s3_credentials_1['AwsS3Credentials'];}});var local_credentials_1=require(_0x1306d2(0x15d));Object['defineProperty'](exports,'LocalCredentials',{'enumerable':!![],'get':function(){var _0x45e4ff=_0x1306d2;return local_credentials_1[_0x45e4ff(0x150)];}});var azure_credentials_1=require(_0x1306d2(0x14f));Object[_0x1306d2(0x158)](exports,_0x1306d2(0x152),{'enumerable':!![],'get':function(){var _0x2b2df3=_0x1306d2;return azure_credentials_1[_0x2b2df3(0x152)];}});var google_cloud_credentials_1=require(_0x1306d2(0x14a));Object[_0x1306d2(0x158)](exports,_0x1306d2(0x159),{'enumerable':!![],'get':function(){var _0x2050e4=_0x1306d2;return google_cloud_credentials_1[_0x2050e4(0x159)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x1579c4=_0x3e48;(function(_0x3bea5b,_0x2b4215){const _0x4f86a5=_0x3e48,_0x239fdd=_0x3bea5b();while(!![]){try{const _0x4b96d6=parseInt(_0x4f86a5(0x1d3))/0x1+parseInt(_0x4f86a5(0x1dd))/0x2+-parseInt(_0x4f86a5(0x1d9))/0x3*(parseInt(_0x4f86a5(0x1de))/0x4)+-parseInt(_0x4f86a5(0x1da))/0x5+parseInt(_0x4f86a5(0x1df))/0x6+-parseInt(_0x4f86a5(0x1d4))/0x7*(parseInt(_0x4f86a5(0x1e2))/0x8)+parseInt(_0x4f86a5(0x1d5))/0x9*(-parseInt(_0x4f86a5(0x1db))/0xa);if(_0x4b96d6===_0x2b4215)break;else _0x239fdd['push'](_0x239fdd['shift']());}catch(_0x25fe26){_0x239fdd['push'](_0x239fdd['shift']());}}}(_0x4674,0x415d2));Object[_0x1579c4(0x1e0)](exports,_0x1579c4(0x1dc),{'value':!![]}),exports[_0x1579c4(0x1e1)]=void 0x0;const base_credentials_1=require('./base-credentials');class LocalCredentials extends base_credentials_1[_0x1579c4(0x1e3)]{[_0x1579c4(0x1d8)](){return null;}[_0x1579c4(0x1d7)](){const _0x3e0ba4=_0x1579c4;return Promise[_0x3e0ba4(0x1d6)](undefined);}}function _0x3e48(_0x5ab5cc,_0x14e550){_0x5ab5cc=_0x5ab5cc-0x1d3;const _0x46748b=_0x4674();let _0x3e4860=_0x46748b[_0x5ab5cc];return _0x3e4860;}exports[_0x1579c4(0x1e1)]=LocalCredentials;function _0x4674(){const _0xafdea3=['783392iACVuW','100YDSqju','2976000fzWwgd','defineProperty','LocalCredentials','3100576sQXUqG','BaseCredentials','404954hQwwRa','7WcJFcO','351zSPGtj','resolve','validate','getCredentials','29967BUvxme','1384120xqAPQt','28410rTJtLs','__esModule'];_0x4674=function(){return _0xafdea3;};return _0x4674();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0xadd155=_0x1719;(function(_0x22565d,_0x220bc1){const _0x134339=_0x1719,_0x170f53=_0x22565d();while(!![]){try{const _0x46b993=parseInt(_0x134339(0x76))/0x1+-parseInt(_0x134339(0x80))/0x2+-parseInt(_0x134339(0x7e))/0x3*(parseInt(_0x134339(0x92))/0x4)+parseInt(_0x134339(0x7b))/0x5+-parseInt(_0x134339(0x86))/0x6*(parseInt(_0x134339(0x90))/0x7)+-parseInt(_0x134339(0x8f))/0x8+parseInt(_0x134339(0x82))/0x9;if(_0x46b993===_0x220bc1)break;else _0x170f53['push'](_0x170f53['shift']());}catch(_0x116e37){_0x170f53['push'](_0x170f53['shift']());}}}(_0x2958,0x5dfb0));var __awaiter=this&&this['__awaiter']||function(_0x1c4061,_0x447017,_0x1eb748,_0x12a276){function _0xa418d0(_0x38ad78){return _0x38ad78 instanceof _0x1eb748?_0x38ad78:new _0x1eb748(function(_0x5608c9){_0x5608c9(_0x38ad78);});}return new(_0x1eb748||(_0x1eb748=Promise))(function(_0x357d04,_0x4bc99f){const _0x4c3085=_0x1719;function _0x335519(_0x19a3f3){const _0xb1312=_0x1719;try{_0x2a72a6(_0x12a276[_0xb1312(0x83)](_0x19a3f3));}catch(_0x37b7bb){_0x4bc99f(_0x37b7bb);}}function _0x34bc72(_0x366dfd){const _0x39aee5=_0x1719;try{_0x2a72a6(_0x12a276[_0x39aee5(0x7c)](_0x366dfd));}catch(_0x6e7424){_0x4bc99f(_0x6e7424);}}function _0x2a72a6(_0x305885){const _0x184a2c=_0x1719;_0x305885[_0x184a2c(0x6e)]?_0x357d04(_0x305885['value']):_0xa418d0(_0x305885[_0x184a2c(0x8b)])[_0x184a2c(0x7a)](_0x335519,_0x34bc72);}_0x2a72a6((_0x12a276=_0x12a276[_0x4c3085(0x81)](_0x1c4061,_0x447017||[]))[_0x4c3085(0x83)]());});},__importDefault=this&&this['__importDefault']||function(_0x5769d5){const _0x1e772d=_0x1719;return _0x5769d5&&_0x5769d5[_0x1e772d(0x75)]?_0x5769d5:{'default':_0x5769d5};};function _0x1719(_0x1827e1,_0xffbe23){_0x1827e1=_0x1827e1-0x6d;const _0x295883=_0x2958();let _0x17197c=_0x295883[_0x1827e1];return _0x17197c;}Object[_0xadd155(0x6d)](exports,_0xadd155(0x75),{'value':!![]}),exports[_0xadd155(0x85)]=void 0x0;const path_1=__importDefault(require('path')),utils_1=require(_0xadd155(0x89)),aws_s3_utils_1=require(_0xadd155(0x74)),_1=require('./'),client_s3_1=require(_0xadd155(0x77));class AwsS3Delete extends _1[_0xadd155(0x87)]{constructor(_0x5e8ab5,_0x1886d1,_0x4c74dc){const _0x4e206b=_0xadd155;super(_0x5e8ab5),this[_0x4e206b(0x78)]=_0x5e8ab5,this['OBJECTS_PER_CHUNK']=0x3e8,this[_0x4e206b(0x8c)]=_0x4c74dc||aws_s3_utils_1[_0x4e206b(0x79)][_0x4e206b(0x88)](_0x5e8ab5,_0x1886d1);}[_0xadd155(0x7d)](_0x13bb8d){return __awaiter(this,void 0x0,void 0x0,function*(){const _0xfbd218=_0x1719,_0x565d5f=_0x13bb8d[_0xfbd218(0x8e)](path_1[_0xfbd218(0x6f)][_0xfbd218(0x91)])[_0xfbd218(0x8a)](path_1[_0xfbd218(0x6f)][_0xfbd218(0x70)]['sep']),_0x3b7894=yield aws_s3_utils_1[_0xfbd218(0x79)][_0xfbd218(0x84)](_0x565d5f,this[_0xfbd218(0x78)][_0xfbd218(0x7f)],this[_0xfbd218(0x8c)]),_0x4119cd=utils_1[_0xfbd218(0x72)]['splitOnChunks'](_0x3b7894,this[_0xfbd218(0x73)]);for(const _0x364c11 of _0x4119cd){const _0x396399=_0x364c11[_0xfbd218(0x8d)](_0x2bb467=>({'Key':_0x2bb467})),_0x4342b2=new client_s3_1['DeleteObjectsCommand']({'Bucket':this[_0xfbd218(0x78)][_0xfbd218(0x7f)],'Delete':{'Objects':_0x396399}});yield this['s3Client'][_0xfbd218(0x71)](_0x4342b2);}});}}function _0x2958(){const _0x257dd2=['throw','execute','1857jBuniJ','bucketName','1460164UiCQmj','apply','9984159iHSaWk','next','getFilesPaths','AwsS3Delete','1031208NUitxE','BaseDelete','createS3Client','@flosum/utils','join','value','s3Client','map','split','1962952npTpfl','14tcOnMC','sep','3572ZloGGr','defineProperty','done','default','posix','send','ArrayUtils','OBJECTS_PER_CHUNK','../utils/aws-s3.utils','__esModule','641552PmGIEa','@aws-sdk/client-s3','credentials','AwsS3Utils','then','2529975SIBJrC'];_0x2958=function(){return _0x257dd2;};return _0x2958();}exports[_0xadd155(0x85)]=AwsS3Delete;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x52ed(_0x274cd9,_0x44dd65){_0x274cd9=_0x274cd9-0x138;const _0x247f4f=_0x247f();let _0x52edea=_0x247f4f[_0x274cd9];return _0x52edea;}const _0x221e7e=_0x52ed;(function(_0x5772ce,_0x570324){const _0xe3ac52=_0x52ed,_0x368687=_0x5772ce();while(!![]){try{const _0x4f6210=parseInt(_0xe3ac52(0x147))/0x1*(-parseInt(_0xe3ac52(0x14c))/0x2)+parseInt(_0xe3ac52(0x13a))/0x3*(-parseInt(_0xe3ac52(0x157))/0x4)+-parseInt(_0xe3ac52(0x13d))/0x5+parseInt(_0xe3ac52(0x14f))/0x6*(-parseInt(_0xe3ac52(0x148))/0x7)+-parseInt(_0xe3ac52(0x143))/0x8+parseInt(_0xe3ac52(0x139))/0x9*(parseInt(_0xe3ac52(0x152))/0xa)+parseInt(_0xe3ac52(0x158))/0xb;if(_0x4f6210===_0x570324)break;else _0x368687['push'](_0x368687['shift']());}catch(_0xa17432){_0x368687['push'](_0x368687['shift']());}}}(_0x247f,0x2fb44));function _0x247f(){const _0x70b4ed=['__awaiter','400DmnbXU','throw','split','6eYqATC','path','posix','160FIqtwL','createAzureBlobContainerClient','getAzureBlobsPaths','AzureDelete','containerClient','29324KFSIdS','8030770WySpuw','__importDefault','53028PTTbXK','33YycSfK','join','default','946030cIqFbo','AzureUtils','value','__esModule','credentials','deleteBlob','571792JFRlPA','../utils/azure.utils','execute','done','1202DjhWDs','330575CxAFbR','apply','sep'];_0x247f=function(){return _0x70b4ed;};return _0x247f();}var __awaiter=this&&this[_0x221e7e(0x14b)]||function(_0x584d6a,_0x320146,_0x430323,_0x556560){function _0x4ad22c(_0x2d7cfc){return _0x2d7cfc instanceof _0x430323?_0x2d7cfc:new _0x430323(function(_0x50972f){_0x50972f(_0x2d7cfc);});}return new(_0x430323||(_0x430323=Promise))(function(_0x57bc45,_0x1f7dba){const _0x471a17=_0x52ed;function _0x5d4758(_0x5aa3bb){try{_0x28294b(_0x556560['next'](_0x5aa3bb));}catch(_0xe02976){_0x1f7dba(_0xe02976);}}function _0x65e8b(_0x2517c4){const _0x379df8=_0x52ed;try{_0x28294b(_0x556560[_0x379df8(0x14d)](_0x2517c4));}catch(_0x4eb66){_0x1f7dba(_0x4eb66);}}function _0x28294b(_0xff2893){const _0x4bb04d=_0x52ed;_0xff2893[_0x4bb04d(0x146)]?_0x57bc45(_0xff2893[_0x4bb04d(0x13f)]):_0x4ad22c(_0xff2893[_0x4bb04d(0x13f)])['then'](_0x5d4758,_0x65e8b);}_0x28294b((_0x556560=_0x556560[_0x471a17(0x149)](_0x584d6a,_0x320146||[]))['next']());});},__importDefault=this&&this[_0x221e7e(0x138)]||function(_0x1531b6){const _0x2afbe1=_0x221e7e;return _0x1531b6&&_0x1531b6[_0x2afbe1(0x140)]?_0x1531b6:{'default':_0x1531b6};};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[_0x221e7e(0x155)]=void 0x0;const path_1=__importDefault(require(_0x221e7e(0x150))),_1=require('./'),azure_utils_1=require(_0x221e7e(0x144));class AzureDelete extends _1['BaseDelete']{constructor(_0x4e8a73){const _0x558165=_0x221e7e;super(_0x4e8a73),this[_0x558165(0x141)]=_0x4e8a73,this[_0x558165(0x156)]=azure_utils_1[_0x558165(0x13e)][_0x558165(0x153)](_0x4e8a73);}[_0x221e7e(0x145)](_0x360164){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x3b8abd=_0x52ed,_0x22bc45=_0x360164[_0x3b8abd(0x14e)](path_1[_0x3b8abd(0x13c)]['sep'])[_0x3b8abd(0x13b)](path_1[_0x3b8abd(0x13c)][_0x3b8abd(0x151)][_0x3b8abd(0x14a)]),_0x1f81c3=yield azure_utils_1[_0x3b8abd(0x13e)][_0x3b8abd(0x154)](_0x22bc45,this[_0x3b8abd(0x156)]);for(const _0x294a69 of _0x1f81c3){yield this[_0x3b8abd(0x156)][_0x3b8abd(0x142)](_0x294a69);}});}}exports[_0x221e7e(0x155)]=AzureDelete;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x5e1b8d=_0x1791;(function(_0x1fceea,_0x480efc){var _0x5a0604=_0x1791,_0xc833f2=_0x1fceea();while(!![]){try{var _0x375e70=parseInt(_0x5a0604(0xf9))/0x1+parseInt(_0x5a0604(0xfa))/0x2*(-parseInt(_0x5a0604(0xf3))/0x3)+-parseInt(_0x5a0604(0xfc))/0x4+parseInt(_0x5a0604(0xf6))/0x5+-parseInt(_0x5a0604(0xf7))/0x6+-parseInt(_0x5a0604(0xf4))/0x7+parseInt(_0x5a0604(0xf5))/0x8;if(_0x375e70===_0x480efc)break;else _0xc833f2['push'](_0xc833f2['shift']());}catch(_0x558d88){_0xc833f2['push'](_0xc833f2['shift']());}}}(_0x11ef,0x456c7));function _0x11ef(){var _0x322b3d=['941495TlFjXg','1841664sKhckW','BaseDelete','103209asAAPA','967626qXCqhs','credentials','113480FJdGbJ','3ndxAfz','1838319GnCEwQ','8596760PlSKwR'];_0x11ef=function(){return _0x322b3d;};return _0x11ef();}function _0x1791(_0x4abee0,_0x5d8545){_0x4abee0=_0x4abee0-0xf3;var _0x11ef97=_0x11ef();var _0x1791b2=_0x11ef97[_0x4abee0];return _0x1791b2;}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['BaseDelete']=void 0x0;class BaseDelete{constructor(_0xcb5603){var _0x11692e=_0x1791;this[_0x11692e(0xfb)]=_0xcb5603;}}exports[_0x5e1b8d(0xf8)]=BaseDelete;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x1e5220=_0x9c70;(function(_0x31401c,_0x35f831){const _0x3fb1d9=_0x9c70,_0xc97b4e=_0x31401c();while(!![]){try{const _0xed5ce9=parseInt(_0x3fb1d9(0x1f5))/0x1*(-parseInt(_0x3fb1d9(0x1ef))/0x2)+parseInt(_0x3fb1d9(0x1ec))/0x3+parseInt(_0x3fb1d9(0x1e6))/0x4+-parseInt(_0x3fb1d9(0x1f6))/0x5*(parseInt(_0x3fb1d9(0x200))/0x6)+parseInt(_0x3fb1d9(0x205))/0x7*(parseInt(_0x3fb1d9(0x1e7))/0x8)+-parseInt(_0x3fb1d9(0x1e9))/0x9+parseInt(_0x3fb1d9(0x1e5))/0xa*(parseInt(_0x3fb1d9(0x1ed))/0xb);if(_0xed5ce9===_0x35f831)break;else _0xc97b4e['push'](_0xc97b4e['shift']());}catch(_0x295e32){_0xc97b4e['push'](_0xc97b4e['shift']());}}}(_0xf54b,0x405a7));var __awaiter=this&&this[_0x1e5220(0x1f7)]||function(_0x1db486,_0x5d310d,_0x383bc4,_0x4c7391){function _0x1dd7cc(_0x26b6b3){return _0x26b6b3 instanceof _0x383bc4?_0x26b6b3:new _0x383bc4(function(_0x2edf2f){_0x2edf2f(_0x26b6b3);});}return new(_0x383bc4||(_0x383bc4=Promise))(function(_0x1714da,_0x16d21b){const _0x1b74f3=_0x9c70;function _0x336fbd(_0x1a3029){try{_0x371aff(_0x4c7391['next'](_0x1a3029));}catch(_0x5abfe7){_0x16d21b(_0x5abfe7);}}function _0x2b6f6d(_0x316bb8){try{_0x371aff(_0x4c7391['throw'](_0x316bb8));}catch(_0x592321){_0x16d21b(_0x592321);}}function _0x371aff(_0x3384c1){const _0x472c8b=_0x9c70;_0x3384c1[_0x472c8b(0x1fa)]?_0x1714da(_0x3384c1[_0x472c8b(0x1eb)]):_0x1dd7cc(_0x3384c1[_0x472c8b(0x1eb)])[_0x472c8b(0x1f3)](_0x336fbd,_0x2b6f6d);}_0x371aff((_0x4c7391=_0x4c7391[_0x1b74f3(0x1ea)](_0x1db486,_0x5d310d||[]))[_0x1b74f3(0x202)]());});},__importDefault=this&&this[_0x1e5220(0x1f1)]||function(_0x18b802){const _0xedff4f=_0x1e5220;return _0x18b802&&_0x18b802[_0xedff4f(0x1f0)]?_0x18b802:{'default':_0x18b802};};function _0xf54b(){const _0x2fe19a=['638964QLzZOg','8XzEOnY','execute','1477827OgZJmO','apply','value','584259UzkYQj','11hpRagG','split','46fefkHp','__esModule','__importDefault','BaseDelete','then','posix','18025AMzOYI','1989665xvkDxC','__awaiter','bucket','defineProperty','done','file','path','GoogleCloudDelete','createBucket','GoogleCloudUtils','6pHRTYc','default','next','sep','delete','2627849iOBQPA','5104010hJRwkU'];_0xf54b=function(){return _0x2fe19a;};return _0xf54b();}Object[_0x1e5220(0x1f9)](exports,_0x1e5220(0x1f0),{'value':!![]}),exports['GoogleCloudDelete']=void 0x0;function _0x9c70(_0x8df476,_0x581641){_0x8df476=_0x8df476-0x1e5;const _0xf54b8a=_0xf54b();let _0x9c70cc=_0xf54b8a[_0x8df476];return _0x9c70cc;}const path_1=__importDefault(require(_0x1e5220(0x1fc))),_1=require('./'),google_cloud_utils_1=require('../utils/google-cloud.utils');class GoogleCloudDelete extends _1[_0x1e5220(0x1f2)]{constructor(_0x505e6e){const _0x539c2a=_0x1e5220;super(_0x505e6e),this['credentials']=_0x505e6e,this[_0x539c2a(0x1f8)]=google_cloud_utils_1[_0x539c2a(0x1ff)][_0x539c2a(0x1fe)](_0x505e6e);}[_0x1e5220(0x1e8)](_0x2dcd9f){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x102497=_0x9c70,_0x3a7a39=_0x2dcd9f[_0x102497(0x1ee)](path_1['default']['sep'])['join'](path_1[_0x102497(0x201)][_0x102497(0x1f4)][_0x102497(0x203)]),_0x5e47bf=yield google_cloud_utils_1[_0x102497(0x1ff)]['getFilesPaths'](_0x3a7a39,this[_0x102497(0x1f8)]);for(const _0x131f36 of _0x5e47bf){yield this[_0x102497(0x1f8)][_0x102497(0x1fb)](_0x131f36)[_0x102497(0x204)]();}});}}exports[_0x1e5220(0x1fd)]=GoogleCloudDelete;
|
package/dist/delete/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function _0x4325(){var _0x32e861=['GoogleCloudDelete','2205nhrXnk','./local-delete','./aws-s3-delete','1031554kdrXSM','LocalDelete','1117578GIVjDY','511372NgYkPg','./base-delete','5xEfsVP','defineProperty','12IHSNCI','3726236KXkGuq','AzureDelete','9036090jVygIF','BaseDelete','7278736YmfsPK','./google-cloud-delete','32330EaylvV'];_0x4325=function(){return _0x32e861;};return _0x4325();}var _0x39c86d=_0x3eee;(function(_0x30f72c,_0x2db99a){var _0x2eb872=_0x3eee,_0x34f58b=_0x30f72c();while(!![]){try{var _0x4e52ce=parseInt(_0x2eb872(0x12e))/0x1+parseInt(_0x2eb872(0x11e))/0x2*(-parseInt(_0x2eb872(0x122))/0x3)+-parseInt(_0x2eb872(0x123))/0x4*(-parseInt(_0x2eb872(0x120))/0x5)+parseInt(_0x2eb872(0x11d))/0x6+parseInt(_0x2eb872(0x125))/0x7+-parseInt(_0x2eb872(0x127))/0x8+parseInt(_0x2eb872(0x12b))/0x9*(-parseInt(_0x2eb872(0x129))/0xa);if(_0x4e52ce===_0x2db99a)break;else _0x34f58b['push'](_0x34f58b['shift']());}catch(_0x4cc132){_0x34f58b['push'](_0x34f58b['shift']());}}}(_0x4325,0xaeb37));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[_0x39c86d(0x12a)]=exports[_0x39c86d(0x124)]=exports[_0x39c86d(0x12f)]=exports['AwsS3Delete']=exports[_0x39c86d(0x126)]=void 0x0;var base_delete_1=require(_0x39c86d(0x11f));Object[_0x39c86d(0x121)](exports,_0x39c86d(0x126),{'enumerable':!![],'get':function(){var _0x43d191=_0x39c86d;return base_delete_1[_0x43d191(0x126)];}});var aws_s3_delete_1=require(_0x39c86d(0x12d));Object['defineProperty'](exports,'AwsS3Delete',{'enumerable':!![],'get':function(){return aws_s3_delete_1['AwsS3Delete'];}});var local_delete_1=require(_0x39c86d(0x12c));Object[_0x39c86d(0x121)](exports,_0x39c86d(0x12f),{'enumerable':!![],'get':function(){var _0x11c414=_0x39c86d;return local_delete_1[_0x11c414(0x12f)];}});var azure_delete_1=require('./azure-delete');function _0x3eee(_0x56fbeb,_0x286e01){_0x56fbeb=_0x56fbeb-0x11d;var _0x432522=_0x4325();var _0x3eee36=_0x432522[_0x56fbeb];return _0x3eee36;}Object[_0x39c86d(0x121)](exports,'AzureDelete',{'enumerable':!![],'get':function(){var _0x5d02fe=_0x39c86d;return azure_delete_1[_0x5d02fe(0x124)];}});var google_cloud_delete_1=require(_0x39c86d(0x128));Object[_0x39c86d(0x121)](exports,_0x39c86d(0x12a),{'enumerable':!![],'get':function(){var _0x1af4c6=_0x39c86d;return google_cloud_delete_1[_0x1af4c6(0x12a)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x595c(){const _0x168072=['2qYTzfD','LocalDelete','2375988nBunEi','FsUtils','574uQxUhR','1090ESLFJA','__esModule','value','410169PWQXdb','422265QORmUB','throw','apply','next','28104IdsddX','32787GcEyRN','fs/promises','@flosum/utils','205lHKSDL','__awaiter','then','20556KUXUon','87498JMqcun','1694cdAsrO'];_0x595c=function(){return _0x168072;};return _0x595c();}const _0x4afc13=_0x33ca;(function(_0x346c69,_0x56de29){const _0x923329=_0x33ca,_0xf3cc33=_0x346c69();while(!![]){try{const _0x4a200b=-parseInt(_0x923329(0x12e))/0x1*(-parseInt(_0x923329(0x125))/0x2)+parseInt(_0x923329(0x12d))/0x3+-parseInt(_0x923329(0x127))/0x4+-parseInt(_0x923329(0x136))/0x5*(parseInt(_0x923329(0x123))/0x6)+-parseInt(_0x923329(0x129))/0x7*(-parseInt(_0x923329(0x132))/0x8)+parseInt(_0x923329(0x133))/0x9*(parseInt(_0x923329(0x12a))/0xa)+parseInt(_0x923329(0x124))/0xb*(parseInt(_0x923329(0x139))/0xc);if(_0x4a200b===_0x56de29)break;else _0xf3cc33['push'](_0xf3cc33['shift']());}catch(_0x54e3f6){_0xf3cc33['push'](_0xf3cc33['shift']());}}}(_0x595c,0x4d28b));var __awaiter=this&&this[_0x4afc13(0x137)]||function(_0xcf596f,_0x220b95,_0x453ab4,_0x41880a){function _0x49d752(_0x1c3f24){return _0x1c3f24 instanceof _0x453ab4?_0x1c3f24:new _0x453ab4(function(_0x5792bd){_0x5792bd(_0x1c3f24);});}return new(_0x453ab4||(_0x453ab4=Promise))(function(_0x3c3d5f,_0x2ce60a){const _0x2d2db4=_0x33ca;function _0x15606a(_0x298b24){const _0x1989ed=_0x33ca;try{_0x5300a3(_0x41880a[_0x1989ed(0x131)](_0x298b24));}catch(_0x27bc50){_0x2ce60a(_0x27bc50);}}function _0x290329(_0x2f9e4e){const _0x29c002=_0x33ca;try{_0x5300a3(_0x41880a[_0x29c002(0x12f)](_0x2f9e4e));}catch(_0x23ee3d){_0x2ce60a(_0x23ee3d);}}function _0x5300a3(_0x519296){const _0x18f329=_0x33ca;_0x519296['done']?_0x3c3d5f(_0x519296[_0x18f329(0x12c)]):_0x49d752(_0x519296['value'])[_0x18f329(0x138)](_0x15606a,_0x290329);}_0x5300a3((_0x41880a=_0x41880a[_0x2d2db4(0x130)](_0xcf596f,_0x220b95||[]))[_0x2d2db4(0x131)]());});};Object['defineProperty'](exports,_0x4afc13(0x12b),{'value':!![]}),exports[_0x4afc13(0x126)]=void 0x0;function _0x33ca(_0x9815be,_0x2cb155){_0x9815be=_0x9815be-0x123;const _0x595c23=_0x595c();let _0x33cabc=_0x595c23[_0x9815be];return _0x33cabc;}const promises_1=require(_0x4afc13(0x134)),utils_1=require(_0x4afc13(0x135)),_1=require('./');class LocalDelete extends _1['BaseDelete']{['execute'](_0x82e1d0){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x24177a=_0x33ca;if(yield utils_1[_0x24177a(0x128)]['isExistsPath'](_0x82e1d0))yield(0x0,promises_1['rm'])(_0x82e1d0,{'recursive':!![]});});}}exports[_0x4afc13(0x126)]=LocalDelete;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const _0x1b62f1=_0x4068;function _0x4068(_0x48f04e,_0x4218ee){_0x48f04e=_0x48f04e-0x6f;const _0x14c345=_0x14c3();let _0x40686d=_0x14c345[_0x48f04e];return _0x40686d;}(function(_0x28df0b,_0x23d4fb){const _0x3d80ff=_0x4068,_0x556ca3=_0x28df0b();while(!![]){try{const _0x559d03=-parseInt(_0x3d80ff(0x70))/0x1*(-parseInt(_0x3d80ff(0x90))/0x2)+parseInt(_0x3d80ff(0x91))/0x3*(parseInt(_0x3d80ff(0x75))/0x4)+parseInt(_0x3d80ff(0x7a))/0x5+parseInt(_0x3d80ff(0x7f))/0x6+parseInt(_0x3d80ff(0x86))/0x7+-parseInt(_0x3d80ff(0x85))/0x8+-parseInt(_0x3d80ff(0x84))/0x9;if(_0x559d03===_0x23d4fb)break;else _0x556ca3['push'](_0x556ca3['shift']());}catch(_0x40d3e6){_0x556ca3['push'](_0x556ca3['shift']());}}}(_0x14c3,0x83310));var __awaiter=this&&this[_0x1b62f1(0x80)]||function(_0xacb20c,_0xe2a65,_0x4f11d0,_0x3800a5){function _0x59ef3a(_0x34cfbb){return _0x34cfbb instanceof _0x4f11d0?_0x34cfbb:new _0x4f11d0(function(_0x2fdbfe){_0x2fdbfe(_0x34cfbb);});}return new(_0x4f11d0||(_0x4f11d0=Promise))(function(_0x359bc1,_0x5506a3){const _0x47d6f6=_0x4068;function _0x48c1cb(_0x2954ae){const _0x695e8a=_0x4068;try{_0x153d30(_0x3800a5[_0x695e8a(0x6f)](_0x2954ae));}catch(_0x4c9b3f){_0x5506a3(_0x4c9b3f);}}function _0x3fce01(_0x2e32fd){const _0x1d5375=_0x4068;try{_0x153d30(_0x3800a5[_0x1d5375(0x8d)](_0x2e32fd));}catch(_0x5c6079){_0x5506a3(_0x5c6079);}}function _0x153d30(_0x309fbe){const _0x5b769c=_0x4068;_0x309fbe[_0x5b769c(0x82)]?_0x359bc1(_0x309fbe[_0x5b769c(0x8e)]):_0x59ef3a(_0x309fbe[_0x5b769c(0x8e)])[_0x5b769c(0x89)](_0x48c1cb,_0x3fce01);}_0x153d30((_0x3800a5=_0x3800a5['apply'](_0xacb20c,_0xe2a65||[]))[_0x47d6f6(0x6f)]());});},__importDefault=this&&this['__importDefault']||function(_0x13c2cf){const _0x353549=_0x1b62f1;return _0x13c2cf&&_0x13c2cf[_0x353549(0x7e)]?_0x13c2cf:{'default':_0x13c2cf};};Object[_0x1b62f1(0x77)](exports,_0x1b62f1(0x7e),{'value':!![]}),exports[_0x1b62f1(0x76)]=void 0x0;const path_1=__importDefault(require(_0x1b62f1(0x8f))),_1=require('./'),lib_storage_1=require(_0x1b62f1(0x72)),aws_s3_utils_1=require(_0x1b62f1(0x78));class AwsS3Deploy extends _1['BaseDeploy']{constructor(_0x122fe4,_0x48652f,_0x46c46e,_0x2913d2){const _0x15b47b=_0x1b62f1;super(_0x122fe4),this[_0x15b47b(0x8c)]=_0x122fe4,this[_0x15b47b(0x7b)]=_0x48652f,this['s3Client']=_0x2913d2||aws_s3_utils_1[_0x15b47b(0x71)][_0x15b47b(0x7d)](_0x122fe4,_0x46c46e);}['upload'](_0x542adc,_0x2ec8c4){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x234d61=_0x4068,_0x5c403f=new lib_storage_1[(_0x234d61(0x8b))]({'client':this[_0x234d61(0x81)],'params':{'Bucket':this[_0x234d61(0x8c)][_0x234d61(0x83)],'Key':_0x2ec8c4,'Body':_0x542adc,'StorageClass':this[_0x234d61(0x7b)]}});yield _0x5c403f['done']();});}[_0x1b62f1(0x88)](_0x4df048,_0x36fc58){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x2cdd5a=_0x4068;try{const _0x326858=_0x36fc58[_0x2cdd5a(0x79)](path_1[_0x2cdd5a(0x8a)]['sep'])[_0x2cdd5a(0x7c)](path_1[_0x2cdd5a(0x8a)][_0x2cdd5a(0x74)][_0x2cdd5a(0x87)]);yield this[_0x2cdd5a(0x73)](_0x4df048,_0x326858);}catch(_0x42de97){throw _0x42de97;}});}}exports[_0x1b62f1(0x76)]=AwsS3Deploy;function _0x14c3(){const _0x2a8862=['2713105dHxpXg','storageClass','join','createS3Client','__esModule','5700414biNzRN','__awaiter','s3Client','done','bucketName','17006247KtHGIu','5895320mWwMrb','4901659YdPAtX','sep','execute','then','default','Upload','credentials','throw','value','path','32NALQel','3zJgblU','next','15311NMmfXs','AwsS3Utils','@aws-sdk/lib-storage','upload','posix','2903820JhhnMY','AwsS3Deploy','defineProperty','../utils/aws-s3.utils','split'];_0x14c3=function(){return _0x2a8862;};return _0x14c3();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x2925e3=_0x19ac;(function(_0x4c0a5e,_0x5926da){const _0x2ac3e8=_0x19ac,_0x88b4ab=_0x4c0a5e();while(!![]){try{const _0x56444f=-parseInt(_0x2ac3e8(0x148))/0x1+-parseInt(_0x2ac3e8(0x14f))/0x2*(parseInt(_0x2ac3e8(0x14c))/0x3)+parseInt(_0x2ac3e8(0x15b))/0x4*(-parseInt(_0x2ac3e8(0x14b))/0x5)+parseInt(_0x2ac3e8(0x15d))/0x6*(-parseInt(_0x2ac3e8(0x162))/0x7)+parseInt(_0x2ac3e8(0x169))/0x8+parseInt(_0x2ac3e8(0x159))/0x9*(-parseInt(_0x2ac3e8(0x158))/0xa)+parseInt(_0x2ac3e8(0x167))/0xb;if(_0x56444f===_0x5926da)break;else _0x88b4ab['push'](_0x88b4ab['shift']());}catch(_0x1bb95a){_0x88b4ab['push'](_0x88b4ab['shift']());}}}(_0x4554,0x56ccb));var __awaiter=this&&this[_0x2925e3(0x16a)]||function(_0x3c38e8,_0x410f5b,_0x267ca7,_0x356c98){function _0x1e9c02(_0x3967fd){return _0x3967fd instanceof _0x267ca7?_0x3967fd:new _0x267ca7(function(_0x40c26){_0x40c26(_0x3967fd);});}return new(_0x267ca7||(_0x267ca7=Promise))(function(_0x695480,_0x1559be){const _0x3c2933=_0x19ac;function _0x217a9a(_0x5eb67b){const _0x26aadd=_0x19ac;try{_0x3d535e(_0x356c98[_0x26aadd(0x15c)](_0x5eb67b));}catch(_0x1ac07c){_0x1559be(_0x1ac07c);}}function _0x57cf67(_0xaeb953){const _0x19dd96=_0x19ac;try{_0x3d535e(_0x356c98[_0x19dd96(0x150)](_0xaeb953));}catch(_0x26f7e4){_0x1559be(_0x26f7e4);}}function _0x3d535e(_0x48bd11){const _0x4c5f55=_0x19ac;_0x48bd11['done']?_0x695480(_0x48bd11['value']):_0x1e9c02(_0x48bd11[_0x4c5f55(0x156)])[_0x4c5f55(0x14d)](_0x217a9a,_0x57cf67);}_0x3d535e((_0x356c98=_0x356c98[_0x3c2933(0x154)](_0x3c38e8,_0x410f5b||[]))['next']());});},__importDefault=this&&this[_0x2925e3(0x160)]||function(_0x580ac6){const _0x3cc910=_0x2925e3;return _0x580ac6&&_0x580ac6[_0x3cc910(0x14a)]?_0x580ac6:{'default':_0x580ac6};};Object[_0x2925e3(0x14e)](exports,_0x2925e3(0x14a),{'value':!![]}),exports[_0x2925e3(0x15e)]=void 0x0;const path_1=__importDefault(require(_0x2925e3(0x15a))),_1=require('./'),azure_utils_1=require('../utils/azure.utils');function _0x4554(){const _0x5337a0=['throw','sep','join','BaseDeploy','apply','uploadStream','value','getBlockBlobClient','67170gBPhHl','72mpnQDv','path','4erceAE','next','439446wlhugk','AzureDeploy','byteLength','__importDefault','createAzureBlobContainerClient','21MwVCQh','credentials','default','upload','isBuffer','12126686QawCCY','containerClient','2046432ismyRl','__awaiter','56443UIzicY','posix','__esModule','1985120jJYxge','827319PDFxXr','then','defineProperty','2cunzDp'];_0x4554=function(){return _0x5337a0;};return _0x4554();}function _0x19ac(_0x2cc824,_0x2109c4){_0x2cc824=_0x2cc824-0x148;const _0x455421=_0x4554();let _0x19ac6e=_0x455421[_0x2cc824];return _0x19ac6e;}class AzureDeploy extends _1[_0x2925e3(0x153)]{constructor(_0x23b97c){const _0xf5300e=_0x2925e3;super(_0x23b97c),this[_0xf5300e(0x163)]=_0x23b97c,this['containerClient']=azure_utils_1['AzureUtils'][_0xf5300e(0x161)](this[_0xf5300e(0x163)]);}['upload'](_0x4c1521,_0x5cf76f){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x684dbf=_0x19ac,_0x399a3b=this[_0x684dbf(0x168)][_0x684dbf(0x157)](_0x5cf76f);Buffer[_0x684dbf(0x166)](_0x4c1521)?yield _0x399a3b[_0x684dbf(0x165)](_0x4c1521,_0x4c1521[_0x684dbf(0x15f)]):yield _0x399a3b[_0x684dbf(0x155)](_0x4c1521);});}['execute'](_0x21e1d8,_0x4b892b){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x46a98f=_0x19ac,_0x2e5df7=_0x4b892b['split'](path_1[_0x46a98f(0x164)][_0x46a98f(0x151)])[_0x46a98f(0x152)](path_1[_0x46a98f(0x164)][_0x46a98f(0x149)][_0x46a98f(0x151)]);yield this[_0x46a98f(0x165)](_0x21e1d8,_0x2e5df7);});}}exports[_0x2925e3(0x15e)]=AzureDeploy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x126620=_0x565f;(function(_0x126836,_0x36eceb){var _0x8b3181=_0x565f,_0xf68d7e=_0x126836();while(!![]){try{var _0x351290=-parseInt(_0x8b3181(0x1b2))/0x1*(parseInt(_0x8b3181(0x1a9))/0x2)+-parseInt(_0x8b3181(0x1a6))/0x3*(-parseInt(_0x8b3181(0x1af))/0x4)+-parseInt(_0x8b3181(0x1a5))/0x5+-parseInt(_0x8b3181(0x1ad))/0x6*(-parseInt(_0x8b3181(0x1ae))/0x7)+parseInt(_0x8b3181(0x1a7))/0x8*(-parseInt(_0x8b3181(0x1b0))/0x9)+-parseInt(_0x8b3181(0x1a8))/0xa+-parseInt(_0x8b3181(0x1ac))/0xb*(-parseInt(_0x8b3181(0x1ab))/0xc);if(_0x351290===_0x36eceb)break;else _0xf68d7e['push'](_0xf68d7e['shift']());}catch(_0x3de8ed){_0xf68d7e['push'](_0xf68d7e['shift']());}}}(_0xe9db,0x8ffca));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['BaseDeploy']=void 0x0;class BaseDeploy{constructor(_0x34a7b1){var _0x44dd08=_0x565f;this[_0x44dd08(0x1b1)]=_0x34a7b1;}}function _0xe9db(){var _0xc64b14=['1066315zMwvXH','6faEvPq','970784XJUSPW','9314770RwlNpJ','2apjBRv','BaseDeploy','9264ettAoh','29117wLlSzE','3159612hvnBfR','7yNhZuJ','1612032VcMMAu','72TDGMNX','credentials','670808jCgRee'];_0xe9db=function(){return _0xc64b14;};return _0xe9db();}function _0x565f(_0x19cfd3,_0x278859){_0x19cfd3=_0x19cfd3-0x1a5;var _0xe9db9f=_0xe9db();var _0x565f4e=_0xe9db9f[_0x19cfd3];return _0x565f4e;}exports[_0x126620(0x1aa)]=BaseDeploy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x3f46fe=_0x3ec0;(function(_0x1cc6c2,_0x50ff5c){const _0x696515=_0x3ec0,_0x82541a=_0x1cc6c2();while(!![]){try{const _0x546a46=parseInt(_0x696515(0x119))/0x1+-parseInt(_0x696515(0x116))/0x2+parseInt(_0x696515(0x102))/0x3*(-parseInt(_0x696515(0x10a))/0x4)+-parseInt(_0x696515(0x10d))/0x5+parseInt(_0x696515(0x104))/0x6+-parseInt(_0x696515(0x10e))/0x7+parseInt(_0x696515(0x106))/0x8;if(_0x546a46===_0x50ff5c)break;else _0x82541a['push'](_0x82541a['shift']());}catch(_0x2bc766){_0x82541a['push'](_0x82541a['shift']());}}}(_0x4005,0x863ab));var __awaiter=this&&this[_0x3f46fe(0x10b)]||function(_0x179b83,_0x228878,_0x4c68a8,_0x1bd565){function _0x481d7e(_0x23807c){return _0x23807c instanceof _0x4c68a8?_0x23807c:new _0x4c68a8(function(_0x57b0e8){_0x57b0e8(_0x23807c);});}return new(_0x4c68a8||(_0x4c68a8=Promise))(function(_0x521cc4,_0x56109c){const _0x134fd2=_0x3ec0;function _0x5e77e2(_0x3c3c65){const _0x497ebf=_0x3ec0;try{_0x4008dd(_0x1bd565[_0x497ebf(0x112)](_0x3c3c65));}catch(_0x53cb80){_0x56109c(_0x53cb80);}}function _0x252c70(_0x387e29){try{_0x4008dd(_0x1bd565['throw'](_0x387e29));}catch(_0x4879dc){_0x56109c(_0x4879dc);}}function _0x4008dd(_0x516d89){const _0x105f1e=_0x3ec0;_0x516d89['done']?_0x521cc4(_0x516d89[_0x105f1e(0x113)]):_0x481d7e(_0x516d89[_0x105f1e(0x113)])[_0x105f1e(0x101)](_0x5e77e2,_0x252c70);}_0x4008dd((_0x1bd565=_0x1bd565[_0x134fd2(0x107)](_0x179b83,_0x228878||[]))[_0x134fd2(0x112)]());});},__importDefault=this&&this[_0x3f46fe(0x110)]||function(_0x4b47f8){const _0x47c9d0=_0x3f46fe;return _0x4b47f8&&_0x4b47f8[_0x47c9d0(0x11a)]?_0x4b47f8:{'default':_0x4b47f8};};Object[_0x3f46fe(0x105)](exports,_0x3f46fe(0x11a),{'value':!![]}),exports['GoogleCloudDeploy']=void 0x0;const path_1=__importDefault(require(_0x3f46fe(0x118))),_1=require('./'),google_cloud_utils_1=require(_0x3f46fe(0x109));function _0x4005(){const _0x40a0ae=['8WkvqSI','__awaiter','createBucket','1969025dLPcuR','173754skJKrX','GoogleCloudUtils','__importDefault','default','next','value','GoogleCloudDeploy','bucket','1013622SeJQgZ','split','path','1658BJtqMk','__esModule','credentials','posix','BaseDeploy','sep','then','1580571sJbETL','upload','3356142fyrTmV','defineProperty','15743520dKPYiN','apply','file','../utils/google-cloud.utils'];_0x4005=function(){return _0x40a0ae;};return _0x4005();}class GoogleCloudDeploy extends _1[_0x3f46fe(0x11d)]{constructor(_0x408fae){const _0x3dc3c5=_0x3f46fe;super(_0x408fae),this[_0x3dc3c5(0x11b)]=_0x408fae,this[_0x3dc3c5(0x115)]=google_cloud_utils_1[_0x3dc3c5(0x10f)][_0x3dc3c5(0x10c)](this[_0x3dc3c5(0x11b)]);}[_0x3f46fe(0x103)](_0x16e699,_0x20c626){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x190657=_0x3ec0;yield this[_0x190657(0x115)][_0x190657(0x108)](_0x20c626)['save'](_0x16e699);});}['execute'](_0x42add5,_0x4b625e){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x3fa14a=_0x3ec0,_0x2165cf=_0x4b625e[_0x3fa14a(0x117)](path_1[_0x3fa14a(0x111)][_0x3fa14a(0x100)])['join'](path_1[_0x3fa14a(0x111)][_0x3fa14a(0x11c)]['sep']);yield this[_0x3fa14a(0x103)](_0x42add5,_0x2165cf);});}}function _0x3ec0(_0x3e682c,_0x5de68c){_0x3e682c=_0x3e682c-0x100;const _0x4005f2=_0x4005();let _0x3ec078=_0x4005f2[_0x3e682c];return _0x3ec078;}exports[_0x3f46fe(0x114)]=GoogleCloudDeploy;
|