@communi/chat-api-client-typescript 2.9.14 → 2.9.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +20 -20
- package/README.md +3 -3
- package/index.js +1 -1
- package/package.json +26 -26
- package/src/api-version.d.ts +1 -0
- package/src/api-version.js +1 -1
- package/src/axios.js +1 -1
- package/src/client.js +1 -1
- package/src/config/config.js +1 -1
- package/src/config/index.js +1 -1
- package/src/config/types.js +1 -1
- package/src/demo.js +1 -1
- package/src/guest/guest.js +1 -1
- package/src/guest/index.js +1 -1
- package/src/guest/types.js +1 -1
- package/src/index.js +1 -1
- package/src/jwt.js +1 -1
- package/src/message/index.js +1 -1
- package/src/message/message.d.ts +2 -0
- package/src/message/message.js +1 -1
- package/src/message/types.js +1 -1
- package/src/notification/index.js +1 -1
- package/src/notification/notification.js +1 -1
- package/src/notification/types.js +1 -1
- package/src/preview-link/index.js +1 -1
- package/src/preview-link/preview-link.js +1 -1
- package/src/preview-link/types.js +1 -1
- package/src/search/index.js +1 -1
- package/src/search/search.js +1 -1
- package/src/search/types.js +1 -1
- package/src/session/index.js +1 -1
- package/src/session/session.js +1 -1
- package/src/session/types.js +1 -1
- package/src/setting/index.js +1 -1
- package/src/setting/setting.d.ts +5 -1
- package/src/setting/setting.js +1 -1
- package/src/setting/types.d.ts +12 -0
- package/src/setting/types.js +1 -1
- package/src/sticker/index.js +1 -1
- package/src/sticker/sticker.js +1 -1
- package/src/sticker/types.js +1 -1
- package/src/super-groups/index.js +1 -1
- package/src/super-groups/super-groups.js +1 -1
- package/src/tag/index.js +1 -1
- package/src/tag/tag.js +1 -1
- package/src/tag/types.js +1 -1
- package/src/tag-category/category.js +1 -1
- package/src/tag-category/index.js +1 -1
- package/src/tag-category/types.js +1 -1
- package/src/thread/index.js +1 -1
- package/src/thread/thread.d.ts +13 -1
- package/src/thread/thread.js +1 -1
- package/src/thread/types.d.ts +16 -10
- package/src/thread/types.js +1 -1
- package/src/ticket/index.js +1 -1
- package/src/ticket/ticket.js +1 -1
- package/src/ticket/types.js +1 -1
- package/src/types.js +1 -1
- package/src/upload/index.js +1 -1
- package/src/upload/types.js +1 -1
- package/src/upload/upload.js +1 -1
- package/src/user/index.js +1 -1
- package/src/user/types.js +1 -1
- package/src/user/user.js +1 -1
- package/src/utils.js +1 -1
package/LICENSE
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2023 PiScale Developer
|
|
4
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
6
|
-
in the Software without restriction, including without limitation the rights
|
|
7
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
8
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
9
|
-
furnished to do so, subject to the following conditions:
|
|
10
|
-
|
|
11
|
-
The above copyright notice and this permission notice shall be included in all
|
|
12
|
-
copies or substantial portions of the Software.
|
|
13
|
-
|
|
14
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
16
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
17
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
18
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
19
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
20
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023 PiScale Developer
|
|
4
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
6
|
+
in the Software without restriction, including without limitation the rights
|
|
7
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
8
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
9
|
+
furnished to do so, subject to the following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice shall be included in all
|
|
12
|
+
copies or substantial portions of the Software.
|
|
13
|
+
|
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
16
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
17
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
18
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
19
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
20
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# PiScale Chat API Client Typescript
|
|
2
|
-
|
|
3
|
-
[Communi Chat SDK](https://docs.communi.io/)
|
|
1
|
+
# PiScale Chat API Client Typescript
|
|
2
|
+
|
|
3
|
+
[Communi Chat SDK](https://docs.communi.io/)
|
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';(function(s,H){var N=Y,n=s();while(!![]){try{var k=-parseInt(N(0x197))/0x1*(-parseInt(N(0x192))/0x2)+parseInt(N(0x196))/0x3+parseInt(N(0x198))/0x4+parseInt(N(0x193))/0x5+parseInt(N(0x191))/0x6*(-parseInt(N(0x190))/0x7)+-parseInt(N(0x194))/0x8+parseInt(N(0x195))/0x9*(-parseInt(N(0x199))/0xa);if(k===H)break;else n['push'](n['shift']());}catch(t){n['push'](n['shift']());}}}(h,0x53d06));export*from'./src';function Y(s,H){var n=h();return Y=function(k,t){k=k-0x190;var N=n[k];return N;},Y(s,H);}function h(){var W=['1110756YLkcew','135bKqAwe','182148NpQYnd','60GwEEeS','407743acgEHi','54BqcFQi','6322xrPbUX','3099585lTvYoo','1455872KMgkao','619371BGTsWT'];h=function(){return W;};return h();}
|
package/package.json
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@communi/chat-api-client-typescript",
|
|
3
|
-
"version": "2.9.
|
|
4
|
-
"description": "PiScale Chat API Client Typescript",
|
|
5
|
-
"homepage": "https://github.com/piscale",
|
|
6
|
-
"license": "MIT",
|
|
7
|
-
"author": "PiScale Developer <piscale_dev@piscale.com> (https://github.com/piscale)",
|
|
8
|
-
"main": "index.js",
|
|
9
|
-
"types": "index.d.ts",
|
|
10
|
-
"dependencies": {
|
|
11
|
-
"axios": "^1.5.0",
|
|
12
|
-
"axios-retry": "^3.7.0",
|
|
13
|
-
"base-64": "^1.0.0"
|
|
14
|
-
},
|
|
15
|
-
"devDependencies": {
|
|
16
|
-
"@types/form-data": "^2.5.0",
|
|
17
|
-
"axios-logger": "2.7.0",
|
|
18
|
-
"axios-mock-adapter": "^1.21.3",
|
|
19
|
-
"typescript": "^5.2.2"
|
|
20
|
-
},
|
|
21
|
-
"peerDependencies": {
|
|
22
|
-
"axios": ">= 1.5.0",
|
|
23
|
-
"axios-retry": ">= 3.7.0",
|
|
24
|
-
"base-64": ">= 1.0.0"
|
|
25
|
-
}
|
|
26
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@communi/chat-api-client-typescript",
|
|
3
|
+
"version": "2.9.16",
|
|
4
|
+
"description": "PiScale Chat API Client Typescript",
|
|
5
|
+
"homepage": "https://github.com/piscale",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"author": "PiScale Developer <piscale_dev@piscale.com> (https://github.com/piscale)",
|
|
8
|
+
"main": "index.js",
|
|
9
|
+
"types": "index.d.ts",
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"axios": "^1.5.0",
|
|
12
|
+
"axios-retry": "^3.7.0",
|
|
13
|
+
"base-64": "^1.0.0"
|
|
14
|
+
},
|
|
15
|
+
"devDependencies": {
|
|
16
|
+
"@types/form-data": "^2.5.0",
|
|
17
|
+
"axios-logger": "2.7.0",
|
|
18
|
+
"axios-mock-adapter": "^1.21.3",
|
|
19
|
+
"typescript": "^5.2.2"
|
|
20
|
+
},
|
|
21
|
+
"peerDependencies": {
|
|
22
|
+
"axios": ">= 1.5.0",
|
|
23
|
+
"axios-retry": ">= 3.7.0",
|
|
24
|
+
"base-64": ">= 1.0.0"
|
|
25
|
+
}
|
|
26
|
+
}
|
package/src/api-version.d.ts
CHANGED
|
@@ -7,3 +7,4 @@ export declare const PS_STICKER_API_VERSION = "sticker/v1.0";
|
|
|
7
7
|
export declare const PS_USER_API_VERSION = "user/v1.0";
|
|
8
8
|
export declare const PS_DESK_API_VERSION = "desk/v1.0";
|
|
9
9
|
export declare const PS_APPLICATION_API_VERSION = "application/v1.0";
|
|
10
|
+
export declare const PS_STAFF_API_VERSION = "staff/v1.0";
|
package/src/api-version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const W=Y;function h(){const i=['staff','notif','104656ikspnC','d/v1.','user/','15462819KGTgdr','2943660vjJhxp','120UMuSMF','v1.0','6464bZBKPs','588226zuhpbr','appli','h/v1.','catio','566279cLEPRV','desk/','searc','/v1.0','er/v1','icati','on/v1','previ','3QeuuPl','nk/v1','chat/','n/v1.','2330KTQskh','7812510gKjTcD','stick','ew-li','uploa'];h=function(){return i;};return h();}function Y(s,H){const n=h();return Y=function(k,t){k=k-0x8d;let N=n[k];return N;},Y(s,H);}(function(s,H){const N=Y,n=s();while(!![]){try{const k=parseInt(N(0x96))/0x1+parseInt(N(0x8e))/0x2*(-parseInt(N(0xa2))/0x3)+-parseInt(N(0x95))/0x4*(parseInt(N(0xa6))/0x5)+parseInt(N(0xa7))/0x6+parseInt(N(0x9a))/0x7*(parseInt(N(0x93))/0x8)+-parseInt(N(0x91))/0x9+parseInt(N(0x92))/0xa;if(k===H)break;else n['push'](n['shift']());}catch(t){n['push'](n['shift']());}}}(h,0xd58a1));export const PS_CHAT_API_VERSION=W(0xa4)+W(0x94),PS_SEARCH_API_VERSION=W(0x9c)+W(0x98)+'0',PS_PREVIEW_LINK_API_VERSION=W(0xa1)+W(0xa9)+W(0xa3)+'.0',PS_UPLOAD_API_VERSION=W(0xaa)+W(0x8f)+'0',PS_NOTIFICATION_API_VERSION=W(0x8d)+W(0x9f)+W(0xa0)+'.0',PS_STICKER_API_VERSION=W(0xa8)+W(0x9e)+'.0',PS_USER_API_VERSION=W(0x90)+W(0x94),PS_DESK_API_VERSION=W(0x9b)+W(0x94),PS_APPLICATION_API_VERSION=W(0x97)+W(0x99)+W(0xa5)+'0',PS_STAFF_API_VERSION=W(0xab)+W(0x9d);
|
package/src/axios.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function Y(){const I=['đang\x20','handl','i\x20=>\x20','id\x20re','ử\x20lại','heade','appli','baseU','rIdem','axios','API\x20','post','KEN_I','hành\x20','công\x20','creat','n/jso','workO','\x20bị\x204','M4016','nce','use','21bhDRXv','isErr','catio','rizat','265610CHogTE','patch','efres','ion','_DEVI','sent','data','NVALI','shTok','messa','01\x20rồ','getJW','ang\x20r','10TQOeWT','516444pzHckS','refre','log','ken\x20t','\x20type','432uykuXV','statu','geErr','espon','CE_TO','orRes','osReq','ken','enPro','url','ng\x20có','h\x20tok','reque','doAxi','quest','i\x20như','30zsxUcP','Autho','delet','Messa','error','code','get','Insta','uest','ge_co','FromR','sh\x20to','jwt','56TjQyHb','confi','eShow','poten','estEr','hác\x20đ','14458848WROXwE','eResp','ror','ponse','ỗi\x20-\x20','nse','est\x20k','early','4365CGLyAI','\x20API\x20','cepto','isNet','age','respo','Beare','optio','Inval','\x20requ','fetch','mise','http_','tRequ','Refre','573046nNtXvJ','onse','inter','put','Token','=>\x20th','langu','ken\x20l','831237JBgWiZ','1129962bREadI'];Y=function(){return I;};return Y();}const Q=s;(function(R,Z){const M=s,F=R();while(!![]){try{const E=parseInt(M(0x104))/0x1+-parseInt(M(0x135))/0x2*(parseInt(M(0x136))/0x3)+-parseInt(M(0xe7))/0x4*(parseInt(M(0x128))/0x5)+parseInt(M(0x10d))/0x6*(parseInt(M(0x124))/0x7)+parseInt(M(0x13b))/0x8*(-parseInt(M(0xf5))/0x9)+parseInt(M(0xda))/0xa*(-parseInt(M(0x10c))/0xb)+parseInt(M(0xed))/0xc;if(E===Z)break;else F['push'](F['shift']());}catch(r){F['push'](F['shift']());}}}(Y,0x768d8));import H from'axios';import{PSResponseError as n}from'./types';import k from'axios-retry';import{decodeJWT as t,isJWTExpired as N}from'./jwt';import{errorLogger as W,requestLogger as i,responseLogger as P}from'./utils';const a=0x191;function s(h,H){const n=Y();return s=function(k,t){k=k-0xcc;let N=n[k];return N;},s(h,H);}export class PSChatAxiosDelegate{[Q(0xe6)];[Q(0xfc)+'ns'];[Q(0x117)+Q(0xe1)+Q(0x122)];[Q(0x137)+Q(0x130)+Q(0xd2)+Q(0x100)];[Q(0x10f)+Q(0xe9)+Q(0xdd)+Q(0xcc)+'or'];[Q(0x10a)+Q(0xf9)];constructor(R,Z,F,E,X){const b=Q;this[b(0xe6)]=R,this[b(0xfc)+'ns']=Z,this[b(0x10a)+b(0xf9)]=X,this[b(0x117)+b(0xe1)+b(0x122)]=H[b(0x11d)+'e']({'baseURL':F,'headers':{'Content-Type':b(0x114)+b(0x126)+b(0x11e)+'n','X-Piscale-Lang':this[b(0x10a)+b(0xf9)]??'vi'},'timeout':0x2710,'withCredentials':!0x1}),this[b(0x117)+b(0xe1)+b(0x122)][b(0x106)+b(0xf7)+'rs'][b(0xd6)+'st'][b(0x123)](async L=>(this[b(0xe6)]?this[b(0xf4)+b(0x103)+b(0x130)+'en'](this[b(0xe6)]):this[b(0xe6)]=await this[b(0xfc)+'ns'][b(0xff)+b(0x108)](),L[b(0x113)+'rs'][b(0xdb)+b(0x127)+b(0x12b)]=b(0xfb)+'r\x20'+this[b(0xe6)],i(L)),L=>W(L)),this[b(0x117)+b(0xe1)+b(0x122)][b(0x106)+b(0xf7)+'rs'][b(0xfa)+b(0xf2)][b(0x123)](L=>P(L),async L=>{const V=b,O=L[V(0xe8)+'g'];if(L[V(0xfa)+V(0xf2)]&&L[V(0xfa)+V(0xf2)][V(0x13c)+'s']===a&&!O[V(0x12d)]){O[V(0x12d)]=!0x0,this[V(0x137)+V(0x130)+V(0xd2)+V(0x100)]?console[V(0x138)](V(0x118)+(O[V(0x115)+'RL']+O[V(0xd3)])+(V(0x120)+V(0x132)+V(0xd9)+V(0xd4)+V(0xfe)+V(0xf3)+V(0xec)+V(0x134)+V(0x12a)+V(0xd5)+'en')):(console[V(0x138)](V(0x118)+(O[V(0x115)+'RL']+O[V(0xd3)])+(V(0x120)+V(0x132)+V(0x110)+V(0x10e)+V(0x137)+V(0xe5)+V(0xd1))),this[V(0x137)+V(0x130)+V(0xd2)+V(0x100)]=this[V(0xfc)+'ns'][V(0xff)+V(0x108)]());try{return this[V(0xe6)]=await this[V(0x137)+V(0x130)+V(0xd2)+V(0x100)],this[V(0x137)+V(0x130)+V(0xd2)+V(0x100)]=void 0x0,console[V(0x138)](V(0x103)+V(0xe5)+V(0x139)+V(0x11b)+V(0x11c)+V(0x109)+V(0x112)+V(0xf6)+(O[V(0x115)+'RL']+O[V(0xd3)])),this[V(0x117)+V(0xe1)+V(0x122)](O);}catch(J){console[V(0x138)](V(0x103)+V(0xe5)+V(0x10b)+V(0xf1)+J);}}return W(L);}),k(this[b(0x117)+b(0xe1)+b(0x122)],{'retries':0x3,'retryDelay':()=>0x3e8,'retryCondition':L=>L[b(0xfa)+b(0xf2)]!==void 0x0&&L[b(0xfa)+b(0xf2)][b(0x13c)+'s']!==a&&k[b(0xf8)+b(0x11f)+b(0x116)+b(0xea)+b(0x102)+b(0xeb)+b(0xef)](L)}),this[b(0x10f)+b(0xe9)+b(0xdd)+b(0xcc)+'or']=E;}[Q(0x133)+'T'](){const o=Q;return this[o(0xe6)];}[Q(0xe0)](R,Z){const j=Q;return this[j(0xd7)+j(0xd0)+j(0xe2)](j(0xe0),R,null,Z);}[Q(0x107)](R,Z,F){const y=Q;return this[y(0xd7)+y(0xd0)+y(0xe2)](y(0x107),R,Z,F);}[Q(0x119)](R,Z,F){const u=Q;return this[u(0xd7)+u(0xd0)+u(0xe2)](u(0x119),R,Z,F);}[Q(0x129)](R,Z,F){const z=Q;return this[z(0xd7)+z(0xd0)+z(0xe2)](z(0x129),R,Z,F);}[Q(0xdc)+'e'](R,Z){const G=Q;return this[G(0xd7)+G(0xd0)+G(0xe2)](G(0xdc)+'e',R,null,Z);}[Q(0xf4)+Q(0x103)+Q(0x130)+'en']=async R=>{const U=Q;if(this[U(0x137)+U(0x130)+U(0xd2)+U(0x100)])return;const Z=t(R);Z&&N(Z)&&(this[U(0x137)+U(0x130)+U(0xd2)+U(0x100)]=this[U(0xfc)+'ns'][U(0xff)+U(0x108)](),this[U(0xe6)]=await this[U(0x137)+U(0x130)+U(0xd2)+U(0x100)],this[U(0x137)+U(0x130)+U(0xd2)+U(0x100)]=void 0x0);};[Q(0xd7)+Q(0xd0)+Q(0xe2)]=async(R,Z,F,E)=>{const B=Q;try{let X;switch(R){case B(0xe0):X=await this[B(0x117)+B(0xe1)+B(0x122)][B(0xe0)](Z,E);break;case B(0xdc)+'e':X=await this[B(0x117)+B(0xe1)+B(0x122)][B(0xdc)+'e'](Z,E);break;case B(0x119):X=await this[B(0x117)+B(0xe1)+B(0x122)][B(0x119)](Z,F,E);break;case B(0x107):X=await this[B(0x117)+B(0xe1)+B(0x122)][B(0x107)](Z,F,E);break;case B(0x129):X=await this[B(0x117)+B(0xe1)+B(0x122)][B(0x129)](Z,F,E);break;case B(0xfc)+'ns':X=await this[B(0x117)+B(0xe1)+B(0x122)][B(0xfc)+'ns'](Z,E);break;default:throw new Error(B(0xfd)+B(0x111)+B(0xd8)+B(0x13a));}return this[B(0x10f)+B(0xee)+B(0x105)](X);}catch(L){if(L[B(0xfa)+B(0xf2)])return this[B(0x10f)+B(0xee)+B(0x105)](L[B(0xfa)+B(0xf2)]);throw L;}};[Q(0x10f)+Q(0xee)+Q(0x105)](R){const S=Q,Z=R[S(0x12e)];if(this[S(0x125)+S(0xcf)+S(0xf0)](R))throw this[S(0x10f)+S(0xe9)+S(0xdd)+S(0xcc)+'or']&&R[S(0x12e)][S(0x131)+'ge']&&R[S(0x13c)+'s']!==a&&R[S(0x12e)][S(0x131)+S(0xe3)+'de']!==S(0x121)+S(0x12c)+S(0xce)+S(0x11a)+S(0x12f)+'D'&&this[S(0x10f)+S(0xe9)+S(0xdd)+S(0xcc)+'or'](R[S(0x12e)][S(0x131)+'ge']),this[S(0xde)+S(0xe4)+S(0xcd)+'se'](R);return Z;}[Q(0xde)+Q(0xe4)+Q(0xcd)+'se'](R){const x=Q,Z=R[x(0x13c)+'s'],F=R[x(0x12e)],E=new n(F[x(0x131)+'ge']??'');return E[x(0x101)+x(0xdf)]=Z,E[x(0xfa)+x(0xf2)]=R,E;}[Q(0x125)+Q(0xcf)+Q(0xf0)](R){const m=Q;return!R[m(0x13c)+'s']||R[m(0x13c)+'s']<0xc8||0x12c<=R[m(0x13c)+'s'];}}
|
package/src/client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const e=H;(function(z,G){const K=H,U=z();while(!![]){try{const B=-parseInt(K(0xa1))/0x1+parseInt(K(0x70))/0x2+parseInt(K(0x9a))/0x3*(-parseInt(K(0x87))/0x4)+parseInt(K(0x82))/0x5*(-parseInt(K(0xa9))/0x6)+-parseInt(K(0xa0))/0x7*(parseInt(K(0x7b))/0x8)+-parseInt(K(0x99))/0x9+-parseInt(K(0x90))/0xa*(-parseInt(K(0xb7))/0xb);if(B===G)break;else U['push'](U['shift']());}catch(q){U['push'](U['shift']());}}}(Y,0x6973e));import{PSChatConfigApiImpl as t}from'./config';import{PSChatThreadApiImpl as N}from'./thread';import{PSChatTagApiImpl as W}from'./tag';import{PSChatMessageApiImpl as i}from'./message';import{PSChatAxiosDelegate as a}from'./axios';import{decodeJWT as R}from'./jwt';import{PSChatUserApiImpl as Z}from'./user';import{PSChatPreviewLinkApiImpl as F}from'./preview-link';import{PSChatSearchApiImpl as E}from'./search';import{PSChatUploadApiImpl as p}from'./upload';function Y(){const h5=['tagAp','267072izuRyP','ateOp','tagCa','ance','Group','tApi','mobil','25hMyDNO','onApi','ewLin','tchTo','healt','2906012yonPEf','Uploa','abort','userI','Inval','hChec','id\x20to','langu','getJW','60QkZhjm','age','eGues','sessi','dApi','Url','e_sdk','id\x20or','threa','2272716jxwrXu','3lQUmBH','_vers','geApi','previ','tions','Deleg','140yerMIP','407330DdNfNZ','s/hea','super','setti','/user','notif','geErr','erApi','842958DhGrPg','Abort','gate','confi','messa','handl','Messa','searc','sApi','creat','userA','kBase','gApi','signa','5206993Hvzyfp','ed\x20fe','Token','ate','ken','\x20miss','axios','tegor','eInst','ngApi','ion','kApi','hApi','valid','ppId','yApi','heck','ser_i','ing\x20a','dDele','696516nEFmlZ','lth-c','eShow','ext_u','ticke','stick','fetch','uploa','appId','icati'];Y=function(){return h5;};return Y();}import{PSChatNotificationApiImpl as X}from'./notification';import{generateBaseUrl as L,generateBaseUploadUrl as O}from'./utils';import{PS_CHAT_API_VERSION as J}from'./api-version';import{PSChatSuperGroupsApiImpl as M}from'./super-groups';import{PSChatStickerApiImpl as Q}from'./sticker';import{PSChatSessionApiImpl as b}from'./session';import{PSChatTicketApiImpl as V}from'./ticket';function H(h,s){const n=Y();return H=function(k,t){k=k-0x65;let N=n[k];return N;},H(h,s);}import{PSChatTagCategoryApiImpl as o}from'./tag-category';import{PSChatGuestApi as j}from'./guest';import{PSChatSettingApiImpl as y}from'./setting';export class PSChatApiClient{[e(0x8a)+'d'];[e(0xac)+e(0xb5)];[e(0x98)+e(0x94)];[e(0xad)+e(0x9c)];[e(0xb3)+'pi'];[e(0x9d)+e(0x84)+e(0x67)];[e(0xb0)+e(0x68)];[e(0x75)+e(0xa8)];[e(0x77)+e(0x94)];[e(0xa6)+e(0x79)+e(0x83)];[e(0xa3)+e(0x7f)+e(0xb1)];[e(0x7a)+'i'];[e(0x93)+e(0x83)];[e(0x7d)+e(0xbe)+e(0x6b)];[e(0x74)+e(0x80)];[e(0xa4)+e(0x65)];[e(0x86)+e(0x8c)+e(0xb4)+e(0x95)];[e(0xbd)+e(0x9f)+e(0xba)];[e(0xbd)+e(0x88)+e(0x6f)+e(0xab)];constructor(z,G,U,B,q,v){const h0=e;PSChatApiClient[h0(0x69)+h0(0x7c)+h0(0x9e)](U),this[h0(0x86)+h0(0x8c)+h0(0xb4)+h0(0x95)]=''+L(U[h0(0x78)])+J+(h0(0xa5)+h0(0xa2)+h0(0x71)+h0(0x6c)),this[h0(0x8a)+'d']=z,this[h0(0xbd)+h0(0x9f)+h0(0xba)]=new a(G,U,L(U[h0(0x78)]),q,v),this[h0(0xbd)+h0(0x88)+h0(0x6f)+h0(0xab)]=new a(G,U,O(U[h0(0x78)]),q),this[h0(0xac)+h0(0xb5)]=new t(this[h0(0xbd)+h0(0x9f)+h0(0xba)]),this[h0(0x98)+h0(0x94)]=new N(this[h0(0xbd)+h0(0x9f)+h0(0xba)]),this[h0(0xad)+h0(0x9c)]=new i(this[h0(0xbd)+h0(0x9f)+h0(0xba)]),this[h0(0xb3)+'pi']=new Z(this[h0(0xbd)+h0(0x9f)+h0(0xba)]),this[h0(0x9d)+h0(0x84)+h0(0x67)]=new F(this[h0(0xbd)+h0(0x9f)+h0(0xba)]),this[h0(0xb0)+h0(0x68)]=new E(this[h0(0xbd)+h0(0x9f)+h0(0xba)]),this[h0(0x75)+h0(0xa8)]=new Q(this[h0(0xbd)+h0(0x9f)+h0(0xba)]),this[h0(0x77)+h0(0x94)]=new p(this[h0(0xbd)+h0(0x88)+h0(0x6f)+h0(0xab)]),this[h0(0xa6)+h0(0x79)+h0(0x83)]=new X(this[h0(0xbd)+h0(0x9f)+h0(0xba)],B),this[h0(0xa3)+h0(0x7f)+h0(0xb1)]=new M(this[h0(0xbd)+h0(0x9f)+h0(0xba)]),this[h0(0x7a)+'i']=new W(this[h0(0xbd)+h0(0x9f)+h0(0xba)]),this[h0(0x93)+h0(0x83)]=new b(this[h0(0xbd)+h0(0x9f)+h0(0xba)]),this[h0(0x7d)+h0(0xbe)+h0(0x6b)]=new o(this[h0(0xbd)+h0(0x9f)+h0(0xba)]),this[h0(0x74)+h0(0x80)]=new V(this[h0(0xbd)+h0(0x9f)+h0(0xba)]),this[h0(0xa4)+h0(0x65)]=new y(this[h0(0xbd)+h0(0x9f)+h0(0xba)]);}[e(0x8f)+'T'](){const h1=e;return this[h1(0xbd)+h1(0x9f)+h1(0xba)][h1(0x8f)+'T']();}static[e(0x69)+e(0x7c)+e(0x9e)](z){const h2=e;if(!z?.[h2(0x78)])throw new Error(h2(0x8b)+h2(0x97)+h2(0xbc)+h2(0x6e)+h2(0x6a));}static async[e(0xb2)+e(0xbf)+e(0x7e)](z){const h3=e;if(z[h3(0xb6)+'l']?.[h3(0x89)+'ed'])throw new Error(h3(0xaa)+h3(0xb8)+h3(0x85)+h3(0xbb));const G=await z[h3(0x76)+h3(0xb9)]();if(z[h3(0xb6)+'l']?.[h3(0x89)+'ed'])throw new Error(h3(0xaa)+h3(0xb8)+h3(0x85)+h3(0xbb));const U=R(G);if(!U||!U[h3(0x73)+h3(0x6d)+'d'])throw new Error(h3(0x8b)+h3(0x8d)+h3(0xbb));return new PSChatApiClient(U[h3(0x73)+h3(0x6d)+'d'],G,z,z[h3(0x81)+h3(0x96)+h3(0x9b)+h3(0x66)],z[h3(0xae)+h3(0x72)+h3(0xaf)+h3(0xa7)+'or'],z[h3(0x8e)+h3(0x91)]);}static async[e(0xb2)+e(0x92)+'t'](z,G){const h4=e;return j[h4(0xb2)+h4(0x92)+'t'](z,G);}}
|
package/src/config/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function h(){var Z=['6915534wlvVFl','res=','mitFi','confi','4478288CkZtKA','ate','5hOZiyc','4WVNqYT','33518604RJwgWv','featu','14IkTzPo','axios','11fjlctZ','fetch','getLi','/sset','16350EeMnYJ','170621ydZdaU','1241009EKiamn','get','leSiz','Confi','2532987JZUEKg','Deleg','4887zcRzlD','ting?'];h=function(){return Z;};return h();}var P=Y;function Y(s,H){var n=h();return Y=function(k,t){k=k-0x8e;var N=n[k];return N;},Y(s,H);}(function(H,n){var i=Y,k=H();while(!![]){try{var N=-parseInt(i(0xa4))/0x1*(parseInt(i(0x9d))/0x2)+parseInt(i(0x8f))/0x3*(parseInt(i(0x9a))/0x4)+parseInt(i(0x99))/0x5*(-parseInt(i(0x93))/0x6)+-parseInt(i(0xa5))/0x7+parseInt(i(0x97))/0x8+parseInt(i(0x91))/0x9*(-parseInt(i(0xa3))/0xa)+-parseInt(i(0x9f))/0xb*(-parseInt(i(0x9b))/0xc);if(N===n)break;else k['push'](k['shift']());}catch(W){k['push'](k['shift']());}}}(h,0xbfb98));import{PS_APPLICATION_API_VERSION as s}from'../api-version';export class PSChatConfigApiImpl{[P(0x9e)+P(0x90)+P(0x98)];constructor(H){var l=P;this[l(0x9e)+l(0x90)+l(0x98)]=H;}[P(0xa0)+P(0x8e)+'gs'](){var a=P;return this[a(0x9e)+a(0x90)+a(0x98)][a(0xa6)](a(0x96)+'gs');}[P(0xa1)+P(0x95)+P(0xa7)+'e'](H){var R=P;return this[R(0x9e)+R(0x90)+R(0x98)][R(0xa6)](s+(R(0xa2)+R(0x92)+R(0x9c)+R(0x94))+H);}}
|
package/src/config/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';(function(s,H){var N=Y,n=s();while(!![]){try{var k=parseInt(N(0xc4))/0x1+parseInt(N(0xbe))/0x2+parseInt(N(0xc3))/0x3+-parseInt(N(0xc1))/0x4*(-parseInt(N(0xbf))/0x5)+parseInt(N(0xc2))/0x6*(parseInt(N(0xbd))/0x7)+parseInt(N(0xbc))/0x8+-parseInt(N(0xc0))/0x9;if(k===H)break;else n['push'](n['shift']());}catch(t){n['push'](n['shift']());}}}(h,0x4f322));function h(){var W=['1304589qccllu','286170mcPPBI','566872ROARjJ','21WTMZtp','156848XeuRBs','290hySGhl','15222069SbVPVo','36440RaXlot','1234062KOwkHN'];h=function(){return W;};return h();}function Y(s,H){var n=h();return Y=function(k,t){k=k-0xbc;var N=n[k];return N;},Y(s,H);}export*from'./config';
|
package/src/config/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';function h(){var W=['5975880ZfqHtI','1406097lMXmhL','24PkKNEp','2sWXbtB','1289316GWFoUw','25486131tsFEmw','30DzWHnB','147507jhwrGW','152902mrhgnZ','36gmMudH','87310uVriWs'];h=function(){return W;};return h();}(function(s,H){var N=Y,n=s();while(!![]){try{var k=-parseInt(N(0x190))/0x1*(parseInt(N(0x18a))/0x2)+-parseInt(N(0x189))/0x3*(parseInt(N(0x18b))/0x4)+-parseInt(N(0x18c))/0x5*(parseInt(N(0x188))/0x6)+-parseInt(N(0x186))/0x7*(parseInt(N(0x18f))/0x8)+-parseInt(N(0x18e))/0x9+-parseInt(N(0x18d))/0xa+parseInt(N(0x187))/0xb;if(k===H)break;else n['push'](n['shift']());}catch(t){n['push'](n['shift']());}}}(h,0x5007b));function Y(s,H){var n=h();return Y=function(k,t){k=k-0x186;var N=n[k];return N;},Y(s,H);}export{};
|
package/src/demo.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function H(h,s){const n=Y();return H=function(k,t){k=k-0x1de;let N=n[k];return N;},H(h,s);}const F=H;(function(k,t){const Z=H,N=k();while(!![]){try{const W=-parseInt(Z(0x20e))/0x1+-parseInt(Z(0x1ff))/0x2*(-parseInt(Z(0x285))/0x3)+-parseInt(Z(0x230))/0x4*(-parseInt(Z(0x235))/0x5)+parseInt(Z(0x248))/0x6*(parseInt(Z(0x26f))/0x7)+parseInt(Z(0x291))/0x8+-parseInt(Z(0x20d))/0x9+-parseInt(Z(0x20f))/0xa*(parseInt(Z(0x24a))/0xb);if(W===t)break;else N['push'](N['shift']());}catch(P){N['push'](N['shift']());}}}(Y,0xc7d54));function Y(){const O=['K1zkk','https','geByI','IwMTY','224yN','JkSPk','12NIMCDh','bMTug','4397789tbxOZV','erApi','f4f-t','AiRNR','eyJhb','vtkN6','qHWGB','NxCoW','previ','ewLin','37655','yI9W9','dtkin','lengt','A0Bf9','GciOi','Nhom\x20','scale','owHNy','arROr','kwODk','_nEvg','Z3e3J','A-2hd','3p6Xp','EXA8J','y3yM5','Qp5vQ','d32I-','g5Nzc','Kien','cXUYi','C53Bw','hdWQi','dZM8-','ien','CSldw','4248489GCiMna','-GQw7','Tg5MD','jEUkJ','JleHR','xlLmN','KfPqt','jY4Nz','6Et3j','HiqTN','strin','zFWvo','RlbmF','RUCBn','6ffPv','Y5ODk','age','_Bxh4','xt0KP','OYTIJ','pYXQi','yJfs3','657NufZxj','y5WZv','HDJI_','tzqNU','ntIr4','1ylw6','38dae','E-Yr_','wMTYz','eSG-q','Ap1Vq','it6vE','4838288uTArlL','e93f1','qOtlH','-kj1-','ezmxE','l90eX','7PAIf','jISep','udF9p','-oTsg','9qeSQ','OiJwa','ancjj','304-9','clGXW','Zw9XS','FDmpY','-aLFK','NywiZ','TY5OD','8qcoX','pAcXq','NzY3M','OdgHD','LHBDW','miimi','0gWb-','JSUzI','zciLC','vNAqR','vZJ-D','nwmMK','psOxf','TKvvF','be080','OfOTW','qHG8N','tyNeN','d_id','fdXNl','BoIqO','rsvvg','dById','VHTQJ','3fZKJ','pXVCJ','onse\x20','PK_w6','qTwYt','eMess','ImV4c','kien.','i_M-Y','Jksx4','5Aivp','U6GYw','CI6MT','YiLCJ','Ty19x','xLRBx','DY3ND','tdQcs','JdIv6','HEsfw','13d-4','-EFp-','8c9-c','1NiIs','log','dApi','InR5c','NvjAE','XNjYW','4PBkd','eInst','4c2-5','wZ-Yr','m165W','9.eyJ','sIm5i','ance','-nuI3','threa','Packa','L_6J0','29iEc','fetch','zLmWd','6ipgy','eThre','OjE2O','d5b-9','data','jpg','kApi','gify','CI6Ij','Kieen','BSca3','HhX8L','lJ1tb','q9ZSI','TL9hh','Y1I67','cl9pZ','zOTMx','3672qeIoxC','WZIoQ','ig0vQ','Test','RNpuw','15GcP','OTMyM','d\x20=\x20','cua\x20K','1Jjc6','YB-Xu','.com/','ZiI6M','lbjoQ','1765854EXgtmS','620191DrYxBh','20PUdKXB','mEhk6','Y4NzI','d4fc7','kResp','j5P9v','Threa','VTPOx','nYNjR','mOLRZ','Previ','hXweO','K6Ojx','2HKVz','OJeWY','NNjnb','://pi','km5qG','FWaCx','b6xDy','ZCI6I','b30-1','3iNxv','oyGmM','UF55U','creat','xfQ.i','BlIjo','geApi','woNAs','f8bc2','3Nywi','aa9-9','122164bJeJjO','BuLB8','vbSIs','CI6Ik','9T4Ls','35eXFbch','stick','Xh0X3','Q7V1a','dXNlc','mAoHh','1yoAl','TA_xN','messa','da7-4','5NTM3','5LZWc','mY_Ep'];Y=function(){return O;};return Y();}import{PSChatApiClient as n}from'./client';const i=F(0x24e)+F(0x259)+F(0x2ac)+F(0x2d4)+F(0x2d7)+F(0x233)+F(0x2be)+F(0x1e3)+F(0x26b)+F(0x29c)+F(0x2d9)+F(0x274)+F(0x232)+F(0x2c3)+F(0x2c9)+F(0x27e)+F(0x23f)+F(0x2a3)+F(0x237)+F(0x27b)+F(0x299)+F(0x223)+F(0x276)+F(0x245)+F(0x1fe)+F(0x2a7)+F(0x2ad)+F(0x273)+F(0x2b8)+F(0x1fd)+F(0x1f5)+F(0x211)+F(0x28d)+F(0x205)+F(0x2cd)+F(0x2ca)+F(0x283)+F(0x1ef)+F(0x271)+F(0x267)+F(0x1e4)+F(0x20b)+F(0x2a4)+F(0x25e)+F(0x22e)+F(0x239)+F(0x296)+F(0x22a)+F(0x229)+F(0x21c)+F(0x262)+F(0x1e9)+F(0x286)+F(0x29f)+F(0x23b)+F(0x2a5)+F(0x288)+F(0x26e)+F(0x270)+F(0x29a)+F(0x2bc)+F(0x221)+F(0x2c6)+F(0x2b0)+F(0x23c)+F(0x1f8)+F(0x226)+F(0x240)+F(0x1fb)+F(0x272)+F(0x2a6)+F(0x28f)+F(0x2cb)+F(0x249)+F(0x1e6)+F(0x1e2)+F(0x255)+F(0x280)+F(0x2d2)+F(0x21b)+F(0x28c)+F(0x210)+F(0x247)+F(0x2aa)+F(0x1ea)+F(0x234)+F(0x2b5)+F(0x256)+F(0x1ed)+F(0x2cc)+F(0x1f7)+F(0x203)+F(0x25c)+F(0x220)+F(0x264)+F(0x297)+F(0x2ba)+F(0x28e)+F(0x227)+F(0x26a)+F(0x284)+F(0x293)+F(0x242)+F(0x27a)+F(0x1e1)+F(0x225)+F(0x21a)+F(0x23a)+F(0x204)+F(0x250)+F(0x2d0)+F(0x2af)+F(0x2a0)+F(0x2ab)+F(0x2c1)+F(0x2b4)+F(0x295)+F(0x231)+F(0x216)+F(0x222)+F(0x260)+F(0x24d)+F(0x269)+F(0x2a2)+F(0x1fa)+F(0x281)+F(0x238)+F(0x24c)+F(0x1fc)+F(0x290)+F(0x28a)+F(0x2b1)+F(0x282)+F(0x1de)+F(0x218)+F(0x20c)+F(0x2a8)+F(0x27c)+F(0x200)+F(0x2cf)+F(0x21e)+F(0x25f)+F(0x1ec)+F(0x29b)+F(0x251)+F(0x209)+F(0x21d)+F(0x201)+F(0x2a1)+F(0x27d)+F(0x246)+F(0x2c8)+F(0x265)+F(0x261)+F(0x26c)+F(0x208)+F(0x2bd)+F(0x1f9)+F(0x2c5)+F(0x2b2)+F(0x278)+F(0x2b6)+F(0x2b9)+F(0x294)+F(0x2a9)+F(0x258)+F(0x2d8)+F(0x24f)+F(0x275)+F(0x25d)+F(0x277)+F(0x2c0)+F(0x214)+F(0x217)+F(0x289)+F(0x2ae)+F(0x2c7)+F(0x287)+F(0x263)+F(0x2ce)+F(0x29d)+F(0x22c)+F(0x298)+F(0x241)+F(0x266)+'LA',r=async k=>{const w=F;try{const t=await k[w(0x1e7)+w(0x2d6)][w(0x228)+w(0x1ee)+'ad']({'type':0x2,'member_ids':['1','2'],'name':w(0x25a)+w(0x207)+w(0x26d),'avatar_url':w(0x243)+w(0x21f)+w(0x25b)+w(0x20a)+w(0x2c4)+w(0x1f2),'description':w(0x202),'alias':w(0x268)});console[w(0x2d5)](w(0x1e7)+w(0x206)+t[w(0x1f1)]?.[w(0x1e7)+w(0x2b7)]);}catch(N){console[w(0x2d5)](N);}},d=async(k,N)=>{const E=F;try{const W=await k[E(0x1e7)+E(0x2d6)][E(0x1eb)+E(0x215)+E(0x2bb)](N);console[E(0x2d5)](E(0x1e7)+E(0x206)+W[E(0x1f1)]?.['id']);}catch(P){console[E(0x2d5)](P);}},h=async(k,N,W)=>{const f=F;try{const P=await k[f(0x1e7)+f(0x2d6)][f(0x1eb)+f(0x215)+'ds'](N,W);console[f(0x2d5)](f(0x1e7)+f(0x206)+P[f(0x1f1)]?.[f(0x257)+'h']);}catch(R){console[f(0x2d5)](R);}},p=async(k,N)=>{const c=F;try{const W=await k[c(0x23d)+c(0x22b)][c(0x228)+c(0x2c2)+c(0x27f)](N,{'request_id':c(0x212)+c(0x2d3)+c(0x2d1)+c(0x29e)+c(0x1e0)+c(0x2b3)+c(0x254)+'b','body':{'text':c(0x1f6)}});}catch(P){console[c(0x2d5)](P);}},l=async(k,N)=>{const X=F;try{const W=await k[X(0x252)+X(0x253)+X(0x1f3)][X(0x1eb)+X(0x219)+X(0x253)+'k'](N);console[X(0x2d5)](X(0x252)+X(0x253)+X(0x213)+X(0x2bf)+'=\x20'+JSON[X(0x279)+X(0x1f4)](W));}catch(P){console[X(0x2d5)](P);}},o=async()=>{const L=F,k=await n[L(0x228)+L(0x1df)+L(0x1e5)]({'appId':'1','fetchToken':async()=>new Promise(t=>t(i))});try{const t=await k[L(0x236)+L(0x24b)][L(0x1eb)+L(0x1e8)+L(0x244)+'d'](L(0x292)+L(0x1f0)+L(0x23e)+L(0x22f)+L(0x224)+L(0x28b)+L(0x22d)+'c');}catch(N){console[L(0x2d5)](N);}};o();
|
package/src/guest/guest.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var Z=Y;(function(N,W){var R=Y,i=N();while(!![]){try{var P=parseInt(R(0x81))/0x1+-parseInt(R(0x75))/0x2*(parseInt(R(0x78))/0x3)+parseInt(R(0x7a))/0x4+-parseInt(R(0x79))/0x5+parseInt(R(0x80))/0x6*(-parseInt(R(0x82))/0x7)+-parseInt(R(0x76))/0x8+-parseInt(R(0x70))/0x9*(-parseInt(R(0x7d))/0xa);if(P===W)break;else i['push'](i['shift']());}catch(l){i['push'](i['shift']());}}}(h,0x5a892));function h(){var w=['2755364MlYeSG','catio','/gues','83260DfBYYr','/chat','creat','834798RvGfOc','567023UWdrsi','7FrptDc','oken','9DcUTxd','eGues','n/jso','appli','get','6OQIGCC','753784ZzFVkM','-id-t','189861BpKqLG','2350695wmzZhP'];h=function(){return w;};return h();}import H from'axios';import{generateGuestUrl as k}from'../utils';import{PS_USER_API_VERSION as t}from'../api-version';function Y(s,H){var n=h();return Y=function(k,t){k=k-0x6f;var N=n[k];return N;},Y(s,H);}export class PSChatGuestApi{static async[Z(0x7f)+Z(0x71)+'t'](N,W){var F=Z;return H[F(0x7f)+'e']({'baseURL':k(),'headers':{'Content-Type':F(0x73)+F(0x7b)+F(0x72)+'n'},'timeout':0x2710,'withCredentials':!0x1})[F(0x74)](t+(F(0x7c)+'t/')+N+(F(0x7e)+F(0x77)+F(0x6f)),{'params':{'tenant_id':W}});}}
|
package/src/guest/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';(function(s,H){var N=Y,n=s();while(!![]){try{var k=parseInt(N(0x19f))/0x1*(parseInt(N(0x19d))/0x2)+parseInt(N(0x19b))/0x3*(-parseInt(N(0x1a3))/0x4)+parseInt(N(0x19e))/0x5*(-parseInt(N(0x1a0))/0x6)+-parseInt(N(0x1a2))/0x7+parseInt(N(0x1a1))/0x8*(parseInt(N(0x19a))/0x9)+parseInt(N(0x199))/0xa+-parseInt(N(0x19c))/0xb;if(k===H)break;else n['push'](n['shift']());}catch(t){n['push'](n['shift']());}}}(h,0x24b44));function Y(s,H){var n=h();return Y=function(k,t){k=k-0x199;var N=n[k];return N;},Y(s,H);}export*from'./guest';function h(){var W=['2618170qXWNPQ','711RZaptk','50538zouDTX','2188164iCshUt','108208FwQkpr','5Zmefbk','3lstsep','55206skEMCI','7592QzpDFz','866523kyAFSX','4fCMYwC'];h=function(){return W;};return h();}export*from'./types';
|
package/src/guest/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';(function(s,H){var N=Y,n=s();while(!![]){try{var k=parseInt(N(0x1b8))/0x1*(parseInt(N(0x1bb))/0x2)+parseInt(N(0x1b9))/0x3+parseInt(N(0x1ba))/0x4+-parseInt(N(0x1b7))/0x5+parseInt(N(0x1b3))/0x6+-parseInt(N(0x1b5))/0x7+-parseInt(N(0x1b6))/0x8*(parseInt(N(0x1b4))/0x9);if(k===H)break;else n['push'](n['shift']());}catch(t){n['push'](n['shift']());}}}(h,0x8ced3));function h(){var W=['549954KuMitL','855967cwMyfk','176vWCTbH','2866575idNUaY','307bFVHrQ','2647629Yevblj','114148coGpWF','3986rwjcvi','6565392vfPEvv'];h=function(){return W;};return h();}function Y(s,H){var n=h();return Y=function(k,t){k=k-0x1b3;var N=n[k];return N;},Y(s,H);}export{};
|
package/src/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';(function(s,H){var N=Y,n=s();while(!![]){try{var k=parseInt(N(0xf3))/0x1*(parseInt(N(0xed))/0x2)+-parseInt(N(0xf6))/0x3*(parseInt(N(0xf2))/0x4)+parseInt(N(0xf1))/0x5*(parseInt(N(0xee))/0x6)+parseInt(N(0xf4))/0x7+parseInt(N(0xef))/0x8+-parseInt(N(0xf0))/0x9+-parseInt(N(0xf5))/0xa;if(k===H)break;else n['push'](n['shift']());}catch(t){n['push'](n['shift']());}}}(h,0x759dd));export*from'./config';export*from'./notification';export*from'./message';export*from'./preview-link';export*from'./search';export*from'./sticker';function h(){var W=['1726MnpfwI','4940089dmsasM','615500YVNiHJ','564meEMWx','696JVMpur','576822LSQITy','5366912QOYfqc','7254279lAuMtp','15tXVWzX','19496gHbHoI'];h=function(){return W;};return h();}export*from'./super-groups';export*from'./thread';export*from'./upload';export*from'./user';export*from'./tag';export*from'./axios';export*from'./client';export*from'./jwt';export*from'./types';export*from'./utils';function Y(s,H){var n=h();return Y=function(k,t){k=k-0xed;var N=n[k];return N;},Y(s,H);}export*from'./session';export*from'./tag-category';export*from'./ticket';export*from'./setting';
|
package/src/jwt.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const w=Y;(function(n,k){const F=Y,t=n();while(!![]){try{const N=parseInt(F(0x1fa))/0x1+parseInt(F(0x1e6))/0x2+-parseInt(F(0x206))/0x3+-parseInt(F(0x1ec))/0x4+-parseInt(F(0x1ff))/0x5*(-parseInt(F(0x207))/0x6)+-parseInt(F(0x20a))/0x7+parseInt(F(0x204))/0x8;if(N===k)break;else t['push'](t['shift']());}catch(W){t['push'](t['shift']());}}}(h,0x50c4b));import{decode as H}from'base-64';global[w(0x1f0)]=H;function h(){const X=['rt\x20#','pecif','enErr','repla','\x20of\x20t','exp','se64\x20','45251eOhGHK','id\x20js','id\x20ba','strin','messa','2380445JIpUPK','on\x20fo','lengt','missi','art\x20#','3601776aaBYFT','name','1467996VfDfpe','6CHywpd','toUpp','r\x20par','3815161CmlHqG','split','ng\x20pa','heade','base6','ing','proto','\x20leng','t\x20#','id\x20to','idTok','parse','ied:\x20','getTi','he\x20co','be\x20a\x20','toStr','ken\x20s','odeAt','rrect','1013246clKUBJ','inval','for\x20p','4\x20str','charC','ing\x20i','452012pMbmfL','type','must\x20','erCas','atob','s\x20not','Inval'];h=function(){return X;};return h();}export const decodeJWT=n=>{try{return d(n,{'header':!0x1});}catch{return;}},isJWTExpired=n=>n[w(0x1f8)]-new Date()[w(0x217)+'me']()/0x3e8<0xa;export class InvalidTokenError extends Error{}InvalidTokenError[w(0x210)+w(0x1ed)][w(0x205)]=w(0x1f2)+w(0x214)+w(0x1f5)+'or';function Y(s,H){const n=h();return Y=function(k,t){k=k-0x1e3;let N=n[k];return N;},Y(s,H);}function i(n){const E=w;return decodeURIComponent(atob(n)[E(0x1f6)+'ce'](/(.)/g,(k,N)=>{const p=E;let W=N[p(0x1ea)+p(0x1e4)](0x0)[p(0x21a)+p(0x20f)](0x10)[p(0x208)+p(0x1ef)+'e']();return W[p(0x201)+'h']<0x2&&(W='0'+W),'%'+W;}));}function s(n){const f=w;let k=n[f(0x1f6)+'ce'](/-/g,'+')[f(0x1f6)+'ce'](/_/g,'/');switch(k[f(0x201)+'h']%0x4){case 0x0:break;case 0x2:k+='==';break;case 0x3:k+='=';break;default:throw new Error(f(0x20e)+f(0x1e9)+f(0x1eb)+f(0x1f1)+f(0x1f7)+f(0x218)+f(0x1e5)+f(0x211)+'th');}try{return i(k);}catch{return atob(k);}}function d(k,N){const r=w;if(typeof k!=r(0x1fd)+'g')throw new InvalidTokenError(r(0x1f2)+r(0x213)+r(0x1e3)+r(0x1f4)+r(0x216)+r(0x1ee)+r(0x219)+r(0x1fd)+'g');N||={};const W=N[r(0x20d)+'r']===!0x0?0x0:0x1,P=k[r(0x20b)]('.')[W];if(typeof P!=r(0x1fd)+'g')throw new InvalidTokenError(r(0x1f2)+r(0x213)+r(0x1e3)+r(0x1f4)+r(0x216)+r(0x202)+r(0x20c)+r(0x1f3)+(W+0x1));let l;try{l=s(P);}catch(R){throw new InvalidTokenError(r(0x1f2)+r(0x213)+r(0x1e3)+r(0x1f4)+r(0x216)+r(0x1e7)+r(0x1fc)+r(0x1f9)+r(0x1e8)+r(0x203)+(W+0x1)+'\x20('+R[r(0x1fe)+'ge']+')');}try{return JSON[r(0x215)](l);}catch(Z){throw new InvalidTokenError(r(0x1f2)+r(0x213)+r(0x1e3)+r(0x1f4)+r(0x216)+r(0x1e7)+r(0x1fb)+r(0x200)+r(0x209)+r(0x212)+(W+0x1)+'\x20('+Z[r(0x1fe)+'ge']+')');}}
|
package/src/message/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';(function(s,H){var N=Y,n=s();while(!![]){try{var k=parseInt(N(0x11d))/0x1*(-parseInt(N(0x123))/0x2)+-parseInt(N(0x11b))/0x3+-parseInt(N(0x121))/0x4+-parseInt(N(0x122))/0x5+parseInt(N(0x120))/0x6+-parseInt(N(0x11c))/0x7+parseInt(N(0x11e))/0x8*(parseInt(N(0x11f))/0x9);if(k===H)break;else n['push'](n['shift']());}catch(t){n['push'](n['shift']());}}}(h,0xc69f4));function h(){var W=['8936064FKwSmA','4626124eMDjLB','1702745WdtnrS','930134frIRFH','1168257nlwVcN','428645YttNgd','1pElnka','5384RHJFoP','23229Mbnwth'];h=function(){return W;};return h();}function Y(s,H){var n=h();return Y=function(k,t){k=k-0x11b;var N=n[k];return N;},Y(s,H);}export*from'./message';export*from'./types';
|
package/src/message/message.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export interface IPSChatMessageApi {
|
|
|
7
7
|
deleteMessage(threadId: string, messageId: number, level: PSDeleteMessageLevel): Promise<PSResponse<any>>;
|
|
8
8
|
fetchMessageById(threadId: string, messageId: number): Promise<PSResponse<PSMessageDto>>;
|
|
9
9
|
fetchMessages(threadId: string, messageId: number, nextLimit?: number, prevLimit?: number): Promise<PSResponse<PSMessageDto[]>>;
|
|
10
|
+
fetchDashboardMessages(threadId: string, messageId: number, nextLimit?: number, prevLimit?: number): Promise<PSResponse<PSMessageDto[]>>;
|
|
10
11
|
markSeenMessage(threadId: string, messageId: number): Promise<PSResponse<any>>;
|
|
11
12
|
forwardMessages(request: PSForwardMessagesRequestDto): Promise<PSResponse<any>>;
|
|
12
13
|
pinMessage(threadId: string, messageId: number, requestId: string): Promise<PSResponse<any>>;
|
|
@@ -30,6 +31,7 @@ export declare class PSChatMessageApiImpl implements IPSChatMessageApi {
|
|
|
30
31
|
deleteMessage(threadId: string, messageId: number, level: PSDeleteMessageLevel): Promise<PSResponse<any>>;
|
|
31
32
|
fetchMessageById(threadId: string, messageId: number): Promise<PSResponse<PSMessageDto>>;
|
|
32
33
|
fetchMessages(threadId: string, messageId: number, nextLimit?: number, prevLimit?: number): Promise<PSResponse<PSMessageDto[]>>;
|
|
34
|
+
fetchDashboardMessages(threadId: string, messageId: number, nextLimit?: number, prevLimit?: number): Promise<PSResponse<PSMessageDto[]>>;
|
|
33
35
|
markSeenMessage(threadId: string, messageId: number): Promise<PSResponse<any>>;
|
|
34
36
|
forwardMessages(request: PSForwardMessagesRequestDto): Promise<PSResponse<any>>;
|
|
35
37
|
pinMessage(threadId: string, messageId: number, requestId: string): Promise<PSResponse<any>>;
|