UNPKG

@ckeditor/ckeditor5-real-time-collaboration

Version:

A set of CKEditor 5 features enabling real-time collaboration within the editor using CKEditor Cloud Services.

24 lines • 17 kB
/* * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved. * * * * * +---------------------------------------------------------------------------------+ * | | * | Hello stranger! | * | | * | | * | What you're currently looking at is the source code of a legally protected, | * | proprietary software. Any attempts to deobfuscate / disassemble this code | * | are forbidden and will result in legal consequences. | * | | * | | * +---------------------------------------------------------------------------------+ * * * * */ const _0x4763ac=_0x2956;(function(_0x230330,_0x542ec8){const _0x77c316=_0x2956,_0x3faaee=_0x230330();while(!![]){try{const _0x178767=-parseInt(_0x77c316(0x17a))/0x1+-parseInt(_0x77c316(0x175))/0x2*(-parseInt(_0x77c316(0x187))/0x3)+parseInt(_0x77c316(0x198))/0x4*(-parseInt(_0x77c316(0x19a))/0x5)+-parseInt(_0x77c316(0x1b1))/0x6*(parseInt(_0x77c316(0x1a5))/0x7)+-parseInt(_0x77c316(0x19b))/0x8+parseInt(_0x77c316(0x194))/0x9+parseInt(_0x77c316(0x18c))/0xa;if(_0x178767===_0x542ec8)break;else _0x3faaee['push'](_0x3faaee['shift']());}catch(_0x1cdb73){_0x3faaee['push'](_0x3faaee['shift']());}}}(_0x327b,0x4cc24));import{Context as _0x2b5b33,ContextPlugin as _0x11a5c3}from'ckeditor5/src/core.js';import{CKEditorError as _0x17ac7e}from'ckeditor5/src/utils.js';import{Users as _0x1807da}from'ckeditor5-collaboration/src/collaboration-core.js';import{CommentsService as _0x5a5f91,User as _0x10724c}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{WebSocketGateway as _0xa0e232}from'../realtimecollaborativeediting/websocketgateway.js';import{Sessions as _0x195845}from'../realtimecollaborativeediting/sessions.js';export class CloudServicesCommentsAdapter extends _0x11a5c3{static [_0x4763ac(0x1c0)]=/* #__PURE__ -- @preserve */ ((()=>_0x5a5f91)());[_0x4763ac(0x1af)];static get[_0x4763ac(0x174)](){const _0x5da240=_0x4763ac;return[_0xa0e232,_0x5da240(0x1a0),_0x195845,_0x1807da];}static get[_0x4763ac(0x1cc)](){const _0xdaa20=_0x4763ac;return _0xdaa20(0x195);}static get[_0x4763ac(0x18f)](){return!0x0;}static get[_0x4763ac(0x1d0)](){return!0x0;}constructor(_0x2be149){const _0x57544c=_0x4763ac;super(_0x2be149),this[_0x57544c(0x1af)]=new Map();}async[_0x4763ac(0x19e)](){const _0x7d66e=_0x4763ac,_0x34c09c=this[_0x7d66e(0x1ad)],_0x4891cf=_0x34c09c[_0x7d66e(0x1d3)][_0x7d66e(0x1ac)](_0x7d66e(0x1a0));if(_0x34c09c[_0x7d66e(0x1d3)][_0x7d66e(0x1ac)](_0xa0e232)[_0x7d66e(0x189)](this),_0x4891cf[_0x7d66e(0x197)]={'addCommentThread':async({channelId:_0x2a6324,threadId:_0x548553,comments:_0x8086c5,resolvedAt:_0xd2016e,resolvedBy:_0x1df798,context:_0x522cab,attributes:_0x9aa698})=>{const _0x2eb25c=_0x7d66e,_0x41856e=await this[_0x2eb25c(0x1d4)](_0x2a6324)[_0x2eb25c(0x1c9)]({'commentThreadId':_0x548553,'comments':_0x8086c5[_0x2eb25c(0x18d)](_0x53052b=>function(_0x3f2ccc,_0x1eab3d,_0x18efe0){const _0x4399af=_0x2eb25c;return{'commentThreadId':_0x18efe0,'commentId':_0x3f2ccc[_0x4399af(0x1b7)],'userId':_0x3f2ccc[_0x4399af(0x1c2)],'content':_0x3f2ccc[_0x4399af(0x1a4)],'documentId':_0x1eab3d,'createdAt':_0x3f2ccc[_0x4399af(0x183)],'attributes':_0x3f2ccc[_0x4399af(0x185)]||{}};}(_0x53052b,_0x2a6324,_0x548553)),'resolvedAt':_0xd2016e,'resolvedBy':_0x1df798,'context':_0x522cab,'attributes':_0x9aa698})[_0x2eb25c(0x1ca)](k);return{'threadId':_0x41856e[_0x2eb25c(0x173)],'comments':_0x41856e[_0x2eb25c(0x172)]};},'getCommentThread':async({channelId:_0x1f0494,threadId:_0x5a45d3})=>{const _0x332e88=_0x7d66e,_0x33c935=await this[_0x332e88(0x1d4)](_0x1f0494)[_0x332e88(0x1bf)](_0x5a45d3)[_0x332e88(0x1ca)](F)[_0x332e88(0x1ca)](k);return _0x33c935?_0x33c935[_0x332e88(0x171)]?null:(await this[_0x332e88(0x18e)]([_0x33c935]),{'threadId':_0x33c935[_0x332e88(0x173)],'comments':_0x33c935[_0x332e88(0x172)][_0x332e88(0x18d)](S),'context':_0x33c935[_0x332e88(0x1ad)],'resolvedAt':_0x33c935[_0x332e88(0x1b5)],'resolvedBy':_0x33c935[_0x332e88(0x1c4)],'attributes':_0x33c935[_0x332e88(0x185)]||{}}):null;},'updateCommentThread':async({channelId:_0x242de5,threadId:_0x3797f4,context:_0x31f54e,unlinkedAt:_0xab0ae9,attributes:_0x41574d})=>this[_0x7d66e(0x1d4)](_0x242de5)[_0x7d66e(0x1b8)]({'commentThreadId':_0x3797f4,'context':_0x31f54e,'attributes':_0x41574d,'unlinkedAt':_0xab0ae9})[_0x7d66e(0x1ca)](F)[_0x7d66e(0x1ca)](k),'resolveCommentThread':async({channelId:_0x30de8a,threadId:_0x4e68e3})=>{const _0x137538=_0x7d66e,_0x15450d=await this[_0x137538(0x1d4)](_0x30de8a)[_0x137538(0x1ba)](_0x4e68e3)[_0x137538(0x1ca)](F)[_0x137538(0x1ca)](k);return{'threadId':_0x15450d[_0x137538(0x173)],'resolvedAt':_0x15450d[_0x137538(0x1b5)],'resolvedBy':_0x15450d[_0x137538(0x1c4)]};},'reopenCommentThread':async({channelId:_0x5abef6,threadId:_0x3522cc})=>this[_0x7d66e(0x1d4)](_0x5abef6)[_0x7d66e(0x1a1)](_0x3522cc)[_0x7d66e(0x1ca)](F)[_0x7d66e(0x1ca)](k),'removeCommentThread':({channelId:_0x4312be,threadId:_0x3f6c37})=>this[_0x7d66e(0x1d4)](_0x4312be)[_0x7d66e(0x199)](_0x3f6c37)[_0x7d66e(0x1ca)](F)[_0x7d66e(0x1ca)](k),'addComment':({channelId:_0x3f3730,threadId:_0x47e75c,commentId:_0x33cded,content:_0x4426b6,attributes:_0x3ed092})=>this[_0x7d66e(0x1d4)](_0x3f3730)[_0x7d66e(0x1a8)](_0x47e75c,_0x33cded,_0x4426b6,_0x3ed092)[_0x7d66e(0x1ca)](k),'updateComment':({channelId:_0x57129f,threadId:_0x4124fb,commentId:_0xf7761b,content:_0x34462f,attributes:_0x1702b7})=>this[_0x7d66e(0x1d4)](_0x57129f)[_0x7d66e(0x1a6)](_0x4124fb,_0xf7761b,_0x34462f,_0x1702b7)[_0x7d66e(0x1ca)](F)[_0x7d66e(0x1ca)](k),'removeComment':({channelId:_0x106ebb,threadId:_0x32a42b,commentId:_0x4b2f82})=>this[_0x7d66e(0x1d4)](_0x106ebb)[_0x7d66e(0x1b3)](_0x32a42b,_0x4b2f82)[_0x7d66e(0x1ca)](F)[_0x7d66e(0x1ca)](k)},_0x34c09c instanceof _0x2b5b33){const _0x476a92=_0x34c09c[_0x7d66e(0x1aa)][_0x7d66e(0x1ac)](_0x7d66e(0x19d)),_0x44f309=_0x34c09c[_0x7d66e(0x1d3)][_0x7d66e(0x1ac)](_0x195845);await this[_0x7d66e(0x1ae)](_0x476a92);const _0x43b5af=await this[_0x7d66e(0x1af)][_0x7d66e(0x1ac)](_0x476a92)[_0x7d66e(0x1bd)]();this[_0x7d66e(0x1bc)](_0x44f309,_0x7d66e(0x1ce)+_0x476a92,(_0x5536c1,{session:_0x86afc3})=>{const _0x39b4e2=_0x7d66e;_0x86afc3['id']===_0x44f309[_0x39b4e2(0x1a3)]&&(_0x5536c1[_0x39b4e2(0x170)](),this[_0x39b4e2(0x1ad)][_0x39b4e2(0x1d3)][_0x39b4e2(0x1ac)](_0x39b4e2(0x1b6))[_0x39b4e2(0x181)](_0x86afc3[_0x39b4e2(0x18b)],_0x476a92));}),_0x44f309[_0x7d66e(0x186)](_0x476a92,_0x43b5af);}}async[_0x4763ac(0x1ae)](_0x31d204){const _0x5913c4=_0x4763ac;if(this[_0x5913c4(0x1af)][_0x5913c4(0x17c)](_0x31d204))throw new _0x17ac7e(_0x5913c4(0x196),null,{'channelId':_0x31d204});const _0x6cb558=this[_0x5913c4(0x1ad)][_0x5913c4(0x1d3)][_0x5913c4(0x1ac)](_0x5913c4(0x1a0)),_0x36519a=new CloudServicesCommentsAdapter[(_0x5913c4(0x1c0))](_0x31d204);this[_0x5913c4(0x1af)][_0x5913c4(0x19c)](_0x31d204,_0x36519a),this[_0x5913c4(0x1bc)](_0x36519a,_0x5913c4(0x184),(_0x14d559,_0x452fb5)=>{const _0x4702d3=_0x5913c4,{commentThreadId:_0x3129dc,documentId:_0x4e587f,context:_0x1f801c,attributes:_0x5b3472,resolvedAt:_0x316f5d,resolvedBy:_0x32190b,comments:_0x47a133}=_0x452fb5;_0x6cb558[_0x4702d3(0x1bf)](_0x3129dc)||_0x6cb558[_0x4702d3(0x1c9)]({'threadId':_0x3129dc,'channelId':_0x4e587f,'comments':_0x47a133?_0x47a133[_0x4702d3(0x18d)](S):[],'context':_0x1f801c,'attributes':_0x5b3472,'resolvedAt':_0x316f5d,'resolvedBy':_0x32190b,'isFromAdapter':!0x0});}),this[_0x5913c4(0x1bc)](_0x36519a,_0x5913c4(0x176),(_0x36c1eb,{commentThreadId:_0x3746f7,documentId:_0x2aa327,context:_0x37b29d,unlinkedAt:_0x47c8d4,attributes:_0x4c9d6d})=>{const _0x14f5fd=_0x5913c4;_0x6cb558[_0x14f5fd(0x1bf)](_0x3746f7)&&_0x6cb558[_0x14f5fd(0x1b8)]({'threadId':_0x3746f7,'channelId':_0x2aa327,'context':_0x37b29d,'unlinkedAt':_0x47c8d4,'attributes':_0x4c9d6d,'isFromAdapter':!0x0});}),this[_0x5913c4(0x1bc)](_0x36519a,_0x5913c4(0x1c6),(_0x12df43,{commentThreadId:_0x1bd62f,resolvedBy:_0x509f89,resolvedAt:_0x3e9acc})=>{const _0x172dd=_0x5913c4,_0x41e5b0=_0x6cb558[_0x172dd(0x1bf)](_0x1bd62f);_0x41e5b0&&_0x41e5b0[_0x172dd(0x1a7)]({'resolvedBy':_0x509f89,'resolvedAt':_0x3e9acc,'isFromAdapter':!0x0});}),this[_0x5913c4(0x1bc)](_0x36519a,_0x5913c4(0x1c8),(_0x1a54e,{commentThreadId:_0x219381})=>{const _0x499c22=_0x5913c4,_0x3acbae=_0x6cb558[_0x499c22(0x1bf)](_0x219381);_0x3acbae&&_0x3acbae[_0x499c22(0x188)]({'isFromAdapter':!0x0});}),this[_0x5913c4(0x1bc)](_0x36519a,_0x5913c4(0x179),(_0x3b4c1c,{commentThreadId:_0x18d431})=>{const _0x618f21=_0x5913c4,_0x11faad=_0x6cb558[_0x618f21(0x1bf)](_0x18d431);_0x11faad&&_0x11faad[_0x618f21(0x190)]({'isFromAdapter':!0x0});}),this[_0x5913c4(0x1bc)](_0x36519a,_0x5913c4(0x178),(_0x18249b,_0x6b67e)=>{const _0x29322c=_0x5913c4,_0x3ffe67=_0x6b67e[_0x29322c(0x173)],_0x2a5c30=_0x6cb558[_0x29322c(0x1bf)](_0x3ffe67);_0x2a5c30&&_0x2a5c30[_0x29322c(0x1a8)]({...S(_0x6b67e),'isFromAdapter':!0x0});}),this[_0x5913c4(0x1bc)](_0x36519a,_0x5913c4(0x1d2),(_0x99ef32,{commentThreadId:_0x312c93,commentId:_0x4ed431,content:_0x13871e,attributes:_0x36999f})=>{const _0x3285c9=_0x5913c4,_0x498ba0=_0x6cb558[_0x3285c9(0x1bf)](_0x312c93);if(_0x498ba0){const _0x561813=_0x498ba0[_0x3285c9(0x1d5)](_0x4ed431);_0x561813&&_0x561813[_0x3285c9(0x19f)]({'content':_0x13871e,'attributes':_0x36999f,'isFromAdapter':!0x0});}}),this[_0x5913c4(0x1bc)](_0x36519a,_0x5913c4(0x1a9),(_0x1e751d,{commentThreadId:_0xfff2b7,commentId:_0x28319c})=>{const _0x2d0293=_0x5913c4,_0x5445c8=_0x6cb558[_0x2d0293(0x1bf)](_0xfff2b7);if(_0x5445c8){const _0x33669f=_0x5445c8[_0x2d0293(0x1d5)](_0x28319c);_0x33669f&&_0x33669f[_0x2d0293(0x190)]({'isFromAdapter':!0x0});}}),await this[_0x5913c4(0x1ab)](_0x31d204);}[_0x4763ac(0x1b4)](){const _0x2eb2c6=_0x4763ac;if(this[_0x2eb2c6(0x1ad)]instanceof _0x2b5b33){const _0x16f286=this[_0x2eb2c6(0x1ad)][_0x2eb2c6(0x1aa)][_0x2eb2c6(0x1ac)](_0x2eb2c6(0x19d));this[_0x2eb2c6(0x1b9)](_0x16f286);}}[_0x4763ac(0x1b9)](_0x412077){const _0x1f60ba=_0x4763ac;if(!this[_0x1f60ba(0x1af)][_0x1f60ba(0x17c)](_0x412077))throw new _0x17ac7e(_0x1f60ba(0x1b2),null,{'channelId':_0x412077});this[_0x1f60ba(0x1d4)](_0x412077)[_0x1f60ba(0x1a2)](),this[_0x1f60ba(0x1af)][_0x1f60ba(0x1b0)](_0x412077);}async[_0x4763ac(0x1c5)](){const _0x28dcfe=_0x4763ac;for(const _0x2cfc96 of this[_0x28dcfe(0x1af)][_0x28dcfe(0x17e)]())await this[_0x28dcfe(0x1ab)](_0x2cfc96);if(this[_0x28dcfe(0x1ad)]instanceof _0x2b5b33){const _0x1e7e4e=this[_0x28dcfe(0x1ad)][_0x28dcfe(0x1aa)][_0x28dcfe(0x1ac)](_0x28dcfe(0x19d)),_0x3f4fb4=this[_0x28dcfe(0x1ad)][_0x28dcfe(0x1d3)][_0x28dcfe(0x1ac)](_0x195845);_0x3f4fb4[_0x28dcfe(0x180)](_0x1e7e4e);const _0x79796b=await this[_0x28dcfe(0x1af)][_0x28dcfe(0x1ac)](_0x1e7e4e)[_0x28dcfe(0x1bd)]();_0x3f4fb4[_0x28dcfe(0x186)](_0x1e7e4e,_0x79796b);}}async[_0x4763ac(0x1ab)](_0x1ddd1d){const _0x431d34=_0x4763ac,{connection:_0x161c41}=this[_0x431d34(0x1ad)][_0x431d34(0x1d3)][_0x431d34(0x1ac)](_0xa0e232),_0x4929f0=this[_0x431d34(0x1ad)][_0x431d34(0x1d3)][_0x431d34(0x1ac)](_0x431d34(0x1a0)),_0x4017c3=this[_0x431d34(0x1af)][_0x431d34(0x1ac)](_0x1ddd1d),_0x5e77fc=await _0x4017c3[_0x431d34(0x1cd)](_0x161c41);await this[_0x431d34(0x18e)](_0x5e77fc);const _0x1744f6=new Set(Array[_0x431d34(0x1cf)](_0x4929f0[_0x431d34(0x192)]({'channelId':_0x1ddd1d}),_0x43bb57=>_0x43bb57['id']));for(const _0x11c781 of _0x5e77fc)_0x11c781[_0x431d34(0x171)]||_0x1744f6[_0x431d34(0x1b0)](_0x11c781[_0x431d34(0x173)]);for(const _0x1f5f8e of _0x1744f6)_0x4929f0[_0x431d34(0x1bf)](_0x1f5f8e)[_0x431d34(0x190)]({'isFromAdapter':!0x0});for(const _0x54c851 of _0x5e77fc){let _0x2fb59c=_0x4929f0[_0x431d34(0x1bf)](_0x54c851[_0x431d34(0x173)]);const {commentThreadId:_0x21e442,context:_0x12f494,attributes:_0xcad316,resolvedBy:_0x56b4f6,resolvedAt:_0x7e8bc4,unlinkedAt:_0x22a01f,deletedAt:_0x1a6e0d}=_0x54c851;if(_0x1a6e0d)continue;_0x2fb59c||(_0x2fb59c=_0x4929f0[_0x431d34(0x1c9)]({'channelId':_0x1ddd1d,'threadId':_0x21e442,'context':_0x12f494,'attributes':_0xcad316||{},'resolvedBy':_0x56b4f6,'resolvedAt':_0x7e8bc4,'unlinkedAt':_0x22a01f,'isFromAdapter':!0x0}));const _0x56cb0c=new Set(Array[_0x431d34(0x1cf)](_0x2fb59c[_0x431d34(0x172)],_0x415ebf=>_0x415ebf['id']));for(const _0x549d81 of _0x54c851[_0x431d34(0x172)])_0x56cb0c[_0x431d34(0x1b0)](_0x549d81[_0x431d34(0x1b7)]);for(const _0x617f12 of _0x56cb0c)_0x2fb59c[_0x431d34(0x1d5)](_0x617f12)[_0x431d34(0x190)]({'isFromAdapter':!0x0});for(const _0x4d4b81 of _0x54c851[_0x431d34(0x172)]){const _0x25c40d=_0x2fb59c[_0x431d34(0x1d5)](_0x4d4b81[_0x431d34(0x1b7)]);_0x25c40d?_0x25c40d[_0x431d34(0x1a4)]!==_0x4d4b81[_0x431d34(0x1a4)]&&_0x25c40d[_0x431d34(0x19f)]({'content':_0x4d4b81[_0x431d34(0x1a4)],'isFromAdapter':!0x0}):_0x2fb59c[_0x431d34(0x1a8)](Object[_0x431d34(0x1cb)](S(_0x4d4b81),{'isFromAdapter':!0x0}));}}}[_0x4763ac(0x1d4)](_0x46337d){const _0x58e2f5=_0x4763ac;if(!this[_0x58e2f5(0x1af)][_0x58e2f5(0x17c)](_0x46337d))throw new _0x17ac7e(_0x58e2f5(0x17b),null,{'channelId':_0x46337d});return this[_0x58e2f5(0x1af)][_0x58e2f5(0x1ac)](_0x46337d);}async[_0x4763ac(0x18e)](_0x1274f1){const _0x2f817f=_0x4763ac,_0x12ebc9=this[_0x2f817f(0x1ad)][_0x2f817f(0x1d3)][_0x2f817f(0x1ac)](_0x1807da),{connection:_0x14fb6d}=this[_0x2f817f(0x1ad)][_0x2f817f(0x1d3)][_0x2f817f(0x1ac)](_0xa0e232),_0x3b29ad=new Set();for(const {resolvedBy:_0x28d5b1,comments:_0x14369c}of _0x1274f1){_0x28d5b1&&!_0x12ebc9[_0x2f817f(0x1c3)](_0x28d5b1)&&_0x3b29ad[_0x2f817f(0x193)](_0x28d5b1);for(const {userId:_0x22a68b}of _0x14369c)_0x12ebc9[_0x2f817f(0x1c3)](_0x22a68b)||_0x3b29ad[_0x2f817f(0x193)](_0x22a68b);}if(0x0===_0x3b29ad[_0x2f817f(0x182)])return;const _0x345470=await _0x10724c[_0x2f817f(0x1c7)](_0x14fb6d,Array[_0x2f817f(0x1cf)](_0x3b29ad));for(const _0x3e1eeb of _0x345470)_0x12ebc9[_0x2f817f(0x1c3)](_0x3e1eeb['id'])||_0x12ebc9[_0x2f817f(0x1bb)](_0x3e1eeb);}}function _0x327b(){const _0x2a2675=['removeComment','destroy','resolvedAt','Permissions','commentId','updateCommentThread','_terminateService','resolveCommentThread','addUser','listenTo','getConnectedSessions','cloud-services-internal-error:\x20Not\x20connected.','getCommentThread','CommentsService','startsWith','authorId','getUser','resolvedBy','reconnect','commentThreadResolved','getMany','commentThreadReopened','addCommentThread','catch','assign','pluginName','connect','sessionAdd:','from','isPremiumPlugin','userId','commentUpdated','plugins','_getService','getComment','off','deletedAt','comments','commentThreadId','requires','169876ebHguk','commentThreadUpdated','code','commentAdded','commentThreadRemoved','411571FsFQQn','cloudservicescommentsadapter-service-not-exist','has','404','keys','message','unregister','setPermissions','size','createdAt','commentThreadAdded','attributes','register','6qmjDDP','reopen','addToReconnectionStack','cloud-services-internal-error:\x20Comments\x20Service\x20is\x20not\x20connected.','permissions','11268290mePTws','map','_fetchMissingUsersForThreads','isOfficialPlugin','remove','cloud-services-internal-error:\x20Request\x20timeout.','getCommentThreads','add','1109007hJphME','CloudServicesCommentsAdapter','cloudservicescommentsadapter-connect-already-connected','adapter','455016XVdQql','removeCommentThread','10VmkKrs','2955816tCFKsf','set','collaboration.channelId','init','update','CommentsRepository','reopenCommentThread','disconnect','mySessionId','content','84847NwGMhr','updateComment','resolve','addComment','commentRemoved','config','_connectService','get','context','_setUpService','_services','delete','48JAZgaz','cloudservicescommentsadapter-disconnect-not-exist'];_0x327b=function(){return _0x2a2675;};return _0x327b();}async function F(_0x4f93f1){const _0x3feade=_0x4763ac;if(_0x3feade(0x17d)!==_0x4f93f1[_0x3feade(0x177)])throw _0x4f93f1;}function k(_0x252d66){const _0x12d602=_0x4763ac;if((_0x1e1d2a=_0x252d66)[_0x12d602(0x17f)][_0x12d602(0x1c1)](_0x12d602(0x18a))||_0x1e1d2a[_0x12d602(0x17f)][_0x12d602(0x1c1)](_0x12d602(0x1be))||_0x1e1d2a[_0x12d602(0x17f)][_0x12d602(0x1c1)](_0x12d602(0x191)))return new Promise(()=>{});var _0x1e1d2a;throw _0x252d66;}function _0x2956(_0x100d47,_0x5acc34){const _0x327b53=_0x327b();return _0x2956=function(_0x29562b,_0x516ac3){_0x29562b=_0x29562b-0x170;let _0x20d0b5=_0x327b53[_0x29562b];return _0x20d0b5;},_0x2956(_0x100d47,_0x5acc34);}function S(_0x398210){const _0x3d045d=_0x4763ac;return{'threadId':_0x398210[_0x3d045d(0x173)],'commentId':_0x398210[_0x3d045d(0x1b7)],'content':_0x398210[_0x3d045d(0x1a4)],'createdAt':_0x398210[_0x3d045d(0x183)],'authorId':_0x398210[_0x3d045d(0x1d1)],'attributes':_0x398210[_0x3d045d(0x185)]||{}};}