@hotmeshio/hotmesh 0.3.18 → 0.3.19

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.
Files changed (81) hide show
  1. package/README.md +160 -63
  2. package/build/modules/key.js +1 -1
  3. package/build/modules/utils.js +1 -1
  4. package/build/package.json +6 -4
  5. package/build/services/activities/activity.js +1 -1
  6. package/build/services/activities/await.js +1 -1
  7. package/build/services/activities/cycle.js +1 -1
  8. package/build/services/activities/hook.js +1 -1
  9. package/build/services/activities/index.js +1 -1
  10. package/build/services/activities/interrupt.js +1 -1
  11. package/build/services/activities/signal.js +1 -1
  12. package/build/services/activities/trigger.js +1 -1
  13. package/build/services/activities/worker.js +1 -1
  14. package/build/services/collator/index.js +1 -1
  15. package/build/services/compiler/deployer.js +1 -1
  16. package/build/services/compiler/index.js +1 -1
  17. package/build/services/compiler/validator.js +1 -1
  18. package/build/services/engine/index.d.ts +1 -1
  19. package/build/services/engine/index.js +1 -1
  20. package/build/services/exporter/index.js +1 -1
  21. package/build/services/mapper/index.js +1 -1
  22. package/build/services/meshflow/exporter.js +1 -1
  23. package/build/services/pipe/functions/array.js +1 -1
  24. package/build/services/pipe/functions/bitwise.js +1 -1
  25. package/build/services/pipe/functions/conditional.js +1 -1
  26. package/build/services/pipe/functions/cron.js +1 -1
  27. package/build/services/pipe/functions/date.js +1 -1
  28. package/build/services/pipe/functions/index.js +1 -1
  29. package/build/services/pipe/functions/json.js +1 -1
  30. package/build/services/pipe/functions/logical.js +1 -1
  31. package/build/services/pipe/functions/math.js +1 -1
  32. package/build/services/pipe/functions/number.js +1 -1
  33. package/build/services/pipe/functions/object.js +1 -1
  34. package/build/services/pipe/functions/string.js +1 -1
  35. package/build/services/pipe/functions/symbol.js +1 -1
  36. package/build/services/pipe/functions/unary.js +1 -1
  37. package/build/services/pipe/index.js +1 -1
  38. package/build/services/quorum/index.d.ts +1 -1
  39. package/build/services/quorum/index.js +1 -1
  40. package/build/services/reporter/index.js +1 -1
  41. package/build/services/router/index.js +1 -1
  42. package/build/services/search/providers/postgres/postgres.js +1 -1
  43. package/build/services/search/providers/redis/ioredis.js +1 -1
  44. package/build/services/search/providers/redis/redis.js +1 -1
  45. package/build/services/serializer/index.js +1 -1
  46. package/build/services/store/providers/postgres/kvsql.js +1 -1
  47. package/build/services/store/providers/postgres/kvtables.d.ts +1 -0
  48. package/build/services/store/providers/postgres/kvtables.js +1 -1
  49. package/build/services/store/providers/postgres/kvtransaction.js +1 -1
  50. package/build/services/store/providers/postgres/kvtypes/hash.d.ts +1 -0
  51. package/build/services/store/providers/postgres/kvtypes/hash.js +1 -1
  52. package/build/services/store/providers/postgres/kvtypes/list.js +1 -1
  53. package/build/services/store/providers/postgres/kvtypes/string.js +1 -1
  54. package/build/services/store/providers/postgres/kvtypes/zset.js +1 -1
  55. package/build/services/store/providers/postgres/postgres.js +1 -1
  56. package/build/services/store/providers/redis/_base.js +1 -1
  57. package/build/services/store/providers/redis/ioredis.js +1 -1
  58. package/build/services/store/providers/redis/redis.js +1 -1
  59. package/build/services/store/providers/store-initializable.js +1 -1
  60. package/build/services/stream/providers/nats/nats.js +1 -1
  61. package/build/services/stream/providers/postgres/postgres.d.ts +1 -0
  62. package/build/services/stream/providers/postgres/postgres.js +1 -1
  63. package/build/services/stream/providers/redis/ioredis.js +1 -1
  64. package/build/services/stream/providers/redis/redis.js +1 -1
  65. package/build/services/stream/providers/stream-initializable.js +1 -1
  66. package/build/services/sub/factory.d.ts +2 -2
  67. package/build/services/sub/factory.js +8 -4
  68. package/build/services/sub/index.d.ts +3 -2
  69. package/build/services/sub/providers/postgres/postgres.d.ts +18 -0
  70. package/build/services/sub/providers/postgres/postgres.js +1 -0
  71. package/build/services/sub/providers/redis/ioredis.d.ts +1 -1
  72. package/build/services/sub/providers/redis/ioredis.js +1 -1
  73. package/build/services/sub/providers/redis/redis.d.ts +1 -1
  74. package/build/services/sub/providers/redis/redis.js +1 -1
  75. package/build/services/task/index.js +1 -1
  76. package/build/services/telemetry/index.js +1 -1
  77. package/build/services/worker/index.d.ts +1 -1
  78. package/build/services/worker/index.js +1 -1
  79. package/build/types/redis.d.ts +8 -8
  80. package/package.json +6 -4
  81. package/types/redis.ts +8 -8
@@ -1 +1 @@
1
- 'use strict';(function(_0x48b863,_0x4b0cc9){const _0x1b1569=_0x59b2,_0x10e5cc=_0x48b863();while(!![]){try{const _0x3592f9=-parseInt(_0x1b1569(0xcd))/0x1+parseInt(_0x1b1569(0xce))/0x2+parseInt(_0x1b1569(0xd0))/0x3+-parseInt(_0x1b1569(0xd2))/0x4+-parseInt(_0x1b1569(0xcf))/0x5+-parseInt(_0x1b1569(0xd3))/0x6+-parseInt(_0x1b1569(0xcc))/0x7*(-parseInt(_0x1b1569(0xd1))/0x8);if(_0x3592f9===_0x4b0cc9)break;else _0x10e5cc['push'](_0x10e5cc['shift']());}catch(_0x1607cd){_0x10e5cc['push'](_0x10e5cc['shift']());}}}(_0x20d0,0x33fd5));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['Activity']=void 0x0;function _0x59b2(_0x217ff5,_0x2c9b84){const _0x20d095=_0x20d0();return _0x59b2=function(_0x59b2a4,_0x2c6129){_0x59b2a4=_0x59b2a4-0xcc;let _0x3e7a57=_0x20d095[_0x59b2a4];return _0x3e7a57;},_0x59b2(_0x217ff5,_0x2c9b84);}const enums_1=require('../../modules/enums'),errors_1=require('../../modules/errors'),utils_1=require('../../modules/utils'),collator_1=require('../collator'),mapper_1=require('../mapper'),pipe_1=require('../pipe'),serializer_1=require('../serializer'),telemetry_1=require('../telemetry'),stream_1=require('../../types/stream');class Activity{constructor(_0x4057e9,_0x3b63eb,_0x3a92da,_0x5d3ff0,_0x3bf558,_0x25e7a5){this['status']=stream_1['StreamStatus']['SUCCESS'],this['code']=0xc8,this['adjacentIndex']=0x0,this['config']=_0x4057e9,this['data']=_0x3b63eb,this['metadata']=_0x3a92da,this['hook']=_0x5d3ff0,this['engine']=_0x3bf558,this['context']=_0x25e7a5||{'data':{},'metadata':{}},this['logger']=_0x3bf558['logger'],this['store']=_0x3bf558['store'];}['setLeg'](_0x31399c){this['leg']=_0x31399c;}['mapStatusThreshold'](){if(this['config']['statusThreshold']!==undefined){const _0x273ef0=pipe_1['Pipe']['resolve'](this['config']['statusThreshold'],this['context']);if(_0x273ef0!==undefined&&!isNaN(Number(_0x273ef0)))return _0x273ef0;}return 0x0;}async['verifyEntry'](){this['setLeg'](0x1),await this['getState']();const _0x3333c6=this['mapStatusThreshold']();try{collator_1['CollatorService']['assertJobActive'](this['context']['metadata']['js'],this['context']['metadata']['jid'],this['metadata']['aid'],_0x3333c6);}catch(_0x203d0b){await collator_1['CollatorService']['notarizeEntry'](this);if(_0x3333c6>0x0){if(this['context']['metadata']['js']===_0x3333c6){const _0x3fa0fc=await this['setStatus'](-_0x3333c6);Number(_0x3fa0fc)===0x0&&await this['engine']['runJobCompletionTasks'](this['context']);}}else throw _0x203d0b;return;}await collator_1['CollatorService']['notarizeEntry'](this);}async['verifyReentry'](){const _0x3ec99f=this['context']['metadata']['guid'];return this['setLeg'](0x2),await this['getState'](),collator_1['CollatorService']['assertJobActive'](this['context']['metadata']['js'],this['context']['metadata']['jid'],this['metadata']['aid']),await collator_1['CollatorService']['notarizeReentry'](this,_0x3ec99f);}async['processEvent'](_0x4a969f=stream_1['StreamStatus']['SUCCESS'],_0x51e0dc=0xc8,_0x261f4d='output'){this['setLeg'](0x2);const _0xcdbe03=this['context']['metadata']['jid'];if(!_0xcdbe03){this['logger']['error']('activity-process-event-error',{'message':'job\x20id\x20is\x20undefined'});return;}const _0x306256=this['metadata']['aid'];this['status']=_0x4a969f,this['code']=_0x51e0dc,this['logger']['debug']('activity-process-event',{'topic':this['config']['subtype'],'jid':_0xcdbe03,'aid':_0x306256,'status':_0x4a969f,'code':_0x51e0dc});let _0x1a6618;try{const _0xf1a665=await this['verifyReentry']();this['adjacentIndex']=collator_1['CollatorService']['getDimensionalIndex'](_0xf1a665),_0x1a6618=new telemetry_1['TelemetryService'](this['engine']['appId'],this['config'],this['metadata'],this['context']),_0x1a6618['startActivitySpan'](this['leg']);let _0x40c540;if(_0x4a969f===stream_1['StreamStatus']['PENDING'])_0x40c540=await this['processPending'](_0x261f4d);else _0x4a969f===stream_1['StreamStatus']['SUCCESS']?_0x40c540=await this['processSuccess'](_0x261f4d):_0x40c540=await this['processError']();this['transitionAdjacent'](_0x40c540,_0x1a6618);}catch(_0x3278f3){if(_0x3278f3 instanceof errors_1['CollationError']){this['logger']['info']('process-event-'+_0x3278f3['fault']+'-error',{..._0x3278f3});return;}else{if(_0x3278f3 instanceof errors_1['InactiveJobError']){this['logger']['info']('process-event-inactive-job-error',{..._0x3278f3});return;}else{if(_0x3278f3 instanceof errors_1['GenerationalError']){this['logger']['info']('process-event-generational-job-error',{..._0x3278f3});return;}else{if(_0x3278f3 instanceof errors_1['GetStateError']){this['logger']['info']('process-event-get-job-error',{..._0x3278f3});return;}}}}this['logger']['error']('activity-process-event-error',{..._0x3278f3,'message':_0x3278f3['message'],'stack':_0x3278f3['stack'],'name':_0x3278f3['name']}),_0x1a6618?.['setActivityError'](_0x3278f3['message']);throw _0x3278f3;}finally{_0x1a6618?.['endActivitySpan'](),this['logger']['debug']('activity-process-event-end',{'jid':_0xcdbe03,'aid':_0x306256});}}async['processPending'](_0x43e38b){this['bindActivityData'](_0x43e38b),this['adjacencyList']=await this['filterAdjacent'](),this['mapJobData']();const _0xe21c61=this['store']['transact']();return await this['setState'](_0xe21c61),await collator_1['CollatorService']['notarizeContinuation'](this,_0xe21c61),await this['setStatus'](this['adjacencyList']['length'],_0xe21c61),await _0xe21c61['exec']();}async['processSuccess'](_0x517c92){this['bindActivityData'](_0x517c92),this['adjacencyList']=await this['filterAdjacent'](),this['mapJobData']();const _0x52ef17=this['store']['transact']();return await this['setState'](_0x52ef17),await collator_1['CollatorService']['notarizeCompletion'](this,_0x52ef17),await this['setStatus'](this['adjacencyList']['length']-0x1,_0x52ef17),await _0x52ef17['exec']();}async['processError'](){this['bindActivityError'](this['data']),this['adjacencyList']=await this['filterAdjacent']();!this['adjacencyList']['length']&&this['bindJobError'](this['data']);this['mapJobData']();const _0x25ce48=this['store']['transact']();return await this['setState'](_0x25ce48),await collator_1['CollatorService']['notarizeCompletion'](this,_0x25ce48),await this['setStatus'](this['adjacencyList']['length']-0x1,_0x25ce48),await _0x25ce48['exec']();}async['transitionAdjacent'](_0x3c833f,_0x17c7c){_0x17c7c['mapActivityAttributes']();const _0x5b2dd8=this['resolveStatus'](_0x3c833f),_0x35f665={'app.job.jss':_0x5b2dd8},_0x11a491=await this['transition'](this['adjacencyList'],_0x5b2dd8);_0x11a491?.['length']&&(_0x35f665['app.activity.mids']=_0x11a491['join'](',')),_0x17c7c['setActivityAttributes'](_0x35f665);}['resolveStatus'](_0x59e20c){const _0x127288=_0x59e20c[_0x59e20c['length']-0x1];return Array['isArray'](_0x127288)?Number(_0x127288[0x1]):Number(_0x127288);}['mapJobData'](){if(this['config']['job']?.['maps']){const _0x201f6d=new mapper_1['MapperService']((0x0,utils_1['deepCopy'])(this['config']['job']['maps']),this['context']),_0x23def6=_0x201f6d['mapRules']();if(_0x23def6)for(const _0x3d681d in _0x23def6){const _0x3ae779=_0x3d681d['indexOf']('[');if(_0x3ae779>-0x1){const _0xdd8b7f=_0x3d681d['substring'](_0x3ae779+0x1)['split'](']')[0x0];if(!isNaN(Number(_0xdd8b7f))){const _0xf92657=_0x3d681d['substring'](0x0,_0x3ae779);_0x23def6[_0xf92657]=_0x23def6[_0x3d681d],delete _0x23def6[_0x3d681d];}else{if(_0xdd8b7f==='-'||_0xdd8b7f==='_'){const _0x3d30ea=_0x23def6[_0x3d681d];Object['keys'](_0x3d30ea)['forEach'](_0xd5d2b0=>{_0x23def6[_0xd5d2b0]=_0x3d30ea[_0xd5d2b0];});}}}}this['context']['data']=_0x23def6;}}['mapInputData'](){if(this['config']['input']?.['maps']){const _0x4cd575=new mapper_1['MapperService']((0x0,utils_1['deepCopy'])(this['config']['input']['maps']),this['context']);this['context']['data']=_0x4cd575['mapRules']();}}['mapOutputData'](){if(this['config']['output']?.['maps']){const _0x34a26f=new mapper_1['MapperService']((0x0,utils_1['deepCopy'])(this['config']['output']['maps']),this['context']),_0xa1b112=_0x34a26f['mapRules'](),_0x2f895e=this['metadata']['aid'],_0x2e7fec={...this['context'][_0x2f895e]['output'],..._0xa1b112};this['context'][_0x2f895e]['output']['data']=_0x2e7fec;}}async['registerTimeout'](){}['bindActivityError'](_0x2a215d){const _0x30a141=this['context'][this['metadata']['aid']]['output']['metadata'];_0x30a141['err']=JSON['stringify'](this['data']),_0x30a141['$error']={..._0x2a215d,'is_stream_error':!![]};}['bindJobError'](_0x153a5c){this['context']['metadata']['err']=JSON['stringify']({..._0x153a5c,'is_stream_error':!![]});}async['getTriggerConfig'](){return await this['store']['getSchema'](this['config']['trigger'],await this['engine']['getVID']());}['getJobStatus'](){return null;}async['setStatus'](_0x733909,_0x387ab1){const {id:_0x117dff}=await this['engine']['getVID']();return await this['store']['setStatus'](_0x733909,this['context']['metadata']['jid'],_0x117dff,_0x387ab1);}['authorizeEntry'](_0x3fc57e){return this['adjacencyList']?.['map'](_0x513868=>{const {metadata:{aid:_0x5ec849}}=_0x513868;return _0x3fc57e[_0x5ec849+'/output/metadata/as']=collator_1['CollatorService']['getSeed'](),_0x5ec849;})??[];}['bindDimensionalAddress'](_0x5e520c){const _0x18ce3c=this['resolveDad']();_0x5e520c[this['metadata']['aid']+'/output/metadata/dad']=_0x18ce3c;}async['setState'](_0x4bdfd9){const _0x1b4fbb=this['context']['metadata']['jid'];this['bindJobMetadata'](),this['bindActivityMetadata']();const _0x332dba={};await this['bindJobState'](_0x332dba);const _0x59066c=this['authorizeEntry'](_0x332dba);this['bindDimensionalAddress'](_0x332dba),this['bindActivityState'](_0x332dba);const _0x7bf667=['$'+this['config']['subscribes'],this['metadata']['aid'],..._0x59066c],_0x14aba7=collator_1['CollatorService']['getDimensionsById']([...this['config']['ancestors'],this['metadata']['aid']],this['resolveDad']());return await this['store']['setState'](_0x332dba,this['getJobStatus'](),_0x1b4fbb,_0x7bf667,_0x14aba7,_0x4bdfd9);}['bindJobMetadata'](){this['context']['metadata']['ju']=(0x0,utils_1['formatISODate'])(new Date());}['bindActivityMetadata'](){const _0x3e1cf4=this['context']['$self'];!_0x3e1cf4['output']['metadata']&&(_0x3e1cf4['output']['metadata']={});this['status']===stream_1['StreamStatus']['ERROR']&&(_0x3e1cf4['output']['metadata']['err']=JSON['stringify'](this['data']));const _0x21cd15=(0x0,utils_1['formatISODate'])(new Date());_0x3e1cf4['output']['metadata']['ac']=_0x21cd15,_0x3e1cf4['output']['metadata']['au']=_0x21cd15,_0x3e1cf4['output']['metadata']['atp']=this['config']['type'],this['config']['subtype']&&(_0x3e1cf4['output']['metadata']['stp']=this['config']['subtype']),_0x3e1cf4['output']['metadata']['aid']=this['metadata']['aid'];}async['bindJobState'](_0x47d4a3){const _0x271732=await this['getTriggerConfig'](),_0xd831c7=[..._0x271732['PRODUCES']||[],...this['bindJobMetadataPaths']()];for(const _0xc49ae0 of _0xd831c7){const _0x4a71d7=(0x0,utils_1['getValueByPath'])(this['context'],_0xc49ae0);_0x4a71d7!==undefined&&(_0x47d4a3[_0xc49ae0]=_0x4a71d7);}for(const _0x5099c0 in this['context']?.['data']??{}){(_0x5099c0['startsWith']('-')||_0x5099c0['startsWith']('_'))&&(_0x47d4a3[_0x5099c0]=this['context']['data'][_0x5099c0]);}telemetry_1['TelemetryService']['bindJobTelemetryToState'](_0x47d4a3,this['config'],this['context']);}['bindActivityState'](_0x31dbca){const _0x371194=[...this['config']['produces'],...this['bindActivityMetadataPaths']()];for(const _0x1021a2 of _0x371194){const _0x3a0233=this['metadata']['aid']+'/'+_0x1021a2,_0x228e6a=(0x0,utils_1['getValueByPath'])(this['context'],_0x3a0233);_0x228e6a!==undefined&&(_0x31dbca[_0x3a0233]=_0x228e6a);}telemetry_1['TelemetryService']['bindActivityTelemetryToState'](_0x31dbca,this['config'],this['metadata'],this['context'],this['leg']);}['bindJobMetadataPaths'](){return serializer_1['MDATA_SYMBOLS']['JOB_UPDATE']['KEYS']['map'](_0x5f5717=>'metadata/'+_0x5f5717);}['bindActivityMetadataPaths'](){const _0x15f42d=this['leg']===0x1?'ACTIVITY':'ACTIVITY_UPDATE';return serializer_1['MDATA_SYMBOLS'][_0x15f42d]['KEYS']['map'](_0x5617b3=>'output/metadata/'+_0x5617b3);}async['getState'](){const _0x21bebc=this['context']['metadata']['gid'],_0x4d56c4='$'+this['config']['subscribes'],_0x2634a5={[_0x4d56c4]:serializer_1['MDATA_SYMBOLS']['JOB']['KEYS']['map'](_0x475627=>'metadata/'+_0x475627)};for(let [_0x5ba4cd,_0x26171a]of Object['entries'](this['config']['consumes'])){if(_0x5ba4cd==='$job')for(const _0xabab87 of _0x26171a){_0x2634a5[_0x4d56c4]['push'](_0xabab87);}else{_0x5ba4cd==='$self'&&(_0x5ba4cd=this['metadata']['aid']);!_0x2634a5[_0x5ba4cd]&&(_0x2634a5[_0x5ba4cd]=[]);for(const _0xd36a1b of _0x26171a){_0x2634a5[_0x5ba4cd]['push'](_0x5ba4cd+'/'+_0xd36a1b);}}}telemetry_1['TelemetryService']['addTargetTelemetryPaths'](_0x2634a5,this['config'],this['metadata'],this['leg']);const {dad:_0x42ad77,jid:_0x25fcd1}=this['context']['metadata'],_0x5f3514=collator_1['CollatorService']['getDimensionsById']([...this['config']['ancestors'],this['metadata']['aid']],_0x42ad77||''),[_0x49f552,_0x4bc809]=await this['store']['getState'](_0x25fcd1,_0x2634a5,_0x5f3514);this['context']=(0x0,utils_1['restoreHierarchy'])(_0x49f552),this['assertGenerationalId'](this['context']?.['metadata']?.['gid'],_0x21bebc),this['initDimensionalAddress'](_0x42ad77),this['initSelf'](this['context']),this['initPolicies'](this['context']);}['assertGenerationalId'](_0x319ddb,_0x4aac68){if(_0x4aac68!==_0x319ddb)throw new errors_1['GenerationalError'](_0x319ddb,_0x4aac68,this['context']?.['metadata']?.['jid']??'',this['context']?.['metadata']?.['aid']??'',this['context']?.['metadata']?.['dad']??'');}['initDimensionalAddress'](_0x2f6162){this['metadata']['dad']=_0x2f6162;}['initSelf'](_0x2a4f83){const _0x27454b=this['metadata']['aid'];!_0x2a4f83[_0x27454b]&&(_0x2a4f83[_0x27454b]={});const _0x3e640d=_0x2a4f83[_0x27454b];return!_0x3e640d['output']&&(_0x3e640d['output']={}),!_0x3e640d['input']&&(_0x3e640d['input']={}),!_0x3e640d['hook']&&(_0x3e640d['hook']={}),!_0x3e640d['output']['metadata']&&(_0x3e640d['output']['metadata']={}),_0x3e640d['output']['metadata']['au']=(0x0,utils_1['formatISODate'])(new Date()),_0x2a4f83['$self']=_0x3e640d,_0x2a4f83['$job']=_0x2a4f83,_0x2a4f83;}['initPolicies'](_0x46782d){const _0x5440f0=pipe_1['Pipe']['resolve'](this['config']['expire']??enums_1['HMSH_EXPIRE_DURATION'],_0x46782d);_0x46782d['metadata']['expire']=_0x5440f0;if(this['config']['persistent']!=undefined){const _0x197876=pipe_1['Pipe']['resolve'](this['config']['persistent']??![],_0x46782d);_0x46782d['metadata']['persistent']=_0x197876;}}['bindActivityData'](_0x5576d5){this['context'][this['metadata']['aid']][_0x5576d5]['data']=this['data'];}['resolveDad'](){let _0x4c7f5c=this['metadata']['dad'];return this['adjacentIndex']>0x0&&(_0x4c7f5c=_0x4c7f5c['substring'](0x0,_0x4c7f5c['lastIndexOf'](','))+','+this['adjacentIndex']),_0x4c7f5c;}['resolveAdjacentDad'](){return''+this['resolveDad']()+collator_1['CollatorService']['getDimensionalSeed'](0x0);}async['filterAdjacent'](){const _0x5e262b=[],_0x5ab1f8=await this['store']['getTransitions'](await this['engine']['getVID']()),_0x2292b6=_0x5ab1f8['.'+this['metadata']['aid']],_0x3199af=this['resolveAdjacentDad']();if(_0x2292b6)for(const _0x212214 in _0x2292b6){const _0x436305=_0x2292b6[_0x212214];mapper_1['MapperService']['evaluate'](_0x436305,this['context'],this['code'])&&_0x5e262b['push']({'metadata':{'guid':(0x0,utils_1['guid'])(),'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid'],'dad':_0x3199af,'aid':_0x212214,'spn':this['context']['$self']['output']['metadata']?.['l2s'],'trc':this['context']['metadata']['trc']},'type':stream_1['StreamDataType']['TRANSITION'],'data':{}});}return _0x5e262b;}['isJobComplete'](_0x300d37){return _0x300d37<=0x0;}['shouldEmit'](){if(this['config']['emit'])return pipe_1['Pipe']['resolve'](this['config']['emit'],this['context'])===!![];return![];}['shouldPersistJob'](){if(this['config']['persist']!==undefined)return pipe_1['Pipe']['resolve'](this['config']['persist'],this['context'])===!![];return![];}async['transition'](_0x548911,_0x3c3bcd){if(this['jobWasInterrupted'](_0x3c3bcd))return;let _0x26b0ff=[];(this['shouldEmit']()||this['isJobComplete'](_0x3c3bcd)||this['shouldPersistJob']())&&await this['engine']['runJobCompletionTasks'](this['context'],{'emit':!this['isJobComplete'](_0x3c3bcd)&&!this['shouldPersistJob']()});if(_0x548911['length']&&!this['isJobComplete'](_0x3c3bcd)){const _0x38dd76=this['store']['transact']();for(const _0x47530c of _0x548911){await this['engine']['router']?.['publishMessage'](null,_0x47530c,_0x38dd76);}_0x26b0ff=await _0x38dd76['exec']();}return _0x26b0ff;}['jobWasInterrupted'](_0x5c1b38){return _0x5c1b38<-0x5f5e100;}}function _0x20d0(){const _0x543fa2=['1303572dbjZCu','304059cwMZol','330124jvSfbr','612260MIFLIV','325145LFHTxV','670293vnIxLO','112qWMHtr','1249260pSFsCA'];_0x20d0=function(){return _0x543fa2;};return _0x20d0();}exports['Activity']=Activity;
1
+ 'use strict';(function(_0x4ab29a,_0x3efde0){const _0x48711b=_0xa152,_0xcaefb7=_0x4ab29a();while(!![]){try{const _0x48bb84=parseInt(_0x48711b(0x189))/0x1*(-parseInt(_0x48711b(0x187))/0x2)+parseInt(_0x48711b(0x18a))/0x3+parseInt(_0x48711b(0x18b))/0x4*(-parseInt(_0x48711b(0x18d))/0x5)+parseInt(_0x48711b(0x188))/0x6*(-parseInt(_0x48711b(0x18f))/0x7)+-parseInt(_0x48711b(0x18e))/0x8*(parseInt(_0x48711b(0x185))/0x9)+parseInt(_0x48711b(0x18c))/0xa+parseInt(_0x48711b(0x186))/0xb;if(_0x48bb84===_0x3efde0)break;else _0xcaefb7['push'](_0xcaefb7['shift']());}catch(_0x27c6da){_0xcaefb7['push'](_0xcaefb7['shift']());}}}(_0x3f59,0x50922));function _0x3f59(){const _0x90ad2c=['232RBlSjV','204iZllts','1459OhTZYl','659250WJpCFr','4ryGbDc','1034100DLyzmc','1285945wUfujt','14688MeRizQ','123277JcVRuW','2961iylkMP','17997199gqXbyO'];_0x3f59=function(){return _0x90ad2c;};return _0x3f59();}function _0xa152(_0x29e366,_0x50a888){const _0x3f593b=_0x3f59();return _0xa152=function(_0xa1527a,_0x2d0611){_0xa1527a=_0xa1527a-0x185;let _0x4257ae=_0x3f593b[_0xa1527a];return _0x4257ae;},_0xa152(_0x29e366,_0x50a888);}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['Activity']=void 0x0;const enums_1=require('../../modules/enums'),errors_1=require('../../modules/errors'),utils_1=require('../../modules/utils'),collator_1=require('../collator'),mapper_1=require('../mapper'),pipe_1=require('../pipe'),serializer_1=require('../serializer'),telemetry_1=require('../telemetry'),stream_1=require('../../types/stream');class Activity{constructor(_0x72cdd9,_0xf75cb,_0x30015b,_0x140327,_0x25be58,_0xd953fc){this['status']=stream_1['StreamStatus']['SUCCESS'],this['code']=0xc8,this['adjacentIndex']=0x0,this['config']=_0x72cdd9,this['data']=_0xf75cb,this['metadata']=_0x30015b,this['hook']=_0x140327,this['engine']=_0x25be58,this['context']=_0xd953fc||{'data':{},'metadata':{}},this['logger']=_0x25be58['logger'],this['store']=_0x25be58['store'];}['setLeg'](_0x234623){this['leg']=_0x234623;}['mapStatusThreshold'](){if(this['config']['statusThreshold']!==undefined){const _0x14ac3e=pipe_1['Pipe']['resolve'](this['config']['statusThreshold'],this['context']);if(_0x14ac3e!==undefined&&!isNaN(Number(_0x14ac3e)))return _0x14ac3e;}return 0x0;}async['verifyEntry'](){this['setLeg'](0x1),await this['getState']();const _0x1936a4=this['mapStatusThreshold']();try{collator_1['CollatorService']['assertJobActive'](this['context']['metadata']['js'],this['context']['metadata']['jid'],this['metadata']['aid'],_0x1936a4);}catch(_0x3017b6){await collator_1['CollatorService']['notarizeEntry'](this);if(_0x1936a4>0x0){if(this['context']['metadata']['js']===_0x1936a4){const _0x5a5301=await this['setStatus'](-_0x1936a4);Number(_0x5a5301)===0x0&&await this['engine']['runJobCompletionTasks'](this['context']);}}else throw _0x3017b6;return;}await collator_1['CollatorService']['notarizeEntry'](this);}async['verifyReentry'](){const _0x3ebca5=this['context']['metadata']['guid'];return this['setLeg'](0x2),await this['getState'](),collator_1['CollatorService']['assertJobActive'](this['context']['metadata']['js'],this['context']['metadata']['jid'],this['metadata']['aid']),await collator_1['CollatorService']['notarizeReentry'](this,_0x3ebca5);}async['processEvent'](_0x1c4043=stream_1['StreamStatus']['SUCCESS'],_0x177106=0xc8,_0x58c75f='output'){this['setLeg'](0x2);const _0x163724=this['context']['metadata']['jid'];if(!_0x163724){this['logger']['error']('activity-process-event-error',{'message':'job\x20id\x20is\x20undefined'});return;}const _0x3bfd1a=this['metadata']['aid'];this['status']=_0x1c4043,this['code']=_0x177106,this['logger']['debug']('activity-process-event',{'topic':this['config']['subtype'],'jid':_0x163724,'aid':_0x3bfd1a,'status':_0x1c4043,'code':_0x177106});let _0x53c987;try{const _0x1136dc=await this['verifyReentry']();this['adjacentIndex']=collator_1['CollatorService']['getDimensionalIndex'](_0x1136dc),_0x53c987=new telemetry_1['TelemetryService'](this['engine']['appId'],this['config'],this['metadata'],this['context']),_0x53c987['startActivitySpan'](this['leg']);let _0x37b5ba;if(_0x1c4043===stream_1['StreamStatus']['PENDING'])_0x37b5ba=await this['processPending'](_0x58c75f);else _0x1c4043===stream_1['StreamStatus']['SUCCESS']?_0x37b5ba=await this['processSuccess'](_0x58c75f):_0x37b5ba=await this['processError']();this['transitionAdjacent'](_0x37b5ba,_0x53c987);}catch(_0x199e89){if(_0x199e89 instanceof errors_1['CollationError']){this['logger']['info']('process-event-'+_0x199e89['fault']+'-error',{..._0x199e89});return;}else{if(_0x199e89 instanceof errors_1['InactiveJobError']){this['logger']['info']('process-event-inactive-job-error',{..._0x199e89});return;}else{if(_0x199e89 instanceof errors_1['GenerationalError']){this['logger']['info']('process-event-generational-job-error',{..._0x199e89});return;}else{if(_0x199e89 instanceof errors_1['GetStateError']){this['logger']['info']('process-event-get-job-error',{..._0x199e89});return;}}}}this['logger']['error']('activity-process-event-error',{..._0x199e89,'message':_0x199e89['message'],'stack':_0x199e89['stack'],'name':_0x199e89['name']}),_0x53c987?.['setActivityError'](_0x199e89['message']);throw _0x199e89;}finally{_0x53c987?.['endActivitySpan'](),this['logger']['debug']('activity-process-event-end',{'jid':_0x163724,'aid':_0x3bfd1a});}}async['processPending'](_0x40eee8){this['bindActivityData'](_0x40eee8),this['adjacencyList']=await this['filterAdjacent'](),this['mapJobData']();const _0x385ba2=this['store']['transact']();return await this['setState'](_0x385ba2),await collator_1['CollatorService']['notarizeContinuation'](this,_0x385ba2),await this['setStatus'](this['adjacencyList']['length'],_0x385ba2),await _0x385ba2['exec']();}async['processSuccess'](_0x1618cf){this['bindActivityData'](_0x1618cf),this['adjacencyList']=await this['filterAdjacent'](),this['mapJobData']();const _0x77765a=this['store']['transact']();return await this['setState'](_0x77765a),await collator_1['CollatorService']['notarizeCompletion'](this,_0x77765a),await this['setStatus'](this['adjacencyList']['length']-0x1,_0x77765a),await _0x77765a['exec']();}async['processError'](){this['bindActivityError'](this['data']),this['adjacencyList']=await this['filterAdjacent']();!this['adjacencyList']['length']&&this['bindJobError'](this['data']);this['mapJobData']();const _0x5afb91=this['store']['transact']();return await this['setState'](_0x5afb91),await collator_1['CollatorService']['notarizeCompletion'](this,_0x5afb91),await this['setStatus'](this['adjacencyList']['length']-0x1,_0x5afb91),await _0x5afb91['exec']();}async['transitionAdjacent'](_0x431f70,_0x664f0){_0x664f0['mapActivityAttributes']();const _0x4707dd=this['resolveStatus'](_0x431f70),_0x2cc242={'app.job.jss':_0x4707dd},_0x35bd95=await this['transition'](this['adjacencyList'],_0x4707dd);_0x35bd95?.['length']&&(_0x2cc242['app.activity.mids']=_0x35bd95['join'](',')),_0x664f0['setActivityAttributes'](_0x2cc242);}['resolveStatus'](_0x4a4795){const _0x4ce38b=_0x4a4795[_0x4a4795['length']-0x1];return Array['isArray'](_0x4ce38b)?Number(_0x4ce38b[0x1]):Number(_0x4ce38b);}['mapJobData'](){if(this['config']['job']?.['maps']){const _0x465d2c=new mapper_1['MapperService']((0x0,utils_1['deepCopy'])(this['config']['job']['maps']),this['context']),_0x384cee=_0x465d2c['mapRules']();if(_0x384cee)for(const _0x3d97ad in _0x384cee){const _0x1aebd0=_0x3d97ad['indexOf']('[');if(_0x1aebd0>-0x1){const _0x46c7f3=_0x3d97ad['substring'](_0x1aebd0+0x1)['split'](']')[0x0];if(!isNaN(Number(_0x46c7f3))){const _0x177e96=_0x3d97ad['substring'](0x0,_0x1aebd0);_0x384cee[_0x177e96]=_0x384cee[_0x3d97ad],delete _0x384cee[_0x3d97ad];}else{if(_0x46c7f3==='-'||_0x46c7f3==='_'){const _0x3c9f11=_0x384cee[_0x3d97ad];Object['keys'](_0x3c9f11)['forEach'](_0x53e4f9=>{_0x384cee[_0x53e4f9]=_0x3c9f11[_0x53e4f9];});}}}}this['context']['data']=_0x384cee;}}['mapInputData'](){if(this['config']['input']?.['maps']){const _0x17aaf5=new mapper_1['MapperService']((0x0,utils_1['deepCopy'])(this['config']['input']['maps']),this['context']);this['context']['data']=_0x17aaf5['mapRules']();}}['mapOutputData'](){if(this['config']['output']?.['maps']){const _0x1d0e30=new mapper_1['MapperService']((0x0,utils_1['deepCopy'])(this['config']['output']['maps']),this['context']),_0x85bb6b=_0x1d0e30['mapRules'](),_0x2aa761=this['metadata']['aid'],_0x26d243={...this['context'][_0x2aa761]['output'],..._0x85bb6b};this['context'][_0x2aa761]['output']['data']=_0x26d243;}}async['registerTimeout'](){}['bindActivityError'](_0x3c4b3f){const _0x1c8abe=this['context'][this['metadata']['aid']]['output']['metadata'];_0x1c8abe['err']=JSON['stringify'](this['data']),_0x1c8abe['$error']={..._0x3c4b3f,'is_stream_error':!![]};}['bindJobError'](_0x243af5){this['context']['metadata']['err']=JSON['stringify']({..._0x243af5,'is_stream_error':!![]});}async['getTriggerConfig'](){return await this['store']['getSchema'](this['config']['trigger'],await this['engine']['getVID']());}['getJobStatus'](){return null;}async['setStatus'](_0x4a52d3,_0x1be6f4){const {id:_0x422e13}=await this['engine']['getVID']();return await this['store']['setStatus'](_0x4a52d3,this['context']['metadata']['jid'],_0x422e13,_0x1be6f4);}['authorizeEntry'](_0x5a294d){return this['adjacencyList']?.['map'](_0x2cfbb9=>{const {metadata:{aid:_0x4443bf}}=_0x2cfbb9;return _0x5a294d[_0x4443bf+'/output/metadata/as']=collator_1['CollatorService']['getSeed'](),_0x4443bf;})??[];}['bindDimensionalAddress'](_0x4595c1){const _0x363b43=this['resolveDad']();_0x4595c1[this['metadata']['aid']+'/output/metadata/dad']=_0x363b43;}async['setState'](_0x199dd2){const _0x10bc52=this['context']['metadata']['jid'];this['bindJobMetadata'](),this['bindActivityMetadata']();const _0x1d155a={};await this['bindJobState'](_0x1d155a);const _0x2170f5=this['authorizeEntry'](_0x1d155a);this['bindDimensionalAddress'](_0x1d155a),this['bindActivityState'](_0x1d155a);const _0x3add3c=['$'+this['config']['subscribes'],this['metadata']['aid'],..._0x2170f5],_0x286f1d=collator_1['CollatorService']['getDimensionsById']([...this['config']['ancestors'],this['metadata']['aid']],this['resolveDad']());return await this['store']['setState'](_0x1d155a,this['getJobStatus'](),_0x10bc52,_0x3add3c,_0x286f1d,_0x199dd2);}['bindJobMetadata'](){this['context']['metadata']['ju']=(0x0,utils_1['formatISODate'])(new Date());}['bindActivityMetadata'](){const _0x56785e=this['context']['$self'];!_0x56785e['output']['metadata']&&(_0x56785e['output']['metadata']={});this['status']===stream_1['StreamStatus']['ERROR']&&(_0x56785e['output']['metadata']['err']=JSON['stringify'](this['data']));const _0x423cfe=(0x0,utils_1['formatISODate'])(new Date());_0x56785e['output']['metadata']['ac']=_0x423cfe,_0x56785e['output']['metadata']['au']=_0x423cfe,_0x56785e['output']['metadata']['atp']=this['config']['type'],this['config']['subtype']&&(_0x56785e['output']['metadata']['stp']=this['config']['subtype']),_0x56785e['output']['metadata']['aid']=this['metadata']['aid'];}async['bindJobState'](_0x597ad0){const _0x1e6516=await this['getTriggerConfig'](),_0x4b9df0=[..._0x1e6516['PRODUCES']||[],...this['bindJobMetadataPaths']()];for(const _0x43baa1 of _0x4b9df0){const _0x390b53=(0x0,utils_1['getValueByPath'])(this['context'],_0x43baa1);_0x390b53!==undefined&&(_0x597ad0[_0x43baa1]=_0x390b53);}for(const _0x241c8a in this['context']?.['data']??{}){(_0x241c8a['startsWith']('-')||_0x241c8a['startsWith']('_'))&&(_0x597ad0[_0x241c8a]=this['context']['data'][_0x241c8a]);}telemetry_1['TelemetryService']['bindJobTelemetryToState'](_0x597ad0,this['config'],this['context']);}['bindActivityState'](_0xfa3084){const _0x2f0873=[...this['config']['produces'],...this['bindActivityMetadataPaths']()];for(const _0x1cdd0e of _0x2f0873){const _0x2d1928=this['metadata']['aid']+'/'+_0x1cdd0e,_0x3d7622=(0x0,utils_1['getValueByPath'])(this['context'],_0x2d1928);_0x3d7622!==undefined&&(_0xfa3084[_0x2d1928]=_0x3d7622);}telemetry_1['TelemetryService']['bindActivityTelemetryToState'](_0xfa3084,this['config'],this['metadata'],this['context'],this['leg']);}['bindJobMetadataPaths'](){return serializer_1['MDATA_SYMBOLS']['JOB_UPDATE']['KEYS']['map'](_0x35a5d0=>'metadata/'+_0x35a5d0);}['bindActivityMetadataPaths'](){const _0x5a1dbc=this['leg']===0x1?'ACTIVITY':'ACTIVITY_UPDATE';return serializer_1['MDATA_SYMBOLS'][_0x5a1dbc]['KEYS']['map'](_0x2f2d73=>'output/metadata/'+_0x2f2d73);}async['getState'](){const _0x35848c=this['context']['metadata']['gid'],_0x448fbe='$'+this['config']['subscribes'],_0x576eac={[_0x448fbe]:serializer_1['MDATA_SYMBOLS']['JOB']['KEYS']['map'](_0x6c8306=>'metadata/'+_0x6c8306)};for(let [_0xb9f04,_0x3ac0c2]of Object['entries'](this['config']['consumes'])){if(_0xb9f04==='$job')for(const _0x4179ed of _0x3ac0c2){_0x576eac[_0x448fbe]['push'](_0x4179ed);}else{_0xb9f04==='$self'&&(_0xb9f04=this['metadata']['aid']);!_0x576eac[_0xb9f04]&&(_0x576eac[_0xb9f04]=[]);for(const _0x2599e3 of _0x3ac0c2){_0x576eac[_0xb9f04]['push'](_0xb9f04+'/'+_0x2599e3);}}}telemetry_1['TelemetryService']['addTargetTelemetryPaths'](_0x576eac,this['config'],this['metadata'],this['leg']);const {dad:_0x2c5104,jid:_0x12421a}=this['context']['metadata'],_0x59dd07=collator_1['CollatorService']['getDimensionsById']([...this['config']['ancestors'],this['metadata']['aid']],_0x2c5104||''),[_0x4bb766,_0x52a4e3]=await this['store']['getState'](_0x12421a,_0x576eac,_0x59dd07);this['context']=(0x0,utils_1['restoreHierarchy'])(_0x4bb766),this['assertGenerationalId'](this['context']?.['metadata']?.['gid'],_0x35848c),this['initDimensionalAddress'](_0x2c5104),this['initSelf'](this['context']),this['initPolicies'](this['context']);}['assertGenerationalId'](_0x504d07,_0x1aa77e){if(_0x1aa77e!==_0x504d07)throw new errors_1['GenerationalError'](_0x504d07,_0x1aa77e,this['context']?.['metadata']?.['jid']??'',this['context']?.['metadata']?.['aid']??'',this['context']?.['metadata']?.['dad']??'');}['initDimensionalAddress'](_0xdf30ee){this['metadata']['dad']=_0xdf30ee;}['initSelf'](_0x16bb85){const _0x5d6bbc=this['metadata']['aid'];!_0x16bb85[_0x5d6bbc]&&(_0x16bb85[_0x5d6bbc]={});const _0x61e5b3=_0x16bb85[_0x5d6bbc];return!_0x61e5b3['output']&&(_0x61e5b3['output']={}),!_0x61e5b3['input']&&(_0x61e5b3['input']={}),!_0x61e5b3['hook']&&(_0x61e5b3['hook']={}),!_0x61e5b3['output']['metadata']&&(_0x61e5b3['output']['metadata']={}),_0x61e5b3['output']['metadata']['au']=(0x0,utils_1['formatISODate'])(new Date()),_0x16bb85['$self']=_0x61e5b3,_0x16bb85['$job']=_0x16bb85,_0x16bb85;}['initPolicies'](_0x57a3e0){const _0x151aa2=pipe_1['Pipe']['resolve'](this['config']['expire']??enums_1['HMSH_EXPIRE_DURATION'],_0x57a3e0);_0x57a3e0['metadata']['expire']=_0x151aa2;if(this['config']['persistent']!=undefined){const _0xdafcea=pipe_1['Pipe']['resolve'](this['config']['persistent']??![],_0x57a3e0);_0x57a3e0['metadata']['persistent']=_0xdafcea;}}['bindActivityData'](_0x569893){this['context'][this['metadata']['aid']][_0x569893]['data']=this['data'];}['resolveDad'](){let _0x41875a=this['metadata']['dad'];return this['adjacentIndex']>0x0&&(_0x41875a=_0x41875a['substring'](0x0,_0x41875a['lastIndexOf'](','))+','+this['adjacentIndex']),_0x41875a;}['resolveAdjacentDad'](){return''+this['resolveDad']()+collator_1['CollatorService']['getDimensionalSeed'](0x0);}async['filterAdjacent'](){const _0x58863e=[],_0x2d8502=await this['store']['getTransitions'](await this['engine']['getVID']()),_0xd0a561=_0x2d8502['.'+this['metadata']['aid']],_0x42c0e2=this['resolveAdjacentDad']();if(_0xd0a561)for(const _0x3ebb81 in _0xd0a561){const _0x46b275=_0xd0a561[_0x3ebb81];mapper_1['MapperService']['evaluate'](_0x46b275,this['context'],this['code'])&&_0x58863e['push']({'metadata':{'guid':(0x0,utils_1['guid'])(),'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid'],'dad':_0x42c0e2,'aid':_0x3ebb81,'spn':this['context']['$self']['output']['metadata']?.['l2s'],'trc':this['context']['metadata']['trc']},'type':stream_1['StreamDataType']['TRANSITION'],'data':{}});}return _0x58863e;}['isJobComplete'](_0x532f32){return _0x532f32<=0x0;}['shouldEmit'](){if(this['config']['emit'])return pipe_1['Pipe']['resolve'](this['config']['emit'],this['context'])===!![];return![];}['shouldPersistJob'](){if(this['config']['persist']!==undefined)return pipe_1['Pipe']['resolve'](this['config']['persist'],this['context'])===!![];return![];}async['transition'](_0x2e0f9f,_0x1039de){if(this['jobWasInterrupted'](_0x1039de))return;let _0x115f37=[];(this['shouldEmit']()||this['isJobComplete'](_0x1039de)||this['shouldPersistJob']())&&await this['engine']['runJobCompletionTasks'](this['context'],{'emit':!this['isJobComplete'](_0x1039de)&&!this['shouldPersistJob']()});if(_0x2e0f9f['length']&&!this['isJobComplete'](_0x1039de)){const _0x5a5a58=this['store']['transact']();for(const _0x173119 of _0x2e0f9f){await this['engine']['router']?.['publishMessage'](null,_0x173119,_0x5a5a58);}_0x115f37=await _0x5a5a58['exec']();}return _0x115f37;}['jobWasInterrupted'](_0x568989){return _0x568989<-0x5f5e100;}}exports['Activity']=Activity;
@@ -1 +1 @@
1
- 'use strict';(function(_0x2fc717,_0x428e0f){const _0x3c3869=_0x5ba6,_0x1cfa96=_0x2fc717();while(!![]){try{const _0x58ef44=-parseInt(_0x3c3869(0xbf))/0x1*(parseInt(_0x3c3869(0xbc))/0x2)+-parseInt(_0x3c3869(0xba))/0x3+-parseInt(_0x3c3869(0xbe))/0x4*(-parseInt(_0x3c3869(0xc0))/0x5)+-parseInt(_0x3c3869(0xb9))/0x6*(parseInt(_0x3c3869(0xbb))/0x7)+parseInt(_0x3c3869(0xbd))/0x8+parseInt(_0x3c3869(0xb8))/0x9+parseInt(_0x3c3869(0xc1))/0xa;if(_0x58ef44===_0x428e0f)break;else _0x1cfa96['push'](_0x1cfa96['shift']());}catch(_0x3a3fde){_0x1cfa96['push'](_0x1cfa96['shift']());}}}(_0x31c9,0x4939a));function _0x31c9(){const _0x50eb93=['2GtFgJR','526680XCSePO','13492lVFqhS','336911pzfnVS','135wHVyPN','11996310hcCzKi','12303aaEaBs','642MBJEVZ','787383QzKXdP','30002THPgbI'];_0x31c9=function(){return _0x50eb93;};return _0x31c9();}function _0x5ba6(_0xb02e10,_0xc091fe){const _0x31c9d2=_0x31c9();return _0x5ba6=function(_0x5ba6eb,_0x78bf4d){_0x5ba6eb=_0x5ba6eb-0xb8;let _0x5343b1=_0x31c9d2[_0x5ba6eb];return _0x5343b1;},_0x5ba6(_0xb02e10,_0xc091fe);}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['Await']=void 0x0;const errors_1=require('../../modules/errors'),utils_1=require('../../modules/utils'),collator_1=require('../collator'),pipe_1=require('../pipe'),telemetry_1=require('../telemetry'),stream_1=require('../../types/stream'),activity_1=require('./activity');class Await extends activity_1['Activity']{constructor(_0x3adb8c,_0xa8c846,_0xd176dd,_0x34c1b9,_0x11303e,_0x30b3e0){super(_0x3adb8c,_0xa8c846,_0xd176dd,_0x34c1b9,_0x11303e,_0x30b3e0);}async['process'](){this['logger']['debug']('await-process',{'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid'],'aid':this['metadata']['aid']});let _0xa93543;try{await this['verifyEntry'](),_0xa93543=new telemetry_1['TelemetryService'](this['engine']['appId'],this['config'],this['metadata'],this['context']),_0xa93543['startActivitySpan'](this['leg']),this['mapInputData']();const _0x3557db=this['store']['transact'](),_0x52283a=await this['execActivity'](_0x3557db);await collator_1['CollatorService']['authorizeReentry'](this,_0x3557db),await this['setState'](_0x3557db),await this['setStatus'](0x0,_0x3557db);const _0x598620=await _0x3557db['exec']();_0xa93543['mapActivityAttributes']();const _0x135e67=this['resolveStatus'](_0x598620);return _0xa93543['setActivityAttributes']({'app.activity.mid':_0x52283a,'app.job.jss':_0x135e67}),this['context']['metadata']['aid'];}catch(_0x3fae98){if(_0x3fae98 instanceof errors_1['InactiveJobError']){this['logger']['error']('await-inactive-job-error',{..._0x3fae98});return;}else{if(_0x3fae98 instanceof errors_1['GenerationalError']){this['logger']['info']('process-event-generational-job-error',{..._0x3fae98});return;}else{if(_0x3fae98 instanceof errors_1['GetStateError']){this['logger']['error']('await-get-state-error',{..._0x3fae98});return;}else{if(_0x3fae98 instanceof errors_1['CollationError']){if(_0x3fae98['fault']==='duplicate'){this['logger']['info']('await-collation-overage',{'job_id':this['context']['metadata']['jid'],'guid':this['context']['metadata']['guid']});return;}this['logger']['error']('await-collation-error',{..._0x3fae98});}else this['logger']['error']('await-process-error',{..._0x3fae98});}}}_0xa93543?.['setActivityError'](_0x3fae98['message']);throw _0x3fae98;}finally{_0xa93543?.['endActivitySpan'](),this['logger']['debug']('await-process-end',{'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid'],'aid':this['metadata']['aid']});}}async['execActivity'](_0x30ea48){const _0x35abaa=pipe_1['Pipe']['resolve'](this['config']['subtype'],this['context']),_0x2fbb7f={'metadata':{'guid':(0x0,utils_1['guid'])(),'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid'],'dad':this['metadata']['dad'],'aid':this['metadata']['aid'],'topic':_0x35abaa,'spn':this['context']['$self']['output']['metadata']?.['l1s'],'trc':this['context']['metadata']['trc']},'type':stream_1['StreamDataType']['AWAIT'],'data':this['context']['data']};if(this['config']['await']!==!![]){const _0x4b1d3e=pipe_1['Pipe']['resolve'](this['config']['await'],this['context']);_0x4b1d3e===![]&&(_0x2fbb7f['metadata']['await']=![]);}return this['config']['retry']&&(_0x2fbb7f['policies']={'retry':this['config']['retry']}),await this['engine']['router']?.['publishMessage'](null,_0x2fbb7f,_0x30ea48);}}exports['Await']=Await;
1
+ 'use strict';(function(_0x3ec2c2,_0x45a67a){const _0x4fa6b0=_0x5193,_0x1db18e=_0x3ec2c2();while(!![]){try{const _0x13cee6=parseInt(_0x4fa6b0(0x185))/0x1+parseInt(_0x4fa6b0(0x180))/0x2*(parseInt(_0x4fa6b0(0x17e))/0x3)+parseInt(_0x4fa6b0(0x183))/0x4*(-parseInt(_0x4fa6b0(0x186))/0x5)+-parseInt(_0x4fa6b0(0x182))/0x6+-parseInt(_0x4fa6b0(0x181))/0x7+-parseInt(_0x4fa6b0(0x17f))/0x8*(parseInt(_0x4fa6b0(0x17d))/0x9)+parseInt(_0x4fa6b0(0x184))/0xa;if(_0x13cee6===_0x45a67a)break;else _0x1db18e['push'](_0x1db18e['shift']());}catch(_0x390f53){_0x1db18e['push'](_0x1db18e['shift']());}}}(_0x2a89,0xa289b));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['Await']=void 0x0;function _0x5193(_0x100efb,_0x3b5805){const _0x2a892d=_0x2a89();return _0x5193=function(_0x519395,_0x539fd8){_0x519395=_0x519395-0x17d;let _0x30b1f6=_0x2a892d[_0x519395];return _0x30b1f6;},_0x5193(_0x100efb,_0x3b5805);}const errors_1=require('../../modules/errors'),utils_1=require('../../modules/utils'),collator_1=require('../collator'),pipe_1=require('../pipe'),telemetry_1=require('../telemetry'),stream_1=require('../../types/stream'),activity_1=require('./activity');class Await extends activity_1['Activity']{constructor(_0x1a5dbb,_0x3891c1,_0x2e0f7d,_0x65502d,_0x154551,_0x376846){super(_0x1a5dbb,_0x3891c1,_0x2e0f7d,_0x65502d,_0x154551,_0x376846);}async['process'](){this['logger']['debug']('await-process',{'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid'],'aid':this['metadata']['aid']});let _0x483515;try{await this['verifyEntry'](),_0x483515=new telemetry_1['TelemetryService'](this['engine']['appId'],this['config'],this['metadata'],this['context']),_0x483515['startActivitySpan'](this['leg']),this['mapInputData']();const _0x4263a4=this['store']['transact'](),_0x4cb28f=await this['execActivity'](_0x4263a4);await collator_1['CollatorService']['authorizeReentry'](this,_0x4263a4),await this['setState'](_0x4263a4),await this['setStatus'](0x0,_0x4263a4);const _0x48828b=await _0x4263a4['exec']();_0x483515['mapActivityAttributes']();const _0x2940dd=this['resolveStatus'](_0x48828b);return _0x483515['setActivityAttributes']({'app.activity.mid':_0x4cb28f,'app.job.jss':_0x2940dd}),this['context']['metadata']['aid'];}catch(_0x3a94fd){if(_0x3a94fd instanceof errors_1['InactiveJobError']){this['logger']['error']('await-inactive-job-error',{..._0x3a94fd});return;}else{if(_0x3a94fd instanceof errors_1['GenerationalError']){this['logger']['info']('process-event-generational-job-error',{..._0x3a94fd});return;}else{if(_0x3a94fd instanceof errors_1['GetStateError']){this['logger']['error']('await-get-state-error',{..._0x3a94fd});return;}else{if(_0x3a94fd instanceof errors_1['CollationError']){if(_0x3a94fd['fault']==='duplicate'){this['logger']['info']('await-collation-overage',{'job_id':this['context']['metadata']['jid'],'guid':this['context']['metadata']['guid']});return;}this['logger']['error']('await-collation-error',{..._0x3a94fd});}else this['logger']['error']('await-process-error',{..._0x3a94fd});}}}_0x483515?.['setActivityError'](_0x3a94fd['message']);throw _0x3a94fd;}finally{_0x483515?.['endActivitySpan'](),this['logger']['debug']('await-process-end',{'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid'],'aid':this['metadata']['aid']});}}async['execActivity'](_0x79c350){const _0x229223=pipe_1['Pipe']['resolve'](this['config']['subtype'],this['context']),_0x220638={'metadata':{'guid':(0x0,utils_1['guid'])(),'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid'],'dad':this['metadata']['dad'],'aid':this['metadata']['aid'],'topic':_0x229223,'spn':this['context']['$self']['output']['metadata']?.['l1s'],'trc':this['context']['metadata']['trc']},'type':stream_1['StreamDataType']['AWAIT'],'data':this['context']['data']};if(this['config']['await']!==!![]){const _0x503dd2=pipe_1['Pipe']['resolve'](this['config']['await'],this['context']);_0x503dd2===![]&&(_0x220638['metadata']['await']=![]);}return this['config']['retry']&&(_0x220638['policies']={'retry':this['config']['retry']}),await this['engine']['router']?.['publishMessage'](null,_0x220638,_0x79c350);}}exports['Await']=Await;function _0x2a89(){const _0x1f1144=['28353660OHWCYB','32058JIFeYe','438935GkFvbY','2187lJgpaB','3cIKlJn','9232aHpPEo','1322632aCimQo','7940240yWdsyj','4475682EZiXzE','32EvtYdN'];_0x2a89=function(){return _0x1f1144;};return _0x2a89();}
@@ -1 +1 @@
1
- 'use strict';function _0x46b4(_0x185874,_0x50345b){const _0x2317fd=_0x2317();return _0x46b4=function(_0x46b4d7,_0x54f8cc){_0x46b4d7=_0x46b4d7-0x155;let _0x987565=_0x2317fd[_0x46b4d7];return _0x987565;},_0x46b4(_0x185874,_0x50345b);}(function(_0x2b6586,_0x3d9154){const _0x4f83fa=_0x46b4,_0x1fd2e8=_0x2b6586();while(!![]){try{const _0x272d6c=-parseInt(_0x4f83fa(0x15f))/0x1*(-parseInt(_0x4f83fa(0x15d))/0x2)+parseInt(_0x4f83fa(0x159))/0x3*(-parseInt(_0x4f83fa(0x15e))/0x4)+parseInt(_0x4f83fa(0x156))/0x5*(parseInt(_0x4f83fa(0x15b))/0x6)+-parseInt(_0x4f83fa(0x15c))/0x7*(-parseInt(_0x4f83fa(0x158))/0x8)+parseInt(_0x4f83fa(0x155))/0x9+-parseInt(_0x4f83fa(0x157))/0xa+-parseInt(_0x4f83fa(0x15a))/0xb;if(_0x272d6c===_0x3d9154)break;else _0x1fd2e8['push'](_0x1fd2e8['shift']());}catch(_0x18800c){_0x1fd2e8['push'](_0x1fd2e8['shift']());}}}(_0x2317,0x7ee60));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['Cycle']=void 0x0;function _0x2317(){const _0x2d0d63=['2mIktOw','4VsQXBy','37587ZwGxfw','4219173QzGUXo','5faApUN','6245190quyiKp','60392ghlMJf','785931IhKcEK','3808409KvXMcp','5664882TqeZdb','280ARvWsE'];_0x2317=function(){return _0x2d0d63;};return _0x2317();}const errors_1=require('../../modules/errors'),utils_1=require('../../modules/utils'),collator_1=require('../collator'),telemetry_1=require('../telemetry'),activity_1=require('./activity');class Cycle extends activity_1['Activity']{constructor(_0x25fc9d,_0x6e841b,_0x37b32b,_0x26f86e,_0x310e51,_0x4c1640){super(_0x25fc9d,_0x6e841b,_0x37b32b,_0x26f86e,_0x310e51,_0x4c1640);}async['process'](){this['logger']['debug']('cycle-process',{'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid'],'aid':this['metadata']['aid']});let _0x28c0b8;try{await this['verifyEntry'](),_0x28c0b8=new telemetry_1['TelemetryService'](this['engine']['appId'],this['config'],this['metadata'],this['context']),_0x28c0b8['startActivitySpan'](this['leg']),this['mapInputData']();let _0x1a8b2a=this['store']['transact']();await this['setState'](_0x1a8b2a),await this['setStatus'](0x0,_0x1a8b2a);const _0x2f8e4a=await _0x1a8b2a['exec']();_0x28c0b8['mapActivityAttributes']();const _0x518ebd=this['resolveStatus'](_0x2f8e4a);_0x1a8b2a=this['store']['transact']();const _0x144d70=await this['cycleAncestorActivity'](_0x1a8b2a);return _0x28c0b8['setActivityAttributes']({'app.activity.mid':_0x144d70,'app.job.jss':_0x518ebd}),await collator_1['CollatorService']['notarizeEarlyExit'](this,_0x1a8b2a),await _0x1a8b2a['exec'](),this['context']['metadata']['aid'];}catch(_0x3e0d29){if(_0x3e0d29 instanceof errors_1['InactiveJobError']){this['logger']['error']('cycle-inactive-job-error',{..._0x3e0d29});return;}else{if(_0x3e0d29 instanceof errors_1['GenerationalError']){this['logger']['info']('process-event-generational-job-error',{..._0x3e0d29});return;}else{if(_0x3e0d29 instanceof errors_1['GetStateError']){this['logger']['error']('cycle-get-state-error',{..._0x3e0d29});return;}else{if(_0x3e0d29 instanceof errors_1['CollationError']){if(_0x3e0d29['fault']==='duplicate'){this['logger']['info']('cycle-collation-overage',{'job_id':this['context']['metadata']['jid'],'guid':this['context']['metadata']['guid']});return;}this['logger']['error']('cycle-collation-error',{..._0x3e0d29});}else this['logger']['error']('cycle-process-error',{..._0x3e0d29});}}}_0x28c0b8?.['setActivityError'](_0x3e0d29['message']);throw _0x3e0d29;}finally{_0x28c0b8?.['endActivitySpan'](),this['logger']['debug']('cycle-process-end',{'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid'],'aid':this['metadata']['aid']});}}async['cycleAncestorActivity'](_0xb6a1cc){this['mapInputData']();const _0x223351={'metadata':{'guid':(0x0,utils_1['guid'])(),'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid'],'dad':collator_1['CollatorService']['resolveReentryDimension'](this),'aid':this['config']['ancestor'],'spn':this['context']['$self']['output']['metadata']?.['l1s'],'trc':this['context']['metadata']['trc']},'data':this['context']['data']};return await this['engine']['router']?.['publishMessage'](null,_0x223351,_0xb6a1cc);}}exports['Cycle']=Cycle;
1
+ 'use strict';(function(_0x521b4d,_0x4513f4){const _0x4f195d=_0x2036,_0x8f2923=_0x521b4d();while(!![]){try{const _0x5310c2=parseInt(_0x4f195d(0x128))/0x1*(parseInt(_0x4f195d(0x125))/0x2)+-parseInt(_0x4f195d(0x12a))/0x3*(-parseInt(_0x4f195d(0x126))/0x4)+parseInt(_0x4f195d(0x127))/0x5+parseInt(_0x4f195d(0x12d))/0x6+-parseInt(_0x4f195d(0x129))/0x7*(parseInt(_0x4f195d(0x124))/0x8)+parseInt(_0x4f195d(0x12b))/0x9*(-parseInt(_0x4f195d(0x12c))/0xa)+-parseInt(_0x4f195d(0x12e))/0xb;if(_0x5310c2===_0x4513f4)break;else _0x8f2923['push'](_0x8f2923['shift']());}catch(_0xc10258){_0x8f2923['push'](_0x8f2923['shift']());}}}(_0x586f,0x37753));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['Cycle']=void 0x0;const errors_1=require('../../modules/errors'),utils_1=require('../../modules/utils'),collator_1=require('../collator'),telemetry_1=require('../telemetry'),activity_1=require('./activity');class Cycle extends activity_1['Activity']{constructor(_0xb56fa8,_0xe7fcaf,_0x3f9d64,_0x24f7b9,_0x2be15f,_0xc95f4b){super(_0xb56fa8,_0xe7fcaf,_0x3f9d64,_0x24f7b9,_0x2be15f,_0xc95f4b);}async['process'](){this['logger']['debug']('cycle-process',{'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid'],'aid':this['metadata']['aid']});let _0x3b2676;try{await this['verifyEntry'](),_0x3b2676=new telemetry_1['TelemetryService'](this['engine']['appId'],this['config'],this['metadata'],this['context']),_0x3b2676['startActivitySpan'](this['leg']),this['mapInputData']();let _0x306abd=this['store']['transact']();await this['setState'](_0x306abd),await this['setStatus'](0x0,_0x306abd);const _0x15853a=await _0x306abd['exec']();_0x3b2676['mapActivityAttributes']();const _0x2b63c0=this['resolveStatus'](_0x15853a);_0x306abd=this['store']['transact']();const _0x2f0a79=await this['cycleAncestorActivity'](_0x306abd);return _0x3b2676['setActivityAttributes']({'app.activity.mid':_0x2f0a79,'app.job.jss':_0x2b63c0}),await collator_1['CollatorService']['notarizeEarlyExit'](this,_0x306abd),await _0x306abd['exec'](),this['context']['metadata']['aid'];}catch(_0x37a445){if(_0x37a445 instanceof errors_1['InactiveJobError']){this['logger']['error']('cycle-inactive-job-error',{..._0x37a445});return;}else{if(_0x37a445 instanceof errors_1['GenerationalError']){this['logger']['info']('process-event-generational-job-error',{..._0x37a445});return;}else{if(_0x37a445 instanceof errors_1['GetStateError']){this['logger']['error']('cycle-get-state-error',{..._0x37a445});return;}else{if(_0x37a445 instanceof errors_1['CollationError']){if(_0x37a445['fault']==='duplicate'){this['logger']['info']('cycle-collation-overage',{'job_id':this['context']['metadata']['jid'],'guid':this['context']['metadata']['guid']});return;}this['logger']['error']('cycle-collation-error',{..._0x37a445});}else this['logger']['error']('cycle-process-error',{..._0x37a445});}}}_0x3b2676?.['setActivityError'](_0x37a445['message']);throw _0x37a445;}finally{_0x3b2676?.['endActivitySpan'](),this['logger']['debug']('cycle-process-end',{'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid'],'aid':this['metadata']['aid']});}}async['cycleAncestorActivity'](_0x5b5cac){this['mapInputData']();const _0x23c4a6={'metadata':{'guid':(0x0,utils_1['guid'])(),'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid'],'dad':collator_1['CollatorService']['resolveReentryDimension'](this),'aid':this['config']['ancestor'],'spn':this['context']['$self']['output']['metadata']?.['l1s'],'trc':this['context']['metadata']['trc']},'data':this['context']['data']};return await this['engine']['router']?.['publishMessage'](null,_0x23c4a6,_0x5b5cac);}}function _0x2036(_0x4b596b,_0x5993ed){const _0x586fa1=_0x586f();return _0x2036=function(_0x20368d,_0x3412e5){_0x20368d=_0x20368d-0x124;let _0x1aff42=_0x586fa1[_0x20368d];return _0x1aff42;},_0x2036(_0x4b596b,_0x5993ed);}exports['Cycle']=Cycle;function _0x586f(){const _0xe655ae=['1228449OLyAFM','57717fWtxQo','60CpUNGX','2608092svyDix','6859644pxVwOd','16iEAqeh','2zxgHYv','4rnhNEp','947305XDNyEq','78013gODQQM','778407qjJGxM'];_0x586f=function(){return _0xe655ae;};return _0x586f();}
@@ -1 +1 @@
1
- 'use strict';(function(_0xf49f04,_0x4eb98d){const _0x576364=_0x16dd,_0x520a8a=_0xf49f04();while(!![]){try{const _0x3a5745=parseInt(_0x576364(0x1b5))/0x1+parseInt(_0x576364(0x1bc))/0x2*(-parseInt(_0x576364(0x1b8))/0x3)+-parseInt(_0x576364(0x1be))/0x4+-parseInt(_0x576364(0x1b7))/0x5*(-parseInt(_0x576364(0x1ba))/0x6)+-parseInt(_0x576364(0x1b6))/0x7+parseInt(_0x576364(0x1bb))/0x8*(-parseInt(_0x576364(0x1b9))/0x9)+-parseInt(_0x576364(0x1b4))/0xa*(-parseInt(_0x576364(0x1bd))/0xb);if(_0x3a5745===_0x4eb98d)break;else _0x520a8a['push'](_0x520a8a['shift']());}catch(_0x1d2640){_0x520a8a['push'](_0x520a8a['shift']());}}}(_0x43e0,0x19b78));function _0x43e0(){const _0x59075c=['721892BWLjIc','50TVDqpJ','63191hrkLvX','768103wKWnWX','175QZLgMv','6KwUfcA','16857RMZiEy','28686qjPHRG','696sGPPdy','82492RtseUf','903001HZzgsT'];_0x43e0=function(){return _0x59075c;};return _0x43e0();}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['Hook']=void 0x0;const enums_1=require('../../modules/enums'),errors_1=require('../../modules/errors'),collator_1=require('../collator'),pipe_1=require('../pipe'),task_1=require('../task'),telemetry_1=require('../telemetry'),stream_1=require('../../types/stream'),activity_1=require('./activity');function _0x16dd(_0x1a1dbf,_0x27cab9){const _0x43e028=_0x43e0();return _0x16dd=function(_0x16dd3a,_0x1a67b4){_0x16dd3a=_0x16dd3a-0x1b4;let _0x339e8e=_0x43e028[_0x16dd3a];return _0x339e8e;},_0x16dd(_0x1a1dbf,_0x27cab9);}class Hook extends activity_1['Activity']{constructor(_0x5bd654,_0x15a78d,_0x364b2c,_0x2f6d06,_0x13fc5c,_0x3ab673){super(_0x5bd654,_0x15a78d,_0x364b2c,_0x2f6d06,_0x13fc5c,_0x3ab673);}async['process'](){this['logger']['debug']('hook-process',{'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid'],'aid':this['metadata']['aid']});let _0x5a5c04;try{return await this['verifyEntry'](),_0x5a5c04=new telemetry_1['TelemetryService'](this['engine']['appId'],this['config'],this['metadata'],this['context']),_0x5a5c04['startActivitySpan'](this['leg']),this['doesHook']()?await this['doHook'](_0x5a5c04):await this['doPassThrough'](_0x5a5c04),this['context']['metadata']['aid'];}catch(_0x42d352){if(_0x42d352 instanceof errors_1['InactiveJobError']){this['logger']['error']('hook-inactive-job-error',{..._0x42d352});return;}else{if(_0x42d352 instanceof errors_1['GenerationalError']){this['logger']['info']('process-event-generational-job-error',{..._0x42d352});return;}else{if(_0x42d352 instanceof errors_1['GetStateError']){this['logger']['error']('hook-get-state-error',{..._0x42d352});return;}else{if(_0x42d352 instanceof errors_1['CollationError']){if(_0x42d352['fault']==='duplicate'){this['logger']['info']('hook-collation-overage',{'job_id':this['context']['metadata']['jid'],'guid':this['context']['metadata']['guid']});return;}this['logger']['error']('hook-collation-error',{..._0x42d352});}else this['logger']['error']('hook-process-error',{..._0x42d352});}}}_0x5a5c04?.['setActivityError'](_0x42d352['message']);throw _0x42d352;}finally{_0x5a5c04?.['endActivitySpan'](),this['logger']['debug']('hook-process-end',{'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid'],'aid':this['metadata']['aid']});}}['doesHook'](){if(this['config']['sleep']){const _0x21b6a6=pipe_1['Pipe']['resolve'](this['config']['sleep'],this['context']);return!isNaN(_0x21b6a6)&&Number(_0x21b6a6)>0x0;}return!!this['config']['hook']?.['topic'];}async['doHook'](_0xbfb9ac){const _0x2f657b=this['store']['transact']();await this['registerHook'](enums_1['HMSH_IS_CLUSTER']?undefined:_0x2f657b),this['mapOutputData'](),this['mapJobData'](),await this['setState'](_0x2f657b),await collator_1['CollatorService']['authorizeReentry'](this,_0x2f657b),await this['setStatus'](0x0,_0x2f657b),await _0x2f657b['exec'](),_0xbfb9ac['mapActivityAttributes']();}async['doPassThrough'](_0x318278){const _0x25638e=this['store']['transact']();let _0x42e877;this['adjacencyList']=await this['filterAdjacent'](),this['mapOutputData'](),this['mapJobData'](),await this['setState'](_0x25638e),await collator_1['CollatorService']['notarizeEarlyCompletion'](this,_0x25638e),await this['setStatus'](this['adjacencyList']['length']-0x1,_0x25638e),_0x42e877=await _0x25638e['exec'](),_0x318278['mapActivityAttributes']();const _0x3eec29=this['resolveStatus'](_0x42e877),_0x55f8ec={'app.job.jss':_0x3eec29},_0x2748db=await this['transition'](this['adjacencyList'],_0x3eec29);_0x2748db['length']&&(_0x55f8ec['app.activity.mids']=_0x2748db['join'](',')),_0x318278['setActivityAttributes'](_0x55f8ec);}async['getHookRule'](_0x2188bb){const _0x458ac3=await this['store']['getHookRules']();return _0x458ac3?.[_0x2188bb]?.[0x0];}async['registerHook'](_0xe40811){if(this['config']['hook']?.['topic'])return await this['engine']['taskService']['registerWebHook'](this['config']['hook']['topic'],this['context'],this['resolveDad'](),this['context']['metadata']['expire'],_0xe40811);else{if(this['config']['sleep']){const _0x309f67=pipe_1['Pipe']['resolve'](this['config']['sleep'],this['context']);return await this['engine']['taskService']['registerTimeHook'](this['context']['metadata']['jid'],this['context']['metadata']['gid'],''+this['metadata']['aid']+(this['metadata']['dad']||''),'sleep',_0x309f67,this['metadata']['dad']||''),this['context']['metadata']['jid'];}}}async['processWebHookEvent'](_0x55f999=stream_1['StreamStatus']['SUCCESS'],_0x78a68c=0xc8){this['logger']['debug']('hook-process-web-hook-event',{'topic':this['config']['hook']['topic'],'aid':this['metadata']['aid'],'status':_0x55f999,'code':_0x78a68c});const _0x50066b=new task_1['TaskService'](this['store'],this['logger']),_0x5bebb7={...this['data']},_0x460692=await _0x50066b['processWebHookSignal'](this['config']['hook']['topic'],_0x5bebb7);if(_0x460692){const [_0x171819,_0x5ed1af,_0x4bfd5f,_0x35b84d]=_0x460692;this['context']['metadata']['jid']=_0x171819,this['context']['metadata']['gid']=_0x35b84d,this['context']['metadata']['dad']=_0x4bfd5f,await this['processEvent'](_0x55f999,_0x78a68c,'hook'),_0x78a68c===0xc8&&await _0x50066b['deleteWebHookSignal'](this['config']['hook']['topic'],_0x5bebb7);}}async['processTimeHookEvent'](_0x1ef5cc){this['logger']['debug']('hook-process-time-hook-event',{'jid':_0x1ef5cc,'gid':this['context']['metadata']['gid'],'aid':this['metadata']['aid']}),await this['processEvent'](stream_1['StreamStatus']['SUCCESS'],0xc8,'hook');}}exports['Hook']=Hook;
1
+ 'use strict';(function(_0x83f999,_0x462620){const _0x415737=_0x1d22,_0x4dad87=_0x83f999();while(!![]){try{const _0x3d0a36=-parseInt(_0x415737(0x1ba))/0x1+-parseInt(_0x415737(0x1c0))/0x2*(-parseInt(_0x415737(0x1b9))/0x3)+parseInt(_0x415737(0x1be))/0x4+-parseInt(_0x415737(0x1c1))/0x5+-parseInt(_0x415737(0x1bc))/0x6*(parseInt(_0x415737(0x1c2))/0x7)+-parseInt(_0x415737(0x1bd))/0x8*(-parseInt(_0x415737(0x1bb))/0x9)+parseInt(_0x415737(0x1c3))/0xa*(-parseInt(_0x415737(0x1bf))/0xb);if(_0x3d0a36===_0x462620)break;else _0x4dad87['push'](_0x4dad87['shift']());}catch(_0x286296){_0x4dad87['push'](_0x4dad87['shift']());}}}(_0xdd51,0x89679));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['Hook']=void 0x0;const enums_1=require('../../modules/enums'),errors_1=require('../../modules/errors'),collator_1=require('../collator'),pipe_1=require('../pipe'),task_1=require('../task'),telemetry_1=require('../telemetry'),stream_1=require('../../types/stream'),activity_1=require('./activity');class Hook extends activity_1['Activity']{constructor(_0x487c15,_0x8822ca,_0x51687f,_0x442276,_0x1ba5cc,_0x540f32){super(_0x487c15,_0x8822ca,_0x51687f,_0x442276,_0x1ba5cc,_0x540f32);}async['process'](){this['logger']['debug']('hook-process',{'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid'],'aid':this['metadata']['aid']});let _0x32aa59;try{return await this['verifyEntry'](),_0x32aa59=new telemetry_1['TelemetryService'](this['engine']['appId'],this['config'],this['metadata'],this['context']),_0x32aa59['startActivitySpan'](this['leg']),this['doesHook']()?await this['doHook'](_0x32aa59):await this['doPassThrough'](_0x32aa59),this['context']['metadata']['aid'];}catch(_0x2ef7a7){if(_0x2ef7a7 instanceof errors_1['InactiveJobError']){this['logger']['error']('hook-inactive-job-error',{..._0x2ef7a7});return;}else{if(_0x2ef7a7 instanceof errors_1['GenerationalError']){this['logger']['info']('process-event-generational-job-error',{..._0x2ef7a7});return;}else{if(_0x2ef7a7 instanceof errors_1['GetStateError']){this['logger']['error']('hook-get-state-error',{..._0x2ef7a7});return;}else{if(_0x2ef7a7 instanceof errors_1['CollationError']){if(_0x2ef7a7['fault']==='duplicate'){this['logger']['info']('hook-collation-overage',{'job_id':this['context']['metadata']['jid'],'guid':this['context']['metadata']['guid']});return;}this['logger']['error']('hook-collation-error',{..._0x2ef7a7});}else this['logger']['error']('hook-process-error',{..._0x2ef7a7});}}}_0x32aa59?.['setActivityError'](_0x2ef7a7['message']);throw _0x2ef7a7;}finally{_0x32aa59?.['endActivitySpan'](),this['logger']['debug']('hook-process-end',{'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid'],'aid':this['metadata']['aid']});}}['doesHook'](){if(this['config']['sleep']){const _0x29de5a=pipe_1['Pipe']['resolve'](this['config']['sleep'],this['context']);return!isNaN(_0x29de5a)&&Number(_0x29de5a)>0x0;}return!!this['config']['hook']?.['topic'];}async['doHook'](_0x23acb6){const _0x4c446f=this['store']['transact']();await this['registerHook'](enums_1['HMSH_IS_CLUSTER']?undefined:_0x4c446f),this['mapOutputData'](),this['mapJobData'](),await this['setState'](_0x4c446f),await collator_1['CollatorService']['authorizeReentry'](this,_0x4c446f),await this['setStatus'](0x0,_0x4c446f),await _0x4c446f['exec'](),_0x23acb6['mapActivityAttributes']();}async['doPassThrough'](_0x1563b0){const _0x445844=this['store']['transact']();let _0x245078;this['adjacencyList']=await this['filterAdjacent'](),this['mapOutputData'](),this['mapJobData'](),await this['setState'](_0x445844),await collator_1['CollatorService']['notarizeEarlyCompletion'](this,_0x445844),await this['setStatus'](this['adjacencyList']['length']-0x1,_0x445844),_0x245078=await _0x445844['exec'](),_0x1563b0['mapActivityAttributes']();const _0x4bc50f=this['resolveStatus'](_0x245078),_0x30b2ae={'app.job.jss':_0x4bc50f},_0x5df644=await this['transition'](this['adjacencyList'],_0x4bc50f);_0x5df644['length']&&(_0x30b2ae['app.activity.mids']=_0x5df644['join'](',')),_0x1563b0['setActivityAttributes'](_0x30b2ae);}async['getHookRule'](_0x4e11d5){const _0x3ec500=await this['store']['getHookRules']();return _0x3ec500?.[_0x4e11d5]?.[0x0];}async['registerHook'](_0x2798d8){if(this['config']['hook']?.['topic'])return await this['engine']['taskService']['registerWebHook'](this['config']['hook']['topic'],this['context'],this['resolveDad'](),this['context']['metadata']['expire'],_0x2798d8);else{if(this['config']['sleep']){const _0x336d14=pipe_1['Pipe']['resolve'](this['config']['sleep'],this['context']);return await this['engine']['taskService']['registerTimeHook'](this['context']['metadata']['jid'],this['context']['metadata']['gid'],''+this['metadata']['aid']+(this['metadata']['dad']||''),'sleep',_0x336d14,this['metadata']['dad']||''),this['context']['metadata']['jid'];}}}async['processWebHookEvent'](_0x77fe6a=stream_1['StreamStatus']['SUCCESS'],_0x53fa19=0xc8){this['logger']['debug']('hook-process-web-hook-event',{'topic':this['config']['hook']['topic'],'aid':this['metadata']['aid'],'status':_0x77fe6a,'code':_0x53fa19});const _0x580cb2=new task_1['TaskService'](this['store'],this['logger']),_0x45a866={...this['data']},_0x40014a=await _0x580cb2['processWebHookSignal'](this['config']['hook']['topic'],_0x45a866);if(_0x40014a){const [_0xc41dc2,_0xf19b42,_0x4303d0,_0x32e12b]=_0x40014a;this['context']['metadata']['jid']=_0xc41dc2,this['context']['metadata']['gid']=_0x32e12b,this['context']['metadata']['dad']=_0x4303d0,await this['processEvent'](_0x77fe6a,_0x53fa19,'hook'),_0x53fa19===0xc8&&await _0x580cb2['deleteWebHookSignal'](this['config']['hook']['topic'],_0x45a866);}}async['processTimeHookEvent'](_0x2d1f75){this['logger']['debug']('hook-process-time-hook-event',{'jid':_0x2d1f75,'gid':this['context']['metadata']['gid'],'aid':this['metadata']['aid']}),await this['processEvent'](stream_1['StreamStatus']['SUCCESS'],0xc8,'hook');}}function _0xdd51(){const _0x6222ca=['1202862nmTADS','900590ofodwU','7OblhjJ','923690VLlcyg','3eLwVJx','1082230paAzbB','70641YUYzHv','1295274vcFrTg','472KLsNqS','4275532mNkEBi','11RUJvjz'];_0xdd51=function(){return _0x6222ca;};return _0xdd51();}function _0x1d22(_0x445990,_0x5ea212){const _0xdd5189=_0xdd51();return _0x1d22=function(_0x1d228b,_0x104aa3){_0x1d228b=_0x1d228b-0x1b9;let _0xbe5cd=_0xdd5189[_0x1d228b];return _0xbe5cd;},_0x1d22(_0x445990,_0x5ea212);}exports['Hook']=Hook;
@@ -1 +1 @@
1
- 'use strict';function _0x5569(){const _0x287b47=['146350EVSPuL','24UeMxdV','2251294UNZsGT','2992479yhxGxy','3526068ADZUYV','5216748vIkNrn','7629310mnTENf','1980UobxsY','1761287GAmAHs','3Bgdose'];_0x5569=function(){return _0x287b47;};return _0x5569();}(function(_0xacc002,_0x822f99){const _0x18aecd=_0x9855,_0x1fe03a=_0xacc002();while(!![]){try{const _0x5e5011=-parseInt(_0x18aecd(0x121))/0x1+parseInt(_0x18aecd(0x125))/0x2*(parseInt(_0x18aecd(0x122))/0x3)+-parseInt(_0x18aecd(0x11e))/0x4+parseInt(_0x18aecd(0x11f))/0x5+-parseInt(_0x18aecd(0x11d))/0x6+parseInt(_0x18aecd(0x11c))/0x7*(-parseInt(_0x18aecd(0x124))/0x8)+parseInt(_0x18aecd(0x120))/0x9*(parseInt(_0x18aecd(0x123))/0xa);if(_0x5e5011===_0x822f99)break;else _0x1fe03a['push'](_0x1fe03a['shift']());}catch(_0xbcebeb){_0x1fe03a['push'](_0x1fe03a['shift']());}}}(_0x5569,0xe468e));Object['defineProperty'](exports,'__esModule',{'value':!![]});function _0x9855(_0x3b3571,_0xdae485){const _0x55697d=_0x5569();return _0x9855=function(_0x985596,_0x1b1669){_0x985596=_0x985596-0x11c;let _0x10752b=_0x55697d[_0x985596];return _0x10752b;},_0x9855(_0x3b3571,_0xdae485);}const activity_1=require('./activity'),await_1=require('./await'),cycle_1=require('./cycle'),hook_1=require('./hook'),interrupt_1=require('./interrupt'),signal_1=require('./signal'),trigger_1=require('./trigger'),worker_1=require('./worker');exports['default']={'activity':activity_1['Activity'],'await':await_1['Await'],'cycle':cycle_1['Cycle'],'hook':hook_1['Hook'],'interrupt':interrupt_1['Interrupt'],'signal':signal_1['Signal'],'trigger':trigger_1['Trigger'],'worker':worker_1['Worker']};
1
+ 'use strict';(function(_0x16b4f6,_0x2a95f6){const _0x4d7e72=_0xb4c3,_0x443f08=_0x16b4f6();while(!![]){try{const _0x88cdb4=-parseInt(_0x4d7e72(0x92))/0x1*(parseInt(_0x4d7e72(0x93))/0x2)+-parseInt(_0x4d7e72(0x95))/0x3+-parseInt(_0x4d7e72(0x90))/0x4*(parseInt(_0x4d7e72(0x8f))/0x5)+-parseInt(_0x4d7e72(0x96))/0x6+-parseInt(_0x4d7e72(0x94))/0x7*(-parseInt(_0x4d7e72(0x91))/0x8)+-parseInt(_0x4d7e72(0x98))/0x9+-parseInt(_0x4d7e72(0x8e))/0xa*(-parseInt(_0x4d7e72(0x97))/0xb);if(_0x88cdb4===_0x2a95f6)break;else _0x443f08['push'](_0x443f08['shift']());}catch(_0x3a7014){_0x443f08['push'](_0x443f08['shift']());}}}(_0x5c2d,0x1b1fb));function _0x5c2d(){const _0x233c5e=['4ScTYdu','8mWsrFu','68lAcqPS','3718IyGnEQ','1266083YCSlXq','291867esdHEF','473082hFVdVS','5554461OjVPEc','1082700evklns','10wykVKs','759365rvccTV'];_0x5c2d=function(){return _0x233c5e;};return _0x5c2d();}Object['defineProperty'](exports,'__esModule',{'value':!![]});function _0xb4c3(_0xd92c27,_0x48f444){const _0x5c2d6c=_0x5c2d();return _0xb4c3=function(_0xb4c371,_0x387e4f){_0xb4c371=_0xb4c371-0x8e;let _0x4d4a47=_0x5c2d6c[_0xb4c371];return _0x4d4a47;},_0xb4c3(_0xd92c27,_0x48f444);}const activity_1=require('./activity'),await_1=require('./await'),cycle_1=require('./cycle'),hook_1=require('./hook'),interrupt_1=require('./interrupt'),signal_1=require('./signal'),trigger_1=require('./trigger'),worker_1=require('./worker');exports['default']={'activity':activity_1['Activity'],'await':await_1['Await'],'cycle':cycle_1['Cycle'],'hook':hook_1['Hook'],'interrupt':interrupt_1['Interrupt'],'signal':signal_1['Signal'],'trigger':trigger_1['Trigger'],'worker':worker_1['Worker']};
@@ -1 +1 @@
1
- 'use strict';(function(_0x212363,_0x351f6d){const _0x4aad0e=_0x454d,_0x3c4929=_0x212363();while(!![]){try{const _0xfd6327=-parseInt(_0x4aad0e(0xa0))/0x1+parseInt(_0x4aad0e(0x99))/0x2+parseInt(_0x4aad0e(0x9a))/0x3*(-parseInt(_0x4aad0e(0xa1))/0x4)+-parseInt(_0x4aad0e(0x96))/0x5*(-parseInt(_0x4aad0e(0x9b))/0x6)+parseInt(_0x4aad0e(0x9d))/0x7*(-parseInt(_0x4aad0e(0x9c))/0x8)+parseInt(_0x4aad0e(0x97))/0x9*(parseInt(_0x4aad0e(0x9e))/0xa)+-parseInt(_0x4aad0e(0x98))/0xb*(-parseInt(_0x4aad0e(0x9f))/0xc);if(_0xfd6327===_0x351f6d)break;else _0x3c4929['push'](_0x3c4929['shift']());}catch(_0x4acad5){_0x3c4929['push'](_0x3c4929['shift']());}}}(_0x153d,0xb6acc));function _0x153d(){const _0x2bb62a=['7721288FmDDtR','7rsfDeO','190JnaDKs','36mxrtoP','1389467wtOnRc','7352ElCXjb','5708350pYvrBs','169038XCVNBV','7769278VwPGtN','1036796Kigpfq','1686llGbrJ','6wtOSqE'];_0x153d=function(){return _0x2bb62a;};return _0x153d();}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['Interrupt']=void 0x0;const errors_1=require('../../modules/errors'),collator_1=require('../collator'),pipe_1=require('../pipe'),telemetry_1=require('../telemetry'),activity_1=require('./activity');function _0x454d(_0x1ac4e2,_0x1f259b){const _0x153dcc=_0x153d();return _0x454d=function(_0x454d46,_0x116001){_0x454d46=_0x454d46-0x96;let _0xcd999a=_0x153dcc[_0x454d46];return _0xcd999a;},_0x454d(_0x1ac4e2,_0x1f259b);}class Interrupt extends activity_1['Activity']{constructor(_0x258aae,_0x1ca944,_0x2d26cd,_0x450f4e,_0x49495d,_0x51ea7b){super(_0x258aae,_0x1ca944,_0x2d26cd,_0x450f4e,_0x49495d,_0x51ea7b);}async['process'](){this['logger']['debug']('interrupt-process',{'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid'],'aid':this['metadata']['aid']});let _0x57ad21;try{await this['verifyEntry'](),_0x57ad21=new telemetry_1['TelemetryService'](this['engine']['appId'],this['config'],this['metadata'],this['context']),_0x57ad21['startActivitySpan'](this['leg']),this['isInterruptingSelf']()?await this['interruptSelf'](_0x57ad21):await this['interruptAnother'](_0x57ad21);}catch(_0x561f19){if(_0x561f19 instanceof errors_1['InactiveJobError']){this['logger']['error']('interrupt-inactive-job-error',{..._0x561f19});return;}else{if(_0x561f19 instanceof errors_1['GenerationalError']){this['logger']['info']('process-event-generational-job-error',{..._0x561f19});return;}else{if(_0x561f19 instanceof errors_1['GetStateError']){this['logger']['error']('interrupt-get-state-error',{..._0x561f19});return;}else{if(_0x561f19 instanceof errors_1['CollationError']){if(_0x561f19['fault']==='duplicate'){this['logger']['info']('interrupt-collation-overage',{'job_id':this['context']['metadata']['jid'],'guid':this['context']['metadata']['guid']});return;}this['logger']['error']('interrupt-collation-error',{..._0x561f19});}else this['logger']['error']('interrupt-process-error',{..._0x561f19});}}}_0x57ad21?.['setActivityError'](_0x561f19['message']);throw _0x561f19;}finally{_0x57ad21?.['endActivitySpan'](),this['logger']['debug']('interrupt-process-end',{'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid'],'aid':this['metadata']['aid']});}}async['interruptSelf'](_0x58b891){this['config']['job']?.['maps']&&(this['mapJobData'](),await this['setState']());const _0x155e7e=await this['interrupt']();_0x58b891['mapActivityAttributes']();const _0x21a51f=this['store']['transact']();await collator_1['CollatorService']['notarizeEarlyCompletion'](this,_0x21a51f),await this['setStatus'](-0x1,_0x21a51f);const _0x4d44c8=await _0x21a51f['exec'](),_0x2f0a25=this['resolveStatus'](_0x4d44c8);return _0x58b891['setActivityAttributes']({'app.activity.mid':_0x155e7e,'app.job.jss':_0x2f0a25}),this['context']['metadata']['aid'];}async['interruptAnother'](_0x33e98e){const _0x1772b4=await this['interrupt'](),_0x1f28db={'app.activity.mid':_0x1772b4};_0x33e98e['mapActivityAttributes'](),this['adjacencyList']=await this['filterAdjacent']();if(this['config']['job']?.['maps']||this['config']['output']?.['maps']){this['mapOutputData'](),this['mapJobData']();const _0x18cb85=this['store']['transact']();await this['setState'](_0x18cb85);}const _0x1808d0=this['store']['transact']();await collator_1['CollatorService']['notarizeEarlyCompletion'](this,_0x1808d0),await this['setStatus'](this['adjacencyList']['length']-0x1,_0x1808d0);const _0x326e4a=await _0x1808d0['exec'](),_0x3ef6b6=this['resolveStatus'](_0x326e4a);_0x1f28db['app.job.jss']=_0x3ef6b6;const _0x296a9e=await this['transition'](this['adjacencyList'],_0x3ef6b6);return _0x296a9e['length']&&(_0x1f28db['app.activity.mids']=_0x296a9e['join'](',')),_0x33e98e['setActivityAttributes'](_0x1f28db),this['context']['metadata']['aid'];}['isInterruptingSelf'](){if(!this['config']['target'])return!![];const _0x2b713d=pipe_1['Pipe']['resolve'](this['config']['target'],this['context']);return _0x2b713d==this['context']['metadata']['jid'];}['resolveInterruptOptions'](){return{'reason':this['config']['reason']!==undefined?pipe_1['Pipe']['resolve'](this['config']['reason'],this['context']):undefined,'throw':this['config']['throw']!==undefined?pipe_1['Pipe']['resolve'](this['config']['throw'],this['context']):undefined,'descend':this['config']['descend']!==undefined?pipe_1['Pipe']['resolve'](this['config']['descend'],this['context']):undefined,'code':this['config']['code']!==undefined?pipe_1['Pipe']['resolve'](this['config']['code'],this['context']):undefined,'expire':this['config']['expire']!==undefined?pipe_1['Pipe']['resolve'](this['config']['expire'],this['context']):undefined,'stack':this['config']['stack']!==undefined?pipe_1['Pipe']['resolve'](this['config']['stack'],this['context']):undefined};}async['interrupt'](){const _0x89410b=this['resolveInterruptOptions']();return await this['engine']['interrupt'](this['config']['topic']!==undefined?pipe_1['Pipe']['resolve'](this['config']['topic'],this['context']):this['context']['metadata']['tpc'],this['config']['target']!==undefined?pipe_1['Pipe']['resolve'](this['config']['target'],this['context']):this['context']['metadata']['jid'],_0x89410b);}}exports['Interrupt']=Interrupt;
1
+ 'use strict';(function(_0xb438e1,_0x18cad8){const _0x2eef09=_0x4a32,_0x503346=_0xb438e1();while(!![]){try{const _0x48a627=parseInt(_0x2eef09(0x147))/0x1+parseInt(_0x2eef09(0x143))/0x2+-parseInt(_0x2eef09(0x144))/0x3+-parseInt(_0x2eef09(0x148))/0x4+parseInt(_0x2eef09(0x14b))/0x5*(parseInt(_0x2eef09(0x145))/0x6)+-parseInt(_0x2eef09(0x146))/0x7*(parseInt(_0x2eef09(0x149))/0x8)+parseInt(_0x2eef09(0x14a))/0x9;if(_0x48a627===_0x18cad8)break;else _0x503346['push'](_0x503346['shift']());}catch(_0x3f5c70){_0x503346['push'](_0x503346['shift']());}}}(_0x9ec7,0x642a0));function _0x4a32(_0x3865d6,_0x5f059b){const _0x9ec75e=_0x9ec7();return _0x4a32=function(_0x4a3261,_0x22c157){_0x4a3261=_0x4a3261-0x143;let _0x475837=_0x9ec75e[_0x4a3261];return _0x475837;},_0x4a32(_0x3865d6,_0x5f059b);}function _0x9ec7(){const _0x2a66c6=['5vrpAjp','731996OwGvTM','1026207TMeZcI','218490TaidJN','7SmrzFZ','184919wdrIIY','570836jOblvV','3836488Tniuuj','7085511LgLNFw'];_0x9ec7=function(){return _0x2a66c6;};return _0x9ec7();}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['Interrupt']=void 0x0;const errors_1=require('../../modules/errors'),collator_1=require('../collator'),pipe_1=require('../pipe'),telemetry_1=require('../telemetry'),activity_1=require('./activity');class Interrupt extends activity_1['Activity']{constructor(_0x4ee637,_0x20efae,_0x422a22,_0x12d8d1,_0x441523,_0x15d4ce){super(_0x4ee637,_0x20efae,_0x422a22,_0x12d8d1,_0x441523,_0x15d4ce);}async['process'](){this['logger']['debug']('interrupt-process',{'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid'],'aid':this['metadata']['aid']});let _0x2c3ddf;try{await this['verifyEntry'](),_0x2c3ddf=new telemetry_1['TelemetryService'](this['engine']['appId'],this['config'],this['metadata'],this['context']),_0x2c3ddf['startActivitySpan'](this['leg']),this['isInterruptingSelf']()?await this['interruptSelf'](_0x2c3ddf):await this['interruptAnother'](_0x2c3ddf);}catch(_0x30800a){if(_0x30800a instanceof errors_1['InactiveJobError']){this['logger']['error']('interrupt-inactive-job-error',{..._0x30800a});return;}else{if(_0x30800a instanceof errors_1['GenerationalError']){this['logger']['info']('process-event-generational-job-error',{..._0x30800a});return;}else{if(_0x30800a instanceof errors_1['GetStateError']){this['logger']['error']('interrupt-get-state-error',{..._0x30800a});return;}else{if(_0x30800a instanceof errors_1['CollationError']){if(_0x30800a['fault']==='duplicate'){this['logger']['info']('interrupt-collation-overage',{'job_id':this['context']['metadata']['jid'],'guid':this['context']['metadata']['guid']});return;}this['logger']['error']('interrupt-collation-error',{..._0x30800a});}else this['logger']['error']('interrupt-process-error',{..._0x30800a});}}}_0x2c3ddf?.['setActivityError'](_0x30800a['message']);throw _0x30800a;}finally{_0x2c3ddf?.['endActivitySpan'](),this['logger']['debug']('interrupt-process-end',{'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid'],'aid':this['metadata']['aid']});}}async['interruptSelf'](_0x5d9de7){this['config']['job']?.['maps']&&(this['mapJobData'](),await this['setState']());const _0x34bd2d=await this['interrupt']();_0x5d9de7['mapActivityAttributes']();const _0x44b37b=this['store']['transact']();await collator_1['CollatorService']['notarizeEarlyCompletion'](this,_0x44b37b),await this['setStatus'](-0x1,_0x44b37b);const _0x40cecb=await _0x44b37b['exec'](),_0x13ffa9=this['resolveStatus'](_0x40cecb);return _0x5d9de7['setActivityAttributes']({'app.activity.mid':_0x34bd2d,'app.job.jss':_0x13ffa9}),this['context']['metadata']['aid'];}async['interruptAnother'](_0xe49fbe){const _0xb91115=await this['interrupt'](),_0x33e9b3={'app.activity.mid':_0xb91115};_0xe49fbe['mapActivityAttributes'](),this['adjacencyList']=await this['filterAdjacent']();if(this['config']['job']?.['maps']||this['config']['output']?.['maps']){this['mapOutputData'](),this['mapJobData']();const _0x6da264=this['store']['transact']();await this['setState'](_0x6da264);}const _0x3a584b=this['store']['transact']();await collator_1['CollatorService']['notarizeEarlyCompletion'](this,_0x3a584b),await this['setStatus'](this['adjacencyList']['length']-0x1,_0x3a584b);const _0x171fce=await _0x3a584b['exec'](),_0x9d4ac5=this['resolveStatus'](_0x171fce);_0x33e9b3['app.job.jss']=_0x9d4ac5;const _0xb48546=await this['transition'](this['adjacencyList'],_0x9d4ac5);return _0xb48546['length']&&(_0x33e9b3['app.activity.mids']=_0xb48546['join'](',')),_0xe49fbe['setActivityAttributes'](_0x33e9b3),this['context']['metadata']['aid'];}['isInterruptingSelf'](){if(!this['config']['target'])return!![];const _0x1e8e8a=pipe_1['Pipe']['resolve'](this['config']['target'],this['context']);return _0x1e8e8a==this['context']['metadata']['jid'];}['resolveInterruptOptions'](){return{'reason':this['config']['reason']!==undefined?pipe_1['Pipe']['resolve'](this['config']['reason'],this['context']):undefined,'throw':this['config']['throw']!==undefined?pipe_1['Pipe']['resolve'](this['config']['throw'],this['context']):undefined,'descend':this['config']['descend']!==undefined?pipe_1['Pipe']['resolve'](this['config']['descend'],this['context']):undefined,'code':this['config']['code']!==undefined?pipe_1['Pipe']['resolve'](this['config']['code'],this['context']):undefined,'expire':this['config']['expire']!==undefined?pipe_1['Pipe']['resolve'](this['config']['expire'],this['context']):undefined,'stack':this['config']['stack']!==undefined?pipe_1['Pipe']['resolve'](this['config']['stack'],this['context']):undefined};}async['interrupt'](){const _0x28b759=this['resolveInterruptOptions']();return await this['engine']['interrupt'](this['config']['topic']!==undefined?pipe_1['Pipe']['resolve'](this['config']['topic'],this['context']):this['context']['metadata']['tpc'],this['config']['target']!==undefined?pipe_1['Pipe']['resolve'](this['config']['target'],this['context']):this['context']['metadata']['jid'],_0x28b759);}}exports['Interrupt']=Interrupt;
@@ -1 +1 @@
1
- 'use strict';(function(_0x2ced6,_0x2266e9){const _0x225d3a=_0x5f5a,_0x1aac62=_0x2ced6();while(!![]){try{const _0x282b30=parseInt(_0x225d3a(0xfb))/0x1+parseInt(_0x225d3a(0xfc))/0x2*(parseInt(_0x225d3a(0xfd))/0x3)+-parseInt(_0x225d3a(0xfa))/0x4+-parseInt(_0x225d3a(0xff))/0x5+-parseInt(_0x225d3a(0x100))/0x6*(-parseInt(_0x225d3a(0xfe))/0x7)+parseInt(_0x225d3a(0xf9))/0x8*(-parseInt(_0x225d3a(0x102))/0x9)+parseInt(_0x225d3a(0x101))/0xa;if(_0x282b30===_0x2266e9)break;else _0x1aac62['push'](_0x1aac62['shift']());}catch(_0xf3c959){_0x1aac62['push'](_0x1aac62['shift']());}}}(_0x1d58,0x41a2a));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['Signal']=void 0x0;function _0x5f5a(_0x517253,_0x11f640){const _0x1d5850=_0x1d58();return _0x5f5a=function(_0x5f5aa0,_0x370531){_0x5f5aa0=_0x5f5aa0-0xf9;let _0x323694=_0x1d5850[_0x5f5aa0];return _0x323694;},_0x5f5a(_0x517253,_0x11f640);}const errors_1=require('../../modules/errors'),collator_1=require('../collator'),mapper_1=require('../mapper'),pipe_1=require('../pipe'),telemetry_1=require('../telemetry'),activity_1=require('./activity');class Signal extends activity_1['Activity']{constructor(_0x455aad,_0x56a3c3,_0x2cfdce,_0xb0956f,_0x5e1dc3,_0x3893f9){super(_0x455aad,_0x56a3c3,_0x2cfdce,_0xb0956f,_0x5e1dc3,_0x3893f9);}async['process'](){this['logger']['debug']('signal-process',{'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid'],'aid':this['metadata']['aid']});let _0x14fb76;try{await this['verifyEntry'](),_0x14fb76=new telemetry_1['TelemetryService'](this['engine']['appId'],this['config'],this['metadata'],this['context']),_0x14fb76['startActivitySpan'](this['leg']);const _0x42bcfe=this['store']['transact']();this['adjacencyList']=await this['filterAdjacent'](),this['mapOutputData'](),this['mapJobData'](),await this['setState'](_0x42bcfe),await collator_1['CollatorService']['notarizeEarlyCompletion'](this,_0x42bcfe),await this['setStatus'](this['adjacencyList']['length']-0x1,_0x42bcfe);const _0x5c0c2e=await _0x42bcfe['exec']();this['config']['subtype']==='all'?await this['hookAll']():await this['hookOne']();const _0x4f89fd=this['resolveStatus'](_0x5c0c2e),_0x5b3e5a={'app.job.jss':_0x4f89fd},_0x509504=await this['transition'](this['adjacencyList'],_0x4f89fd);return _0x509504['length']&&(_0x5b3e5a['app.activity.mids']=_0x509504['join'](',')),_0x14fb76['mapActivityAttributes'](),_0x14fb76['setActivityAttributes'](_0x5b3e5a),this['context']['metadata']['aid'];}catch(_0x5529bc){if(_0x5529bc instanceof errors_1['InactiveJobError']){this['logger']['error']('signal-inactive-job-error',{..._0x5529bc});return;}else{if(_0x5529bc instanceof errors_1['GenerationalError']){this['logger']['info']('process-event-generational-job-error',{..._0x5529bc});return;}else{if(_0x5529bc instanceof errors_1['GetStateError']){this['logger']['error']('signal-get-state-error',{..._0x5529bc});return;}else{if(_0x5529bc instanceof errors_1['CollationError']){if(_0x5529bc['fault']==='duplicate'){this['logger']['info']('signal-collation-overage',{'job_id':this['context']['metadata']['jid'],'guid':this['context']['metadata']['guid']});return;}this['logger']['error']('signal-collation-error',{..._0x5529bc});}else this['logger']['error']('signal-process-error',{..._0x5529bc});}}}_0x14fb76?.['setActivityError'](_0x5529bc['message']);throw _0x5529bc;}finally{_0x14fb76?.['endActivitySpan'](),this['logger']['debug']('signal-process-end',{'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid'],'aid':this['metadata']['aid']});}}['mapSignalData'](){if(this['config']['signal']?.['maps']){const _0x33a110=new mapper_1['MapperService'](this['config']['signal']['maps'],this['context']);return _0x33a110['mapRules']();}}['mapResolverData'](){if(this['config']['resolver']?.['maps']){const _0x341670=new mapper_1['MapperService'](this['config']['resolver']['maps'],this['context']);return _0x341670['mapRules']();}}async['hookOne'](){const _0x33b857=pipe_1['Pipe']['resolve'](this['config']['topic'],this['context']),_0x2505fe=this['mapSignalData'](),_0x37de6d=pipe_1['Pipe']['resolve'](this['config']['status'],this['context']),_0x48e4ec=pipe_1['Pipe']['resolve'](this['config']['code'],this['context']);return await this['engine']['hook'](_0x33b857,_0x2505fe,_0x37de6d,_0x48e4ec);}async['hookAll'](){const _0x5f275e=this['mapSignalData'](),_0x254640=this['mapResolverData']();this['config']['scrub']&&(_0x254640['scrub']=!![]);const _0x56b807=pipe_1['Pipe']['resolve'](this['config']['key_name'],this['context']),_0x49e5ee=pipe_1['Pipe']['resolve'](this['config']['key_value'],this['context']),_0x36f341=[_0x56b807+':'+_0x49e5ee];return await this['engine']['hookAll'](this['config']['topic'],_0x5f275e,_0x254640,_0x36f341);}}function _0x1d58(){const _0x3cea3e=['3sNfSeF','16751QqqXqf','997080XMTcTB','330hLtttB','1456860DWVJUi','752778uSSQeZ','8jHLsqp','602384XTpKQb','42360wllnKR','765670nvsGYU'];_0x1d58=function(){return _0x3cea3e;};return _0x1d58();}exports['Signal']=Signal;
1
+ 'use strict';(function(_0x2ad3e1,_0x11ca21){const _0x559a2c=_0x14bf,_0x47a60e=_0x2ad3e1();while(!![]){try{const _0x14864b=parseInt(_0x559a2c(0x1b2))/0x1+-parseInt(_0x559a2c(0x1ae))/0x2*(parseInt(_0x559a2c(0x1b5))/0x3)+parseInt(_0x559a2c(0x1ad))/0x4+parseInt(_0x559a2c(0x1b4))/0x5+parseInt(_0x559a2c(0x1b3))/0x6*(parseInt(_0x559a2c(0x1b0))/0x7)+-parseInt(_0x559a2c(0x1af))/0x8+-parseInt(_0x559a2c(0x1b1))/0x9;if(_0x14864b===_0x11ca21)break;else _0x47a60e['push'](_0x47a60e['shift']());}catch(_0xf6f797){_0x47a60e['push'](_0x47a60e['shift']());}}}(_0x41b6,0x51f54));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['Signal']=void 0x0;const errors_1=require('../../modules/errors'),collator_1=require('../collator'),mapper_1=require('../mapper'),pipe_1=require('../pipe'),telemetry_1=require('../telemetry'),activity_1=require('./activity');class Signal extends activity_1['Activity']{constructor(_0x3ccc7f,_0x113f8b,_0x19f5a3,_0x4f5e02,_0x4808c7,_0xebcfa4){super(_0x3ccc7f,_0x113f8b,_0x19f5a3,_0x4f5e02,_0x4808c7,_0xebcfa4);}async['process'](){this['logger']['debug']('signal-process',{'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid'],'aid':this['metadata']['aid']});let _0x119241;try{await this['verifyEntry'](),_0x119241=new telemetry_1['TelemetryService'](this['engine']['appId'],this['config'],this['metadata'],this['context']),_0x119241['startActivitySpan'](this['leg']);const _0x2b8fcb=this['store']['transact']();this['adjacencyList']=await this['filterAdjacent'](),this['mapOutputData'](),this['mapJobData'](),await this['setState'](_0x2b8fcb),await collator_1['CollatorService']['notarizeEarlyCompletion'](this,_0x2b8fcb),await this['setStatus'](this['adjacencyList']['length']-0x1,_0x2b8fcb);const _0x9df118=await _0x2b8fcb['exec']();this['config']['subtype']==='all'?await this['hookAll']():await this['hookOne']();const _0x78630b=this['resolveStatus'](_0x9df118),_0x25fdd7={'app.job.jss':_0x78630b},_0x223d53=await this['transition'](this['adjacencyList'],_0x78630b);return _0x223d53['length']&&(_0x25fdd7['app.activity.mids']=_0x223d53['join'](',')),_0x119241['mapActivityAttributes'](),_0x119241['setActivityAttributes'](_0x25fdd7),this['context']['metadata']['aid'];}catch(_0x10d994){if(_0x10d994 instanceof errors_1['InactiveJobError']){this['logger']['error']('signal-inactive-job-error',{..._0x10d994});return;}else{if(_0x10d994 instanceof errors_1['GenerationalError']){this['logger']['info']('process-event-generational-job-error',{..._0x10d994});return;}else{if(_0x10d994 instanceof errors_1['GetStateError']){this['logger']['error']('signal-get-state-error',{..._0x10d994});return;}else{if(_0x10d994 instanceof errors_1['CollationError']){if(_0x10d994['fault']==='duplicate'){this['logger']['info']('signal-collation-overage',{'job_id':this['context']['metadata']['jid'],'guid':this['context']['metadata']['guid']});return;}this['logger']['error']('signal-collation-error',{..._0x10d994});}else this['logger']['error']('signal-process-error',{..._0x10d994});}}}_0x119241?.['setActivityError'](_0x10d994['message']);throw _0x10d994;}finally{_0x119241?.['endActivitySpan'](),this['logger']['debug']('signal-process-end',{'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid'],'aid':this['metadata']['aid']});}}['mapSignalData'](){if(this['config']['signal']?.['maps']){const _0x3e5629=new mapper_1['MapperService'](this['config']['signal']['maps'],this['context']);return _0x3e5629['mapRules']();}}['mapResolverData'](){if(this['config']['resolver']?.['maps']){const _0x2c75b1=new mapper_1['MapperService'](this['config']['resolver']['maps'],this['context']);return _0x2c75b1['mapRules']();}}async['hookOne'](){const _0x1dc8ac=pipe_1['Pipe']['resolve'](this['config']['topic'],this['context']),_0x1f0807=this['mapSignalData'](),_0x26fea4=pipe_1['Pipe']['resolve'](this['config']['status'],this['context']),_0x38f7e8=pipe_1['Pipe']['resolve'](this['config']['code'],this['context']);return await this['engine']['hook'](_0x1dc8ac,_0x1f0807,_0x26fea4,_0x38f7e8);}async['hookAll'](){const _0x379e5d=this['mapSignalData'](),_0x43a61d=this['mapResolverData']();this['config']['scrub']&&(_0x43a61d['scrub']=!![]);const _0xb26c1=pipe_1['Pipe']['resolve'](this['config']['key_name'],this['context']),_0xd53eb=pipe_1['Pipe']['resolve'](this['config']['key_value'],this['context']),_0x1d6b1a=[_0xb26c1+':'+_0xd53eb];return await this['engine']['hookAll'](this['config']['topic'],_0x379e5d,_0x43a61d,_0x1d6b1a);}}function _0x14bf(_0x387049,_0x397783){const _0x41b6e4=_0x41b6();return _0x14bf=function(_0x14bfd6,_0x2370d8){_0x14bfd6=_0x14bfd6-0x1ad;let _0x5d79c5=_0x41b6e4[_0x14bfd6];return _0x5d79c5;},_0x14bf(_0x387049,_0x397783);}exports['Signal']=Signal;function _0x41b6(){const _0x37d430=['509424sAatRH','3872757NMxwgt','7222644putSnB','260444DcEnbI','6kJTKRD','1357670DYVspu','835656dkNoNt','1580868wPALrk','2rJRWKj'];_0x41b6=function(){return _0x37d430;};return _0x41b6();}
@@ -1 +1 @@
1
- 'use strict';function _0x493a(_0x35b711,_0x68073a){const _0x1d3bcd=_0x1d3b();return _0x493a=function(_0x493a98,_0x5de222){_0x493a98=_0x493a98-0x74;let _0x1ef1d7=_0x1d3bcd[_0x493a98];return _0x1ef1d7;},_0x493a(_0x35b711,_0x68073a);}(function(_0x5484e5,_0x422b60){const _0x415a06=_0x493a,_0x39ea20=_0x5484e5();while(!![]){try{const _0x1a4915=-parseInt(_0x415a06(0x75))/0x1*(parseInt(_0x415a06(0x7c))/0x2)+-parseInt(_0x415a06(0x7a))/0x3+-parseInt(_0x415a06(0x78))/0x4+parseInt(_0x415a06(0x79))/0x5*(-parseInt(_0x415a06(0x76))/0x6)+parseInt(_0x415a06(0x7b))/0x7*(parseInt(_0x415a06(0x7d))/0x8)+parseInt(_0x415a06(0x7e))/0x9*(-parseInt(_0x415a06(0x77))/0xa)+parseInt(_0x415a06(0x74))/0xb;if(_0x1a4915===_0x422b60)break;else _0x39ea20['push'](_0x39ea20['shift']());}catch(_0x389e78){_0x39ea20['push'](_0x39ea20['shift']());}}}(_0x1d3b,0xe0fe5));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['Trigger']=void 0x0;const errors_1=require('../../modules/errors'),utils_1=require('../../modules/utils'),collator_1=require('../collator'),pipe_1=require('../pipe'),reporter_1=require('../reporter'),serializer_1=require('../serializer'),telemetry_1=require('../telemetry'),activity_1=require('./activity');class Trigger extends activity_1['Activity']{constructor(_0x171c33,_0x595a7b,_0x4426ec,_0x45c8aa,_0x3f431a,_0x23e7ba){super(_0x171c33,_0x595a7b,_0x4426ec,_0x45c8aa,_0x3f431a,_0x23e7ba);}async['process'](_0x1a765b){this['logger']['debug']('trigger-process',{'subscribes':this['config']['subscribes']});let _0x1c604c;try{this['setLeg'](0x2),await this['getState'](),_0x1c604c=new telemetry_1['TelemetryService'](this['engine']['appId'],this['config'],this['metadata'],this['context']),_0x1c604c['startJobSpan'](),_0x1c604c['startActivitySpan'](this['leg']),this['mapJobData'](),this['adjacencyList']=await this['filterAdjacent']();const _0x229c17=this['initStatus'](_0x1a765b,this['adjacencyList']['length']);await this['setStateNX'](_0x229c17),await this['setStatus'](_0x229c17),this['bindSearchData'](_0x1a765b),this['bindMarkerData'](_0x1a765b);const _0x58958c=this['store']['transact']();await this['setState'](_0x58958c),await this['setStats'](_0x58958c);_0x1a765b?.['pending']&&await this['setExpired'](_0x1a765b?.['pending'],_0x58958c);await collator_1['CollatorService']['notarizeInception'](this,this['context']['metadata']['guid'],_0x58958c),await _0x58958c['exec'](),this['execAdjacentParent'](),_0x1c604c['mapActivityAttributes']();const _0x1cded7=Number(this['context']['metadata']['js']);_0x1c604c['setJobAttributes']({'app.job.jss':_0x1cded7});const _0x131f8f={'app.job.jss':_0x1cded7};return await this['transitionAndLogAdjacent'](_0x1a765b,_0x1cded7,_0x131f8f),_0x1c604c['setActivityAttributes'](_0x131f8f),this['context']['metadata']['jid'];}catch(_0x35a151){_0x1c604c?.['setActivityError'](_0x35a151['message']);if(_0x35a151 instanceof errors_1['DuplicateJobError']){await(0x0,utils_1['sleepFor'])(0x3e8);const _0x16fe86=await collator_1['CollatorService']['isInceptionOverage'](this,this['context']['metadata']['guid']);if(_0x16fe86){this['logger']['info']('trigger-collation-overage',{'job_id':_0x35a151['jobId'],'guid':this['context']['metadata']['guid']});return;}this['logger']['error']('duplicate-job-error',{'job_id':_0x35a151['jobId'],'guid':this['context']['metadata']['guid']});}else this['logger']['error']('trigger-process-error',{..._0x35a151});throw _0x35a151;}finally{_0x1c604c?.['endJobSpan'](),_0x1c604c?.['endActivitySpan'](),this['logger']['debug']('trigger-process-end',{'subscribes':this['config']['subscribes'],'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid']});}}async['transitionAndLogAdjacent'](_0x2ab283={},_0x35adfc,_0x4ace2a){if(isNaN(_0x2ab283['pending'])){const _0x46c0b1=await this['transition'](this['adjacencyList'],_0x35adfc);_0x46c0b1['length']&&(_0x4ace2a['app.activity.mids']=_0x46c0b1['join'](','));}}['initStatus'](_0x59d1d0={},_0x5b1e53){if(_0x59d1d0['pending'])return-0x1;return _0x5b1e53;}async['setExpired'](_0x10f4a6,_0x285d47){await this['store']['expireJob'](this['context']['metadata']['jid'],_0x10f4a6,_0x285d47);}['safeKey'](_0x516289){return'_'+_0x516289;}['bindSearchData'](_0x1018d0){_0x1018d0?.['search']&&Object['keys'](_0x1018d0['search'])['forEach'](_0x2d6e50=>{this['context']['data'][this['safeKey'](_0x2d6e50)]=_0x1018d0['search'][_0x2d6e50]['toString']();});}['bindMarkerData'](_0x29852b){_0x29852b?.['marker']&&Object['keys'](_0x29852b['marker'])['forEach'](_0x52b383=>{_0x52b383['startsWith']('-')&&(this['context']['data'][_0x52b383]=_0x29852b['marker'][_0x52b383]['toString']());});}async['setStatus'](_0x58852e){this['context']['metadata']['js']=_0x58852e;}async['execAdjacentParent'](){if(this['context']['metadata']['px']){const _0x1616ab=(0x0,utils_1['formatISODate'])(new Date()),_0x62174c={'metadata':this['context']['metadata'],'data':{'job_id':this['context']['metadata']['jid'],'jc':_0x1616ab,'ju':_0x1616ab}};await this['engine']['execAdjacentParent'](this['context'],_0x62174c);}}['createInputContext'](){const _0x52bbf1={[this['metadata']['aid']]:{'input':{'data':this['data']}},'$self':{'input':{'data':this['data']},'output':{'data':this['data']}}};return _0x52bbf1;}async['getState'](){const _0x36efdf=this['createInputContext'](),_0x2bd328=this['resolveJobId'](_0x36efdf),_0x40a070=this['resolveJobKey'](_0x36efdf),_0x5bec04=(0x0,utils_1['formatISODate'])(new Date()),{id:_0x327a0c,version:_0x57d965}=await this['engine']['getVID']();this['initDimensionalAddress'](collator_1['CollatorService']['getDimensionalSeed']());const _0xbfc640={...this['metadata'],'jid':_0x2bd328,'key':_0x40a070,'as':collator_1['CollatorService']['getTriggerSeed']()};this['context']={'metadata':{...this['metadata'],'gid':(0x0,utils_1['guid'])(),'ngn':this['context']['metadata']['ngn'],'pj':this['context']['metadata']['pj'],'pg':this['context']['metadata']['pg'],'pd':this['context']['metadata']['pd'],'pa':this['context']['metadata']['pa'],'px':this['context']['metadata']['px'],'app':_0x327a0c,'vrs':_0x57d965,'tpc':this['config']['subscribes'],'trc':this['context']['metadata']['trc'],'spn':this['context']['metadata']['spn'],'guid':this['context']['metadata']['guid'],'jid':_0x2bd328,'dad':collator_1['CollatorService']['getDimensionalSeed'](),'key':_0x40a070,'jc':_0x5bec04,'ju':_0x5bec04,'ts':(0x0,utils_1['getTimeSeries'])(this['resolveGranularity']()),'js':0x0},'data':{},[this['metadata']['aid']]:{'input':{'data':this['data'],'metadata':_0xbfc640},'output':{'data':this['data'],'metadata':_0xbfc640},'settings':{'data':{}},'errors':{'data':{}}}},this['context']['$self']=this['context'][this['metadata']['aid']],this['context']['$job']=this['context'];}['bindJobMetadataPaths'](){return serializer_1['MDATA_SYMBOLS']['JOB']['KEYS']['map'](_0x5f1dfc=>'metadata/'+_0x5f1dfc);}['bindActivityMetadataPaths'](){return serializer_1['MDATA_SYMBOLS']['ACTIVITY']['KEYS']['map'](_0x47168d=>'output/metadata/'+_0x47168d);}['resolveGranularity'](){return this['config']['stats']?.['granularity']||reporter_1['ReporterService']['DEFAULT_GRANULARITY'];}['getJobStatus'](){return this['context']['metadata']['js'];}['resolveJobId'](_0x3ecba1){const _0x3e09a1=this['config']['stats']?.['id'];return _0x3e09a1?pipe_1['Pipe']['resolve'](_0x3e09a1,_0x3ecba1):(0x0,utils_1['guid'])();}['resolveJobKey'](_0x16ac46){const _0x3d45f6=this['config']['stats']?.['key'];return _0x3d45f6?pipe_1['Pipe']['resolve'](_0x3d45f6,_0x16ac46):'';}async['setStateNX'](_0x46ba38){const _0x2b54a2=this['context']['metadata']['jid'];if(!await this['store']['setStateNX'](_0x2b54a2,this['engine']['appId'],_0x46ba38))throw new errors_1['DuplicateJobError'](_0x2b54a2);}async['setStats'](_0x145915){const _0x17a171=this['context']['metadata'];if(_0x17a171['key']&&this['config']['stats']?.['measures']){const _0x55f15d=await this['engine']['getVID'](),_0x5cf2b0=new reporter_1['ReporterService'](_0x55f15d,this['store'],this['logger']);await this['store']['setStats'](_0x17a171['key'],_0x17a171['jid'],_0x17a171['ts'],_0x5cf2b0['resolveTriggerStatistics'](this['config'],this['context']),_0x55f15d,_0x145915);}}}exports['Trigger']=Trigger;function _0x1d3b(){const _0x37b605=['10KKUURo','2279904pqlbCN','1079025WRjbFf','2289816zvKnEC','459592JvCRwe','3202wkQvdW','80TQSLpb','453555YVAkvX','26109369NwTIot','318vcgMjZ','6rYrvXB'];_0x1d3b=function(){return _0x37b605;};return _0x1d3b();}
1
+ 'use strict';(function(_0x139e42,_0x4326a2){const _0x12292e=_0x14e7,_0x5cf956=_0x139e42();while(!![]){try{const _0x2bccf1=parseInt(_0x12292e(0x79))/0x1*(-parseInt(_0x12292e(0x71))/0x2)+parseInt(_0x12292e(0x75))/0x3+parseInt(_0x12292e(0x76))/0x4*(-parseInt(_0x12292e(0x77))/0x5)+-parseInt(_0x12292e(0x74))/0x6+parseInt(_0x12292e(0x78))/0x7*(-parseInt(_0x12292e(0x7a))/0x8)+parseInt(_0x12292e(0x73))/0x9+parseInt(_0x12292e(0x72))/0xa;if(_0x2bccf1===_0x4326a2)break;else _0x5cf956['push'](_0x5cf956['shift']());}catch(_0x1dd5aa){_0x5cf956['push'](_0x5cf956['shift']());}}}(_0x5c92,0xe8b52));function _0x14e7(_0x1c98f1,_0xe6c837){const _0x5c92a9=_0x5c92();return _0x14e7=function(_0x14e77e,_0x3f0aca){_0x14e77e=_0x14e77e-0x71;let _0x1da300=_0x5c92a9[_0x14e77e];return _0x1da300;},_0x14e7(_0x1c98f1,_0xe6c837);}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['Trigger']=void 0x0;const errors_1=require('../../modules/errors'),utils_1=require('../../modules/utils'),collator_1=require('../collator'),pipe_1=require('../pipe'),reporter_1=require('../reporter'),serializer_1=require('../serializer'),telemetry_1=require('../telemetry'),activity_1=require('./activity');class Trigger extends activity_1['Activity']{constructor(_0x9f81ab,_0x35db49,_0x12cdcc,_0x5e82ba,_0x45747f,_0x4c02ed){super(_0x9f81ab,_0x35db49,_0x12cdcc,_0x5e82ba,_0x45747f,_0x4c02ed);}async['process'](_0x4c1604){this['logger']['debug']('trigger-process',{'subscribes':this['config']['subscribes']});let _0x307cbf;try{this['setLeg'](0x2),await this['getState'](),_0x307cbf=new telemetry_1['TelemetryService'](this['engine']['appId'],this['config'],this['metadata'],this['context']),_0x307cbf['startJobSpan'](),_0x307cbf['startActivitySpan'](this['leg']),this['mapJobData'](),this['adjacencyList']=await this['filterAdjacent']();const _0xbe9b26=this['initStatus'](_0x4c1604,this['adjacencyList']['length']);await this['setStateNX'](_0xbe9b26),await this['setStatus'](_0xbe9b26),this['bindSearchData'](_0x4c1604),this['bindMarkerData'](_0x4c1604);const _0x178353=this['store']['transact']();await this['setState'](_0x178353),await this['setStats'](_0x178353);_0x4c1604?.['pending']&&await this['setExpired'](_0x4c1604?.['pending'],_0x178353);await collator_1['CollatorService']['notarizeInception'](this,this['context']['metadata']['guid'],_0x178353),await _0x178353['exec'](),this['execAdjacentParent'](),_0x307cbf['mapActivityAttributes']();const _0x417ccb=Number(this['context']['metadata']['js']);_0x307cbf['setJobAttributes']({'app.job.jss':_0x417ccb});const _0x1ebe85={'app.job.jss':_0x417ccb};return await this['transitionAndLogAdjacent'](_0x4c1604,_0x417ccb,_0x1ebe85),_0x307cbf['setActivityAttributes'](_0x1ebe85),this['context']['metadata']['jid'];}catch(_0x31d467){_0x307cbf?.['setActivityError'](_0x31d467['message']);if(_0x31d467 instanceof errors_1['DuplicateJobError']){await(0x0,utils_1['sleepFor'])(0x3e8);const _0x151806=await collator_1['CollatorService']['isInceptionOverage'](this,this['context']['metadata']['guid']);if(_0x151806){this['logger']['info']('trigger-collation-overage',{'job_id':_0x31d467['jobId'],'guid':this['context']['metadata']['guid']});return;}this['logger']['error']('duplicate-job-error',{'job_id':_0x31d467['jobId'],'guid':this['context']['metadata']['guid']});}else this['logger']['error']('trigger-process-error',{..._0x31d467});throw _0x31d467;}finally{_0x307cbf?.['endJobSpan'](),_0x307cbf?.['endActivitySpan'](),this['logger']['debug']('trigger-process-end',{'subscribes':this['config']['subscribes'],'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid']});}}async['transitionAndLogAdjacent'](_0x1fd3e1={},_0x51f95b,_0x519a87){if(isNaN(_0x1fd3e1['pending'])){const _0x28ad5d=await this['transition'](this['adjacencyList'],_0x51f95b);_0x28ad5d['length']&&(_0x519a87['app.activity.mids']=_0x28ad5d['join'](','));}}['initStatus'](_0x126394={},_0x1bdfb9){if(_0x126394['pending'])return-0x1;return _0x1bdfb9;}async['setExpired'](_0xd85a65,_0x3d5003){await this['store']['expireJob'](this['context']['metadata']['jid'],_0xd85a65,_0x3d5003);}['safeKey'](_0xde152e){return'_'+_0xde152e;}['bindSearchData'](_0x30e40b){_0x30e40b?.['search']&&Object['keys'](_0x30e40b['search'])['forEach'](_0x5cd385=>{this['context']['data'][this['safeKey'](_0x5cd385)]=_0x30e40b['search'][_0x5cd385]['toString']();});}['bindMarkerData'](_0x251da0){_0x251da0?.['marker']&&Object['keys'](_0x251da0['marker'])['forEach'](_0x1b72b7=>{_0x1b72b7['startsWith']('-')&&(this['context']['data'][_0x1b72b7]=_0x251da0['marker'][_0x1b72b7]['toString']());});}async['setStatus'](_0x10cf24){this['context']['metadata']['js']=_0x10cf24;}async['execAdjacentParent'](){if(this['context']['metadata']['px']){const _0x3a7aaa=(0x0,utils_1['formatISODate'])(new Date()),_0x18dfab={'metadata':this['context']['metadata'],'data':{'job_id':this['context']['metadata']['jid'],'jc':_0x3a7aaa,'ju':_0x3a7aaa}};await this['engine']['execAdjacentParent'](this['context'],_0x18dfab);}}['createInputContext'](){const _0x1f420c={[this['metadata']['aid']]:{'input':{'data':this['data']}},'$self':{'input':{'data':this['data']},'output':{'data':this['data']}}};return _0x1f420c;}async['getState'](){const _0xdab977=this['createInputContext'](),_0xd25e30=this['resolveJobId'](_0xdab977),_0x2d5246=this['resolveJobKey'](_0xdab977),_0x241ae7=(0x0,utils_1['formatISODate'])(new Date()),{id:_0x5f479d,version:_0x577ab4}=await this['engine']['getVID']();this['initDimensionalAddress'](collator_1['CollatorService']['getDimensionalSeed']());const _0x156853={...this['metadata'],'jid':_0xd25e30,'key':_0x2d5246,'as':collator_1['CollatorService']['getTriggerSeed']()};this['context']={'metadata':{...this['metadata'],'gid':(0x0,utils_1['guid'])(),'ngn':this['context']['metadata']['ngn'],'pj':this['context']['metadata']['pj'],'pg':this['context']['metadata']['pg'],'pd':this['context']['metadata']['pd'],'pa':this['context']['metadata']['pa'],'px':this['context']['metadata']['px'],'app':_0x5f479d,'vrs':_0x577ab4,'tpc':this['config']['subscribes'],'trc':this['context']['metadata']['trc'],'spn':this['context']['metadata']['spn'],'guid':this['context']['metadata']['guid'],'jid':_0xd25e30,'dad':collator_1['CollatorService']['getDimensionalSeed'](),'key':_0x2d5246,'jc':_0x241ae7,'ju':_0x241ae7,'ts':(0x0,utils_1['getTimeSeries'])(this['resolveGranularity']()),'js':0x0},'data':{},[this['metadata']['aid']]:{'input':{'data':this['data'],'metadata':_0x156853},'output':{'data':this['data'],'metadata':_0x156853},'settings':{'data':{}},'errors':{'data':{}}}},this['context']['$self']=this['context'][this['metadata']['aid']],this['context']['$job']=this['context'];}['bindJobMetadataPaths'](){return serializer_1['MDATA_SYMBOLS']['JOB']['KEYS']['map'](_0xc4626a=>'metadata/'+_0xc4626a);}['bindActivityMetadataPaths'](){return serializer_1['MDATA_SYMBOLS']['ACTIVITY']['KEYS']['map'](_0x2ce363=>'output/metadata/'+_0x2ce363);}['resolveGranularity'](){return this['config']['stats']?.['granularity']||reporter_1['ReporterService']['DEFAULT_GRANULARITY'];}['getJobStatus'](){return this['context']['metadata']['js'];}['resolveJobId'](_0x47b8b9){const _0x542fc9=this['config']['stats']?.['id'];return _0x542fc9?pipe_1['Pipe']['resolve'](_0x542fc9,_0x47b8b9):(0x0,utils_1['guid'])();}['resolveJobKey'](_0x36ec3a){const _0x14a7e7=this['config']['stats']?.['key'];return _0x14a7e7?pipe_1['Pipe']['resolve'](_0x14a7e7,_0x36ec3a):'';}async['setStateNX'](_0x42091e){const _0x2da680=this['context']['metadata']['jid'];if(!await this['store']['setStateNX'](_0x2da680,this['engine']['appId'],_0x42091e))throw new errors_1['DuplicateJobError'](_0x2da680);}async['setStats'](_0x241ffc){const _0x117329=this['context']['metadata'];if(_0x117329['key']&&this['config']['stats']?.['measures']){const _0x37db6b=await this['engine']['getVID'](),_0x1f21b3=new reporter_1['ReporterService'](_0x37db6b,this['store'],this['logger']);await this['store']['setStats'](_0x117329['key'],_0x117329['jid'],_0x117329['ts'],_0x1f21b3['resolveTriggerStatistics'](this['config'],this['context']),_0x37db6b,_0x241ffc);}}}function _0x5c92(){const _0x242852=['7385658fPDlcR','3680193qEGBNJ','28VUYwED','489125fTIECr','217014QqWyAn','97506dwGRRP','328NbttCU','12AswdOq','16190230IYnala','16913268MEUzxC'];_0x5c92=function(){return _0x242852;};return _0x5c92();}exports['Trigger']=Trigger;
@@ -1 +1 @@
1
- 'use strict';function _0x327e(){const _0x5231f8=['12RHNIdb','1195735PsrpSi','50832qLanaW','1032nsLORi','1589830AbrEzr','184369UbAdbJ','6MxLULR','4779144vxgSGr','101625sQiErh','42462KPPzrP'];_0x327e=function(){return _0x5231f8;};return _0x327e();}(function(_0x17cda0,_0xa2547c){const _0x3482bd=_0x5f2f,_0x546ef3=_0x17cda0();while(!![]){try{const _0x4c43de=parseInt(_0x3482bd(0x114))/0x1*(-parseInt(_0x3482bd(0x115))/0x2)+parseInt(_0x3482bd(0x10d))/0x3+-parseInt(_0x3482bd(0x10f))/0x4*(parseInt(_0x3482bd(0x110))/0x5)+parseInt(_0x3482bd(0x116))/0x6+parseInt(_0x3482bd(0x10e))/0x7+-parseInt(_0x3482bd(0x112))/0x8*(-parseInt(_0x3482bd(0x111))/0x9)+parseInt(_0x3482bd(0x113))/0xa;if(_0x4c43de===_0xa2547c)break;else _0x546ef3['push'](_0x546ef3['shift']());}catch(_0x1a916d){_0x546ef3['push'](_0x546ef3['shift']());}}}(_0x327e,0x6eb74));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['Worker']=void 0x0;const errors_1=require('../../modules/errors'),utils_1=require('../../modules/utils'),collator_1=require('../collator'),pipe_1=require('../pipe'),telemetry_1=require('../telemetry'),activity_1=require('./activity');function _0x5f2f(_0x17862b,_0x45f6b4){const _0x327e9f=_0x327e();return _0x5f2f=function(_0x5f2f69,_0x4f49c1){_0x5f2f69=_0x5f2f69-0x10d;let _0x509d78=_0x327e9f[_0x5f2f69];return _0x509d78;},_0x5f2f(_0x17862b,_0x45f6b4);}class Worker extends activity_1['Activity']{constructor(_0x55c6b1,_0x293473,_0x5dcb77,_0x5d0161,_0x44e319,_0x588824){super(_0x55c6b1,_0x293473,_0x5dcb77,_0x5d0161,_0x44e319,_0x588824);}async['process'](){this['logger']['debug']('worker-process',{'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid'],'aid':this['metadata']['aid']});let _0x888473;try{await this['verifyEntry'](),_0x888473=new telemetry_1['TelemetryService'](this['engine']['appId'],this['config'],this['metadata'],this['context']),_0x888473['startActivitySpan'](this['leg']),this['mapInputData']();const _0x4a1779=this['store']['transact'](),_0x2f9ef3=await this['execActivity'](_0x4a1779);await collator_1['CollatorService']['authorizeReentry'](this,_0x4a1779),await this['setState'](_0x4a1779),await this['setStatus'](0x0,_0x4a1779);const _0x30221d=await _0x4a1779['exec']();_0x888473['mapActivityAttributes']();const _0x19a7b3=this['resolveStatus'](_0x30221d);return _0x888473['setActivityAttributes']({'app.activity.mid':_0x2f9ef3,'app.job.jss':_0x19a7b3}),this['context']['metadata']['aid'];}catch(_0x13bec3){if(_0x13bec3 instanceof errors_1['InactiveJobError']){this['logger']['error']('await-inactive-job-error',{..._0x13bec3});return;}else{if(_0x13bec3 instanceof errors_1['GenerationalError']){this['logger']['info']('process-event-generational-job-error',{..._0x13bec3});return;}else{if(_0x13bec3 instanceof errors_1['GetStateError']){this['logger']['error']('worker-get-state-error',{..._0x13bec3});return;}else{if(_0x13bec3 instanceof errors_1['CollationError']){if(_0x13bec3['fault']==='duplicate'){this['logger']['info']('worker-collation-overage',{'job_id':this['context']['metadata']['jid'],'guid':this['context']['metadata']['guid']});return;}this['logger']['error']('worker-collation-error',{..._0x13bec3});}else this['logger']['error']('worker-process-error',{..._0x13bec3});}}}_0x888473?.['setActivityError'](_0x13bec3['message']);throw _0x13bec3;}finally{_0x888473?.['endActivitySpan'](),this['logger']['debug']('worker-process-end',{'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid'],'aid':this['metadata']['aid']});}}async['execActivity'](_0x3a1ee7){const _0x27109c=pipe_1['Pipe']['resolve'](this['config']['subtype'],this['context']),_0x1de858={'metadata':{'guid':(0x0,utils_1['guid'])(),'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid'],'dad':this['metadata']['dad'],'aid':this['metadata']['aid'],'topic':_0x27109c,'spn':this['context']['$self']['output']['metadata']['l1s'],'trc':this['context']['metadata']['trc']},'data':this['context']['data']};return this['config']['retry']&&(_0x1de858['policies']={'retry':this['config']['retry']}),await this['engine']['router']?.['publishMessage'](_0x27109c,_0x1de858,_0x3a1ee7);}}exports['Worker']=Worker;
1
+ 'use strict';function _0x55dc(){const _0x3c3d02=['5817664pEuTEN','3429EjeJWI','9yugCoj','14012750xIlrAh','5zEHNle','6525192xAytiY','7024XLLERx','1242126hRlvEg','421422pMHURQ','8999081snounN'];_0x55dc=function(){return _0x3c3d02;};return _0x55dc();}(function(_0x7f505c,_0x74f23e){const _0x854c0=_0x5bd7,_0x3caf1f=_0x7f505c();while(!![]){try{const _0x4b15cf=-parseInt(_0x854c0(0x11c))/0x1+-parseInt(_0x854c0(0x11d))/0x2*(parseInt(_0x854c0(0x117))/0x3)+parseInt(_0x854c0(0x115))/0x4+parseInt(_0x854c0(0x119))/0x5*(-parseInt(_0x854c0(0x11a))/0x6)+parseInt(_0x854c0(0x114))/0x7+-parseInt(_0x854c0(0x11b))/0x8*(parseInt(_0x854c0(0x116))/0x9)+parseInt(_0x854c0(0x118))/0xa;if(_0x4b15cf===_0x74f23e)break;else _0x3caf1f['push'](_0x3caf1f['shift']());}catch(_0x3dbe3f){_0x3caf1f['push'](_0x3caf1f['shift']());}}}(_0x55dc,0xce4a5));function _0x5bd7(_0x154944,_0x2027db){const _0x55dc92=_0x55dc();return _0x5bd7=function(_0x5bd738,_0x11b0a5){_0x5bd738=_0x5bd738-0x114;let _0x568780=_0x55dc92[_0x5bd738];return _0x568780;},_0x5bd7(_0x154944,_0x2027db);}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['Worker']=void 0x0;const errors_1=require('../../modules/errors'),utils_1=require('../../modules/utils'),collator_1=require('../collator'),pipe_1=require('../pipe'),telemetry_1=require('../telemetry'),activity_1=require('./activity');class Worker extends activity_1['Activity']{constructor(_0x54fb86,_0x3a59e1,_0xeac259,_0x4e94fa,_0x4880e1,_0x8dd9ba){super(_0x54fb86,_0x3a59e1,_0xeac259,_0x4e94fa,_0x4880e1,_0x8dd9ba);}async['process'](){this['logger']['debug']('worker-process',{'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid'],'aid':this['metadata']['aid']});let _0x41db9d;try{await this['verifyEntry'](),_0x41db9d=new telemetry_1['TelemetryService'](this['engine']['appId'],this['config'],this['metadata'],this['context']),_0x41db9d['startActivitySpan'](this['leg']),this['mapInputData']();const _0x125391=this['store']['transact'](),_0x923fe0=await this['execActivity'](_0x125391);await collator_1['CollatorService']['authorizeReentry'](this,_0x125391),await this['setState'](_0x125391),await this['setStatus'](0x0,_0x125391);const _0x25e8f3=await _0x125391['exec']();_0x41db9d['mapActivityAttributes']();const _0x5dfd5d=this['resolveStatus'](_0x25e8f3);return _0x41db9d['setActivityAttributes']({'app.activity.mid':_0x923fe0,'app.job.jss':_0x5dfd5d}),this['context']['metadata']['aid'];}catch(_0x5cb4c8){if(_0x5cb4c8 instanceof errors_1['InactiveJobError']){this['logger']['error']('await-inactive-job-error',{..._0x5cb4c8});return;}else{if(_0x5cb4c8 instanceof errors_1['GenerationalError']){this['logger']['info']('process-event-generational-job-error',{..._0x5cb4c8});return;}else{if(_0x5cb4c8 instanceof errors_1['GetStateError']){this['logger']['error']('worker-get-state-error',{..._0x5cb4c8});return;}else{if(_0x5cb4c8 instanceof errors_1['CollationError']){if(_0x5cb4c8['fault']==='duplicate'){this['logger']['info']('worker-collation-overage',{'job_id':this['context']['metadata']['jid'],'guid':this['context']['metadata']['guid']});return;}this['logger']['error']('worker-collation-error',{..._0x5cb4c8});}else this['logger']['error']('worker-process-error',{..._0x5cb4c8});}}}_0x41db9d?.['setActivityError'](_0x5cb4c8['message']);throw _0x5cb4c8;}finally{_0x41db9d?.['endActivitySpan'](),this['logger']['debug']('worker-process-end',{'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid'],'aid':this['metadata']['aid']});}}async['execActivity'](_0xd67b12){const _0x495a4c=pipe_1['Pipe']['resolve'](this['config']['subtype'],this['context']),_0x5428bd={'metadata':{'guid':(0x0,utils_1['guid'])(),'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid'],'dad':this['metadata']['dad'],'aid':this['metadata']['aid'],'topic':_0x495a4c,'spn':this['context']['$self']['output']['metadata']['l1s'],'trc':this['context']['metadata']['trc']},'data':this['context']['data']};return this['config']['retry']&&(_0x5428bd['policies']={'retry':this['config']['retry']}),await this['engine']['router']?.['publishMessage'](_0x495a4c,_0x5428bd,_0xd67b12);}}exports['Worker']=Worker;
@@ -1 +1 @@
1
- 'use strict';function _0x1114(_0x1a7913,_0x27aa73){const _0x2d0ec5=_0x2d0e();return _0x1114=function(_0x111446,_0x23b239){_0x111446=_0x111446-0x98;let _0x1d0759=_0x2d0ec5[_0x111446];return _0x1d0759;},_0x1114(_0x1a7913,_0x27aa73);}(function(_0xe0640c,_0x243b54){const _0x269163=_0x1114,_0x415a00=_0xe0640c();while(!![]){try{const _0x338efa=parseInt(_0x269163(0xa0))/0x1*(parseInt(_0x269163(0x98))/0x2)+parseInt(_0x269163(0x9a))/0x3*(parseInt(_0x269163(0x9e))/0x4)+parseInt(_0x269163(0xa3))/0x5*(-parseInt(_0x269163(0xa1))/0x6)+parseInt(_0x269163(0x99))/0x7+-parseInt(_0x269163(0x9c))/0x8+parseInt(_0x269163(0x9f))/0x9*(-parseInt(_0x269163(0x9b))/0xa)+-parseInt(_0x269163(0xa2))/0xb*(-parseInt(_0x269163(0x9d))/0xc);if(_0x338efa===_0x243b54)break;else _0x415a00['push'](_0x415a00['shift']());}catch(_0x65f9e4){_0x415a00['push'](_0x415a00['shift']());}}}(_0x2d0e,0x3dbc6));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['CollatorService']=void 0x0;const errors_1=require('../../modules/errors'),collator_1=require('../../types/collator');class CollatorService{static['assertJobActive'](_0x2cc81c,_0xf40c26,_0x11b09e,_0x5c2f28=0x0){if(_0x2cc81c<=_0x5c2f28)throw new errors_1['InactiveJobError'](_0xf40c26,_0x2cc81c,_0x11b09e);}static['getDimensionalAddress'](_0x22f978,_0x4521d2=![]){let _0x565561=_0x22f978['context']['metadata']['dad']||_0x22f978['metadata']['dad'];return _0x4521d2&&_0x565561&&_0x22f978['leg']===0x2&&(_0x565561=_0x565561['substring'](0x0,_0x565561['lastIndexOf'](','))+',0'),CollatorService['getDimensionsById']([..._0x22f978['config']['ancestors'],_0x22f978['metadata']['aid']],_0x565561);}static['resolveReentryDimension'](_0x1392b5){const _0x11ba77=_0x1392b5['config']['ancestor'],_0x56d3bc=_0x1392b5['config']['ancestors'],_0x286f2f=_0x56d3bc['indexOf'](_0x11ba77),_0x3abace=_0x1392b5['metadata']['dad']['split'](',');return _0x3abace['length']=_0x286f2f+0x1,_0x3abace['push']('0'),_0x3abace['join'](',');}static async['notarizeEntry'](_0x94f272,_0xc838f7){const _0x3d235c=await _0x94f272['store']['collate'](_0x94f272['context']['metadata']['jid'],_0x94f272['metadata']['aid'],-0x5af3107a4000,this['getDimensionalAddress'](_0x94f272),_0xc838f7);return this['verifyInteger'](_0x3d235c,0x1,'enter'),_0x3d235c;}static async['authorizeReentry'](_0x3699af,_0x1bfcfa){const _0x11cee6=await _0x3699af['store']['collate'](_0x3699af['context']['metadata']['jid'],_0x3699af['metadata']['aid'],-0x9184e72a000,this['getDimensionalAddress'](_0x3699af),_0x1bfcfa);return _0x11cee6;}static async['notarizeEarlyExit'](_0x1275f2,_0x140bc0){return await _0x1275f2['store']['collate'](_0x1275f2['context']['metadata']['jid'],_0x1275f2['metadata']['aid'],-0xa012317b000,this['getDimensionalAddress'](_0x1275f2),_0x140bc0);}static async['notarizeEarlyCompletion'](_0x364f27,_0x50f3e2){const _0x5df721=_0x364f27['config']['cycle']?0x9184e72a000:0xa012317b000;return await _0x364f27['store']['collate'](_0x364f27['context']['metadata']['jid'],_0x364f27['metadata']['aid'],0xf4241-_0x5df721,this['getDimensionalAddress'](_0x364f27),_0x50f3e2);}static async['notarizeInception'](_0x5b7ff9,_0x1587ed,_0x456f7f){_0x1587ed&&await _0x5b7ff9['store']['collateSynthetic'](_0x5b7ff9['context']['metadata']['jid'],_0x1587ed,0xf4240,_0x456f7f);}static async['isInceptionOverage'](_0x43993f,_0x2a2dd4){if(_0x2a2dd4){const _0x44eed0=await _0x43993f['store']['collateSynthetic'](_0x43993f['context']['metadata']['jid'],_0x2a2dd4,0xf4240);return _0x44eed0>0xf4240;}return![];}static async['notarizeReentry'](_0x501821,_0x13003b,_0x494487){const _0x38c302=_0x501821['context']['metadata']['jid'],_0x3c8d36=_0x494487||_0x501821['store']['transact']();await _0x501821['store']['collate'](_0x38c302,_0x501821['metadata']['aid'],0xf4240,this['getDimensionalAddress'](_0x501821,!![]),_0x3c8d36),await _0x501821['store']['collateSynthetic'](_0x38c302,_0x13003b,0xf4240,_0x3c8d36);const [_0x21a03b,_0x141543]=await _0x3c8d36['exec'](),_0x57fc93=Array['isArray'](_0x21a03b)?_0x21a03b[0x1]:_0x21a03b,_0x1c6307=Array['isArray'](_0x141543)?_0x141543[0x1]:_0x141543;return this['verifyInteger'](_0x57fc93,0x2,'enter'),this['verifySyntheticInteger'](_0x1c6307),_0x57fc93;}static async['notarizeContinuation'](_0x2b0f0a,_0x5386ba){return await _0x2b0f0a['store']['collate'](_0x2b0f0a['context']['metadata']['jid'],_0x2b0f0a['metadata']['aid'],0x1,this['getDimensionalAddress'](_0x2b0f0a),_0x5386ba);}static async['notarizeCompletion'](_0x4f5e4f,_0x38e390){const _0x51118f=_0x4f5e4f['config']['cycle']?0x0:0xe8d4a51000;return await _0x4f5e4f['store']['collate'](_0x4f5e4f['context']['metadata']['jid'],_0x4f5e4f['metadata']['aid'],0x1-_0x51118f,this['getDimensionalAddress'](_0x4f5e4f),_0x38e390);}static['getDigitAtIndex'](_0x13d6b0,_0x282e67){const _0x49077d=_0x13d6b0['toString']();if(_0x282e67<0x0||_0x282e67>=_0x49077d['length'])return null;const _0x120721=parseInt(_0x49077d[_0x282e67],0xa);return _0x120721;}static['getDimensionalIndex'](_0x4185a0){const _0x2cc84b=_0x4185a0['toString']();if(_0x2cc84b['length']<0x9)return null;const _0x329df0=_0x2cc84b['substring'](0x3,0x9),_0x1a6441=parseInt(_0x329df0,0xa);return _0x1a6441-0x1;}static['isDuplicate'](_0x44ba92,_0x39ba06){return this['getDigitAtIndex'](_0x44ba92,_0x39ba06)<0x8;}static['isInactive'](_0x33ea14){return this['getDigitAtIndex'](_0x33ea14,0x2)<0x9;}static['isPrimed'](_0x19da1e,_0xc5634c){return _0xc5634c==0x1?_0x19da1e!=-0x5af3107a4000:this['getDigitAtIndex'](_0x19da1e,0x0)<0x9&&this['getDigitAtIndex'](_0x19da1e,0x1)<0x9;}static['verifySyntheticInteger'](_0x59da83){const _0x9e6fa4=_0x59da83['toString'](),_0x160425=parseInt(_0x9e6fa4[_0x9e6fa4['length']-0x1],0xa);if(_0x160425>0x0)throw new errors_1['CollationError'](_0x59da83,0x2,'enter',collator_1['CollationFaultType']['INACTIVE']);else{if(_0x59da83>=0x1e8480)throw new errors_1['CollationError'](_0x59da83,0x2,'enter',collator_1['CollationFaultType']['DUPLICATE']);}}static['verifyInteger'](_0x42fab7,_0x39c6d5,_0x3a4ea7){let _0x51c106;if(_0x39c6d5===0x1&&_0x3a4ea7==='enter'){if(!this['isPrimed'](_0x42fab7,0x1))_0x51c106=collator_1['CollationFaultType']['MISSING'];else{if(this['isDuplicate'](_0x42fab7,0x0))_0x51c106=collator_1['CollationFaultType']['DUPLICATE'];else _0x42fab7!=0x331a2bfa73000&&(_0x51c106=collator_1['CollationFaultType']['INVALID']);}}else{if(_0x39c6d5===0x1&&_0x3a4ea7==='exit'){if(_0x42fab7===-0x9184e72a000)_0x51c106=collator_1['CollationFaultType']['MISSING'];else this['isDuplicate'](_0x42fab7,0x1)&&(_0x51c106=collator_1['CollationFaultType']['DUPLICATE']);}else{if(_0x39c6d5===0x2&&_0x3a4ea7==='enter'){if(!this['isPrimed'](_0x42fab7,0x2))_0x51c106=collator_1['CollationFaultType']['FORBIDDEN'];else this['isInactive'](_0x42fab7)&&(_0x51c106=collator_1['CollationFaultType']['INACTIVE']);}}}if(_0x51c106)throw new errors_1['CollationError'](_0x42fab7,_0x39c6d5,_0x3a4ea7,_0x51c106);}static['getDimensionsById'](_0x570b3a,_0x21cf39){const _0x443ea0={'$ADJACENT':_0x21cf39+',0'};let _0x4d4129=_0x21cf39;return _0x570b3a['reverse']()['forEach'](_0x40b24f=>{_0x443ea0[_0x40b24f]=_0x4d4129,_0x4d4129=_0x4d4129['substring'](0x0,_0x4d4129['lastIndexOf'](','));}),_0x443ea0;}static['getSeed'](){return'999000000000000';}static['getTriggerSeed'](){return'888000001000001';}static['compile'](_0x3c995b){CollatorService['bindAncestorArray'](_0x3c995b);}static['bindAncestorArray'](_0x36924e){_0x36924e['forEach'](_0x5b0cd8=>{const _0x252593={},_0x5273b7=Object['keys'](_0x5b0cd8['activities'])['find'](_0x16f375=>_0x5b0cd8['activities'][_0x16f375]['type']==='trigger');if(!_0x5273b7)throw new Error('collator-trigger-activity-not-found');const _0x318de5=(_0x258183,_0x2a8ac3)=>{_0x252593[_0x258183]=_0x2a8ac3,_0x5b0cd8['activities'][_0x258183]['ancestors']=_0x2a8ac3;const _0x3acfab=_0x5b0cd8['transitions']?.[_0x258183]||[];_0x3acfab['forEach'](_0x2e773b=>{_0x318de5(_0x2e773b['to'],[..._0x2a8ac3,_0x258183]);});};_0x318de5(_0x5273b7,[]);});}static['getDimensionalSeed'](_0x37cde3=0x0){return','+_0x37cde3;}}function _0x2d0e(){const _0x311cf3=['11223zGnBiq','13eyKYNv','988158dfMKYI','69707fXJqyp','5kMwHBx','77562NzUfPC','2138689qdeiob','171Ylwpzy','2670hSHcwa','2388168zzvcsg','12NOzLwU','16352IYrZLb'];_0x2d0e=function(){return _0x311cf3;};return _0x2d0e();}exports['CollatorService']=CollatorService,CollatorService['targetLength']=0xf;
1
+ 'use strict';(function(_0x5e553c,_0xfe434a){const _0x101698=_0x2a7e,_0x2b5742=_0x5e553c();while(!![]){try{const _0x5341ba=-parseInt(_0x101698(0x183))/0x1+-parseInt(_0x101698(0x17c))/0x2+-parseInt(_0x101698(0x17d))/0x3+parseInt(_0x101698(0x17e))/0x4*(parseInt(_0x101698(0x181))/0x5)+parseInt(_0x101698(0x182))/0x6*(parseInt(_0x101698(0x17f))/0x7)+parseInt(_0x101698(0x184))/0x8*(-parseInt(_0x101698(0x180))/0x9)+parseInt(_0x101698(0x17b))/0xa*(parseInt(_0x101698(0x17a))/0xb);if(_0x5341ba===_0xfe434a)break;else _0x2b5742['push'](_0x2b5742['shift']());}catch(_0x44ecb6){_0x2b5742['push'](_0x2b5742['shift']());}}}(_0x4406,0xd687d));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['CollatorService']=void 0x0;function _0x4406(){const _0x33e48d=['1190529LWLdNj','5InXUkd','7367592pbNWUV','1166979ELqZGm','56DOdEJf','616BvwuUM','342520vvWvtF','2209778aThvTk','1050417owBnXV','5122588pdCAhe','7xvOpMJ'];_0x4406=function(){return _0x33e48d;};return _0x4406();}function _0x2a7e(_0x2e0b1d,_0x349a1a){const _0x4406fb=_0x4406();return _0x2a7e=function(_0x2a7ebe,_0x38e85a){_0x2a7ebe=_0x2a7ebe-0x17a;let _0xab1bea=_0x4406fb[_0x2a7ebe];return _0xab1bea;},_0x2a7e(_0x2e0b1d,_0x349a1a);}const errors_1=require('../../modules/errors'),collator_1=require('../../types/collator');class CollatorService{static['assertJobActive'](_0x5eb383,_0x3db52a,_0x5a1b61,_0x861191=0x0){if(_0x5eb383<=_0x861191)throw new errors_1['InactiveJobError'](_0x3db52a,_0x5eb383,_0x5a1b61);}static['getDimensionalAddress'](_0x1c7324,_0x30b624=![]){let _0x3e3b36=_0x1c7324['context']['metadata']['dad']||_0x1c7324['metadata']['dad'];return _0x30b624&&_0x3e3b36&&_0x1c7324['leg']===0x2&&(_0x3e3b36=_0x3e3b36['substring'](0x0,_0x3e3b36['lastIndexOf'](','))+',0'),CollatorService['getDimensionsById']([..._0x1c7324['config']['ancestors'],_0x1c7324['metadata']['aid']],_0x3e3b36);}static['resolveReentryDimension'](_0x210ab7){const _0x379737=_0x210ab7['config']['ancestor'],_0x53cde9=_0x210ab7['config']['ancestors'],_0x4b15fc=_0x53cde9['indexOf'](_0x379737),_0x3bedce=_0x210ab7['metadata']['dad']['split'](',');return _0x3bedce['length']=_0x4b15fc+0x1,_0x3bedce['push']('0'),_0x3bedce['join'](',');}static async['notarizeEntry'](_0x12562a,_0x57c4bd){const _0x2d24d5=await _0x12562a['store']['collate'](_0x12562a['context']['metadata']['jid'],_0x12562a['metadata']['aid'],-0x5af3107a4000,this['getDimensionalAddress'](_0x12562a),_0x57c4bd);return this['verifyInteger'](_0x2d24d5,0x1,'enter'),_0x2d24d5;}static async['authorizeReentry'](_0x536588,_0x5a6db9){const _0x19471c=await _0x536588['store']['collate'](_0x536588['context']['metadata']['jid'],_0x536588['metadata']['aid'],-0x9184e72a000,this['getDimensionalAddress'](_0x536588),_0x5a6db9);return _0x19471c;}static async['notarizeEarlyExit'](_0x458bb0,_0x454456){return await _0x458bb0['store']['collate'](_0x458bb0['context']['metadata']['jid'],_0x458bb0['metadata']['aid'],-0xa012317b000,this['getDimensionalAddress'](_0x458bb0),_0x454456);}static async['notarizeEarlyCompletion'](_0x6b620b,_0x48bc50){const _0x1d7c7d=_0x6b620b['config']['cycle']?0x9184e72a000:0xa012317b000;return await _0x6b620b['store']['collate'](_0x6b620b['context']['metadata']['jid'],_0x6b620b['metadata']['aid'],0xf4241-_0x1d7c7d,this['getDimensionalAddress'](_0x6b620b),_0x48bc50);}static async['notarizeInception'](_0x22e794,_0x17ec6b,_0xe6b9c9){_0x17ec6b&&await _0x22e794['store']['collateSynthetic'](_0x22e794['context']['metadata']['jid'],_0x17ec6b,0xf4240,_0xe6b9c9);}static async['isInceptionOverage'](_0x441156,_0x25323c){if(_0x25323c){const _0x360c28=await _0x441156['store']['collateSynthetic'](_0x441156['context']['metadata']['jid'],_0x25323c,0xf4240);return _0x360c28>0xf4240;}return![];}static async['notarizeReentry'](_0x2f6f80,_0x30781f,_0x3b8899){const _0x18697f=_0x2f6f80['context']['metadata']['jid'],_0x429227=_0x3b8899||_0x2f6f80['store']['transact']();await _0x2f6f80['store']['collate'](_0x18697f,_0x2f6f80['metadata']['aid'],0xf4240,this['getDimensionalAddress'](_0x2f6f80,!![]),_0x429227),await _0x2f6f80['store']['collateSynthetic'](_0x18697f,_0x30781f,0xf4240,_0x429227);const [_0x17d263,_0xfcec20]=await _0x429227['exec'](),_0x4ce8c2=Array['isArray'](_0x17d263)?_0x17d263[0x1]:_0x17d263,_0xe9fb88=Array['isArray'](_0xfcec20)?_0xfcec20[0x1]:_0xfcec20;return this['verifyInteger'](_0x4ce8c2,0x2,'enter'),this['verifySyntheticInteger'](_0xe9fb88),_0x4ce8c2;}static async['notarizeContinuation'](_0x4b5cbe,_0x395e34){return await _0x4b5cbe['store']['collate'](_0x4b5cbe['context']['metadata']['jid'],_0x4b5cbe['metadata']['aid'],0x1,this['getDimensionalAddress'](_0x4b5cbe),_0x395e34);}static async['notarizeCompletion'](_0x2b3f29,_0x20b0d6){const _0xe815a3=_0x2b3f29['config']['cycle']?0x0:0xe8d4a51000;return await _0x2b3f29['store']['collate'](_0x2b3f29['context']['metadata']['jid'],_0x2b3f29['metadata']['aid'],0x1-_0xe815a3,this['getDimensionalAddress'](_0x2b3f29),_0x20b0d6);}static['getDigitAtIndex'](_0x49c3fd,_0x22eb29){const _0x399f91=_0x49c3fd['toString']();if(_0x22eb29<0x0||_0x22eb29>=_0x399f91['length'])return null;const _0x466ead=parseInt(_0x399f91[_0x22eb29],0xa);return _0x466ead;}static['getDimensionalIndex'](_0x1aa0b7){const _0x437ade=_0x1aa0b7['toString']();if(_0x437ade['length']<0x9)return null;const _0x1b9a35=_0x437ade['substring'](0x3,0x9),_0x48c804=parseInt(_0x1b9a35,0xa);return _0x48c804-0x1;}static['isDuplicate'](_0x55a8e4,_0x48600e){return this['getDigitAtIndex'](_0x55a8e4,_0x48600e)<0x8;}static['isInactive'](_0x429838){return this['getDigitAtIndex'](_0x429838,0x2)<0x9;}static['isPrimed'](_0x52b5bc,_0x227baa){return _0x227baa==0x1?_0x52b5bc!=-0x5af3107a4000:this['getDigitAtIndex'](_0x52b5bc,0x0)<0x9&&this['getDigitAtIndex'](_0x52b5bc,0x1)<0x9;}static['verifySyntheticInteger'](_0x25aa56){const _0x269afd=_0x25aa56['toString'](),_0x22fbe2=parseInt(_0x269afd[_0x269afd['length']-0x1],0xa);if(_0x22fbe2>0x0)throw new errors_1['CollationError'](_0x25aa56,0x2,'enter',collator_1['CollationFaultType']['INACTIVE']);else{if(_0x25aa56>=0x1e8480)throw new errors_1['CollationError'](_0x25aa56,0x2,'enter',collator_1['CollationFaultType']['DUPLICATE']);}}static['verifyInteger'](_0x1000a7,_0x90d999,_0x85a319){let _0x18d6ca;if(_0x90d999===0x1&&_0x85a319==='enter'){if(!this['isPrimed'](_0x1000a7,0x1))_0x18d6ca=collator_1['CollationFaultType']['MISSING'];else{if(this['isDuplicate'](_0x1000a7,0x0))_0x18d6ca=collator_1['CollationFaultType']['DUPLICATE'];else _0x1000a7!=0x331a2bfa73000&&(_0x18d6ca=collator_1['CollationFaultType']['INVALID']);}}else{if(_0x90d999===0x1&&_0x85a319==='exit'){if(_0x1000a7===-0x9184e72a000)_0x18d6ca=collator_1['CollationFaultType']['MISSING'];else this['isDuplicate'](_0x1000a7,0x1)&&(_0x18d6ca=collator_1['CollationFaultType']['DUPLICATE']);}else{if(_0x90d999===0x2&&_0x85a319==='enter'){if(!this['isPrimed'](_0x1000a7,0x2))_0x18d6ca=collator_1['CollationFaultType']['FORBIDDEN'];else this['isInactive'](_0x1000a7)&&(_0x18d6ca=collator_1['CollationFaultType']['INACTIVE']);}}}if(_0x18d6ca)throw new errors_1['CollationError'](_0x1000a7,_0x90d999,_0x85a319,_0x18d6ca);}static['getDimensionsById'](_0x18ecfc,_0x4d408c){const _0x1d78b4={'$ADJACENT':_0x4d408c+',0'};let _0x125486=_0x4d408c;return _0x18ecfc['reverse']()['forEach'](_0x593c0d=>{_0x1d78b4[_0x593c0d]=_0x125486,_0x125486=_0x125486['substring'](0x0,_0x125486['lastIndexOf'](','));}),_0x1d78b4;}static['getSeed'](){return'999000000000000';}static['getTriggerSeed'](){return'888000001000001';}static['compile'](_0x412c8e){CollatorService['bindAncestorArray'](_0x412c8e);}static['bindAncestorArray'](_0x43eb5c){_0x43eb5c['forEach'](_0xbd04be=>{const _0x5cdd1a={},_0x2e3fc0=Object['keys'](_0xbd04be['activities'])['find'](_0x287954=>_0xbd04be['activities'][_0x287954]['type']==='trigger');if(!_0x2e3fc0)throw new Error('collator-trigger-activity-not-found');const _0x506c7f=(_0x340b56,_0x5d98fb)=>{_0x5cdd1a[_0x340b56]=_0x5d98fb,_0xbd04be['activities'][_0x340b56]['ancestors']=_0x5d98fb;const _0x100090=_0xbd04be['transitions']?.[_0x340b56]||[];_0x100090['forEach'](_0x1dcae9=>{_0x506c7f(_0x1dcae9['to'],[..._0x5d98fb,_0x340b56]);});};_0x506c7f(_0x2e3fc0,[]);});}static['getDimensionalSeed'](_0x5c4a5d=0x0){return','+_0x5c4a5d;}}exports['CollatorService']=CollatorService,CollatorService['targetLength']=0xf;