sass-cms-template-common 0.0.4 → 0.0.6

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.
@@ -0,0 +1,3349 @@
1
+ //#region src/lib/theme/tokens.ts
2
+ var e = {
3
+ primary: "#0067C4",
4
+ primaryHover: "#005CAF",
5
+ primaryDisabled: "#1D1B201A",
6
+ secondary: "#D8E2FF",
7
+ secondaryHover: "#E1E2EA",
8
+ controlBorder: "#727784",
9
+ controlText: "#000000",
10
+ controlHoverBg: "#F9F9FF",
11
+ whiteBtnBorder: "#DDDDDD",
12
+ whiteBtnText: "#515253",
13
+ iconButtonHoverBg: "#E6E6E6",
14
+ iconButtonIcon: "#929193",
15
+ menuSurface: "#ECEDF6",
16
+ surfaceHover: "#E3E2E6",
17
+ textStrong: "#191C22",
18
+ textNav: "#414752",
19
+ border: "#C1C6D4",
20
+ avatarBg: "#F2F6FC",
21
+ avatarBorder: "#DEE2E6",
22
+ white: "#FFFFFF"
23
+ }, t = {
24
+ sm: "8px",
25
+ md: "10px",
26
+ lg: "14px",
27
+ xl: "28px",
28
+ pill: "999px"
29
+ }, n = {
30
+ button: "0 1px 2px rgba(0, 0, 0, 0.10)",
31
+ menu: "0px 1px 3px 0px rgba(0, 0, 0, 0.30), 0px 4px 8px 3px rgba(0, 0, 0, 0.15)",
32
+ menuSoft: "0 10px 30px rgba(0, 0, 0, 0.18)",
33
+ flyout: "0px 8px 16px rgba(0, 0, 0, 0.18)"
34
+ }, r = {
35
+ buttonHeight: 40,
36
+ buttonHeightSm: 34
37
+ }, i = e.menuSurface, a = e.secondary, o = e.white, s = "bluestack-es";
38
+ function c(e) {
39
+ return e.flatMap((e) => e.publications);
40
+ }
41
+ function l(e, t) {
42
+ return c(e).find((e) => String(e.id) === t);
43
+ }
44
+ function u(e, t) {
45
+ return c(e).find((e) => String(e.id) === t)?.description ?? "Seleccionar publicación";
46
+ }
47
+ function d(e) {
48
+ let t = c(e)[0];
49
+ return t ? String(t.id) : "1";
50
+ }
51
+ function f(e) {
52
+ let t = Number(e);
53
+ return Number.isFinite(t) && t > 0 ? t : 1;
54
+ }
55
+ //#endregion
56
+ //#region src/lib/services/auth.ts
57
+ var p = class {
58
+ props;
59
+ authentication;
60
+ constructor(e) {
61
+ this.props = e, this.authentication = e.authentication;
62
+ }
63
+ relogin = async () => {
64
+ try {
65
+ return (await this.props.axiosApi.post("/auth/relogin", { authentication: this.authentication })).data;
66
+ } catch (e) {
67
+ return console.error("[/auth/relogin]", e), Promise.reject(e);
68
+ }
69
+ };
70
+ logout = async () => {
71
+ try {
72
+ return (await this.props.axiosApi.post("/auth/logout", { authentication: this.authentication })).data;
73
+ } catch (e) {
74
+ return console.error("[/auth/logout]", e), Promise.reject(e);
75
+ }
76
+ };
77
+ changePassword = async (e) => {
78
+ try {
79
+ return (await this.props.axiosApi.post("/auth/changePassword", {
80
+ authentication: this.authentication,
81
+ newPassword: e
82
+ })).data;
83
+ } catch (e) {
84
+ return console.error("[/auth/changePassword]", e), Promise.reject(e);
85
+ }
86
+ };
87
+ getPermissions = async () => {
88
+ try {
89
+ return (await this.props.axiosApi.post("/auth/permissions", { authentication: this.authentication })).data;
90
+ } catch (e) {
91
+ return console.error("[/auth/permissions]", e), Promise.reject(e);
92
+ }
93
+ };
94
+ getModulesAvailable = async () => {
95
+ try {
96
+ return (await this.props.axiosApi.post("/auth/modulesAvailable", { authentication: this.authentication })).data;
97
+ } catch (e) {
98
+ return console.error("[/auth/modulesAvailable]", e), Promise.reject(e);
99
+ }
100
+ };
101
+ getCreatePermissions = async () => {
102
+ try {
103
+ return (await this.props.axiosApi.post("/auth/create", { authentication: this.authentication })).data;
104
+ } catch (e) {
105
+ return console.error("[/auth/create]", e), Promise.reject(e);
106
+ }
107
+ };
108
+ }, m = class {
109
+ props;
110
+ authentication;
111
+ constructor(e) {
112
+ this.props = e, this.authentication = e.authentication;
113
+ }
114
+ countNotifications = async () => {
115
+ try {
116
+ return (await this.props.axiosApi.post("/dashboard/countNotifications", { authentication: this.authentication })).data;
117
+ } catch (e) {
118
+ return console.error("[/dashboard/countNotifications]", e), Promise.reject(e);
119
+ }
120
+ };
121
+ getNotifications = async () => {
122
+ try {
123
+ return (await this.props.axiosApi.post("/dashboard/notification", { authentication: this.authentication })).data;
124
+ } catch (e) {
125
+ return console.error("[/dashboard/notification]", e), Promise.reject(e);
126
+ }
127
+ };
128
+ }, h = class {
129
+ props;
130
+ authentication;
131
+ constructor(e) {
132
+ this.props = e, this.authentication = e.authentication;
133
+ }
134
+ getProfile = async () => {
135
+ try {
136
+ return (await this.props.axiosApi.post("/profile/get", { authentication: this.authentication })).data;
137
+ } catch (e) {
138
+ return console.error("[/profile/get]", e), Promise.reject(e);
139
+ }
140
+ };
141
+ updateProfile = async (e) => {
142
+ try {
143
+ return (await this.props.axiosApi.post("/profile/update", {
144
+ authentication: this.authentication,
145
+ user: e
146
+ })).data;
147
+ } catch (e) {
148
+ return console.error("[/profile/update]", e), Promise.reject(e);
149
+ }
150
+ };
151
+ deleteImage = async () => {
152
+ try {
153
+ return (await this.props.axiosApi.post("/profile/image/delete", { authentication: this.authentication })).data;
154
+ } catch (e) {
155
+ return console.error("[/profile/image/delete]", e), Promise.reject(e);
156
+ }
157
+ };
158
+ getModuleAlerts = async () => {
159
+ try {
160
+ return (await this.props.axiosApi.post("/profile/moduleAlerts/get", { authentication: this.authentication })).data;
161
+ } catch (e) {
162
+ return console.error("[/profile/moduleAlerts/get]", e), Promise.reject(e);
163
+ }
164
+ };
165
+ hideModuleAlert = async (e) => {
166
+ try {
167
+ return (await this.props.axiosApi.post("/profile/moduleAlerts/hide", {
168
+ authentication: this.authentication,
169
+ module: e
170
+ })).data;
171
+ } catch (e) {
172
+ return console.error("[/profile/moduleAlerts/hide]", e), Promise.reject(e);
173
+ }
174
+ };
175
+ addPins = async (e) => {
176
+ try {
177
+ return (await this.props.axiosApi.post("/profile/pines/add", {
178
+ authentication: this.authentication,
179
+ pines: { pin: e }
180
+ })).data;
181
+ } catch (e) {
182
+ return console.error("[/profile/pines/add]", e), Promise.reject(e);
183
+ }
184
+ };
185
+ deletePins = async (e) => {
186
+ try {
187
+ return (await this.props.axiosApi.post("/profile/pines/delete", {
188
+ authentication: this.authentication,
189
+ pines: { pin: e }
190
+ })).data;
191
+ } catch (e) {
192
+ return console.error("[/profile/pines/delete]", e), Promise.reject(e);
193
+ }
194
+ };
195
+ getPins = async () => {
196
+ try {
197
+ return (await this.props.axiosApi.post("/profile/pines/get", { authentication: this.authentication })).data;
198
+ } catch (e) {
199
+ return console.error("[/profile/pines/get]", e), Promise.reject(e);
200
+ }
201
+ };
202
+ disableTwoFactorMethod = async (e) => {
203
+ try {
204
+ return (await this.props.axiosApi.post("/profile/twoFactor/method/disable", {
205
+ authentication: this.authentication,
206
+ method: e
207
+ })).data;
208
+ } catch (e) {
209
+ return console.error("[/profile/twoFactor/method/disable]", e), Promise.reject(e);
210
+ }
211
+ };
212
+ enableTwoFactorMethod = async (e) => {
213
+ try {
214
+ return (await this.props.axiosApi.post("/profile/twoFactor/method/enable", {
215
+ authentication: this.authentication,
216
+ method: e
217
+ })).data;
218
+ } catch (e) {
219
+ return console.error("[/profile/twoFactor/method/enable]", e), Promise.reject(e);
220
+ }
221
+ };
222
+ setTwoFactorActive = async () => {
223
+ try {
224
+ return (await this.props.axiosApi.post("/profile/twoFactor/setActive", { authentication: this.authentication })).data;
225
+ } catch (e) {
226
+ return console.error("[/profile/twoFactor/setActive]", e), Promise.reject(e);
227
+ }
228
+ };
229
+ setTwoFactorEmail = async (e) => {
230
+ try {
231
+ return (await this.props.axiosApi.post("/profile/twoFactor/setEmail", {
232
+ authentication: this.authentication,
233
+ email: e
234
+ })).data;
235
+ } catch (e) {
236
+ return console.error("[/profile/twoFactor/setEmail]", e), Promise.reject(e);
237
+ }
238
+ };
239
+ setTwoFactorFavorite = async (e) => {
240
+ try {
241
+ return (await this.props.axiosApi.post("/profile/twoFactor/setFavorite", {
242
+ authentication: this.authentication,
243
+ method: e
244
+ })).data;
245
+ } catch (e) {
246
+ return console.error("[/profile/twoFactor/setFavorite]", e), Promise.reject(e);
247
+ }
248
+ };
249
+ setTwoFactorPhone = async (e) => {
250
+ try {
251
+ return (await this.props.axiosApi.post("/profile/twoFactor/setPhone", {
252
+ authentication: this.authentication,
253
+ phone: e
254
+ })).data;
255
+ } catch (e) {
256
+ return console.error("[/profile/twoFactor/setPhone]", e), Promise.reject(e);
257
+ }
258
+ };
259
+ showOtc = async () => {
260
+ try {
261
+ return (await this.props.axiosApi.post("/profile/twoFactor/showOtc", { authentication: this.authentication })).data;
262
+ } catch (e) {
263
+ return console.error("[/profile/twoFactor/showOtc]", e), Promise.reject(e);
264
+ }
265
+ };
266
+ }, g = class {
267
+ props;
268
+ authentication;
269
+ constructor(e) {
270
+ this.props = e, this.authentication = e.authentication;
271
+ }
272
+ getPublications = async () => {
273
+ try {
274
+ return (await this.props.axiosApi.post("/publications/get", { authentication: this.authentication })).data;
275
+ } catch (e) {
276
+ return console.error("[/publications/get]", e), Promise.reject(e);
277
+ }
278
+ };
279
+ getDefaultPublication = async () => {
280
+ try {
281
+ return (await this.props.axiosApi.post("/publications/default", { authentication: this.authentication })).data;
282
+ } catch (e) {
283
+ return console.error("[/publications/default]", e), Promise.reject(e);
284
+ }
285
+ };
286
+ }, _ = class {
287
+ props;
288
+ authentication;
289
+ constructor(e) {
290
+ this.props = e, this.authentication = e.authentication;
291
+ }
292
+ getSites = async () => {
293
+ try {
294
+ return (await this.props.axiosApi.post("/sites/get", { authentication: this.authentication })).data;
295
+ } catch (e) {
296
+ return console.error("[/sites/get]", e), Promise.reject(e);
297
+ }
298
+ };
299
+ }, v = class {
300
+ props;
301
+ constructor(e) {
302
+ this.props = e;
303
+ }
304
+ login = async (e, t, n, r = "Online") => {
305
+ try {
306
+ let i = new URLSearchParams({
307
+ username: e,
308
+ password: t,
309
+ browserId: n,
310
+ project: r
311
+ });
312
+ return (await this.props.axiosApi.post("/auth/login", i, { headers: { "Content-Type": "application/x-www-form-urlencoded" } })).data;
313
+ } catch (e) {
314
+ return console.error("[/auth/login]", e), Promise.reject(e);
315
+ }
316
+ };
317
+ forgotPassword = async (e) => {
318
+ try {
319
+ let t = new URLSearchParams({ email: e });
320
+ return (await this.props.axiosApi.post("/auth/forgotPassword", t, { headers: { "Content-Type": "application/x-www-form-urlencoded" } })).data;
321
+ } catch (e) {
322
+ return console.error("[/auth/forgotPassword]", e), Promise.reject(e);
323
+ }
324
+ };
325
+ forgotUsername = async (e) => {
326
+ try {
327
+ let t = new URLSearchParams({ email: e });
328
+ return (await this.props.axiosApi.post("/auth/forgotUsername", t, { headers: { "Content-Type": "application/x-www-form-urlencoded" } })).data;
329
+ } catch (e) {
330
+ return console.error("[/auth/forgotUsername]", e), Promise.reject(e);
331
+ }
332
+ };
333
+ passwordConfiguration = async () => {
334
+ try {
335
+ return (await this.props.axiosApi.get("/auth/passwordConfiguration")).data;
336
+ } catch (e) {
337
+ return console.error("[/auth/passwordConfiguration]", e), Promise.reject(e);
338
+ }
339
+ };
340
+ validatePassword = async (e, t) => {
341
+ try {
342
+ return (await this.props.axiosApi.post("/auth/validatePassword", { user: {
343
+ username: e,
344
+ password: t
345
+ } })).data;
346
+ } catch (e) {
347
+ return console.error("[/auth/validatePassword]", e), Promise.reject(e);
348
+ }
349
+ };
350
+ loginValid = async (e) => {
351
+ try {
352
+ return (await this.props.axiosApi.post("/auth/loginValid", { data: e })).data;
353
+ } catch (e) {
354
+ return console.error("[/auth/loginValid]", e), Promise.reject(e);
355
+ }
356
+ };
357
+ setNewPassword = async (e, t, n) => {
358
+ try {
359
+ return (await this.props.axiosApi.post("/auth/setNewPassword", {
360
+ authentication: { browserId: n },
361
+ codeTemp: e,
362
+ newPassword: t
363
+ })).data;
364
+ } catch (e) {
365
+ return console.error("[/auth/setNewPassword]", e), Promise.reject(e);
366
+ }
367
+ };
368
+ twoFactor = {
369
+ generateCode: async (e) => {
370
+ try {
371
+ return (await this.props.axiosApi.post("/auth/twoFactor/generateCode", { authentication: e })).data;
372
+ } catch (e) {
373
+ return console.error("[/auth/twoFactor/generateCode]", e), Promise.reject(e);
374
+ }
375
+ },
376
+ sendCode: async (e) => {
377
+ try {
378
+ return (await this.props.axiosApi.post("/auth/twoFactor/sendCode", { ...e })).data;
379
+ } catch (e) {
380
+ return console.error("[/auth/twoFactor/sendCode]", e), Promise.reject(e);
381
+ }
382
+ },
383
+ verify: async (e) => {
384
+ try {
385
+ let { tempId: t, code: n, method: r, user: i, browserId: a, project: o } = e;
386
+ return (await this.props.axiosApi.post("/auth/twoFactor/verify", {
387
+ tempId: t,
388
+ code: n,
389
+ method: r,
390
+ user: i,
391
+ authentication: {
392
+ browserId: a,
393
+ project: o
394
+ }
395
+ })).data;
396
+ } catch (e) {
397
+ return console.error("[/auth/twoFactor/verify]", e), Promise.reject(e);
398
+ }
399
+ }
400
+ };
401
+ }, y = (e) => btoa(e), b = class {
402
+ props;
403
+ authentication;
404
+ constructor(e) {
405
+ this.props = e, this.authentication = e.authentication;
406
+ }
407
+ authParams = () => {
408
+ let { token: e, browserId: t, publication: n, siteName: r, project: i } = this.authentication;
409
+ return {
410
+ token: y(e),
411
+ browserId: t,
412
+ publication: n,
413
+ siteName: r,
414
+ project: i
415
+ };
416
+ };
417
+ upload = async (e, t, n) => {
418
+ try {
419
+ let r = new FormData();
420
+ return r.append(n?.fileField ?? "files[]", t), n?.fields && Object.entries(n.fields).forEach(([e, t]) => {
421
+ r.append(e, t);
422
+ }), (await this.props.axiosApi.post(e, r, { params: this.authParams() })).data;
423
+ } catch (t) {
424
+ return console.error("[" + e + "]", t), Promise.reject(t);
425
+ }
426
+ };
427
+ uploadImageVFS = (e, t) => this.upload("/images/uploadVFS", e, { fields: t });
428
+ uploadImageSERVER = (e, t) => this.upload("/images/uploadSERVER", e, { fields: t });
429
+ uploadImageAMZ = (e, t) => this.upload("/images/uploadAMZ", e, { fields: t });
430
+ uploadProfilePicture = (e, t) => this.upload("/profile/image/uploadUserPicture", e, { fields: t });
431
+ uploadTranscribeAMZ = (e, t) => this.upload("/transcribe/uploadAMZ", e, { fields: t });
432
+ uploadVideoS3 = (e, t, n) => this.upload("/videos/nativos/uploadS3", e, {
433
+ fileField: "item[0]",
434
+ fields: {
435
+ videoPath: t,
436
+ ...n ?? {}
437
+ }
438
+ });
439
+ }, x = class {
440
+ props;
441
+ authentication;
442
+ constructor(e) {
443
+ this.props = e, this.authentication = e.authentication;
444
+ }
445
+ buildUrl = (e, t) => {
446
+ let n = this.props.axiosApi.defaults.baseURL ?? "", r = Object.entries(t).filter(([, e]) => e != null && e !== "").map(([e, t]) => e + "=" + t).join("&");
447
+ return n + e + "?" + r;
448
+ };
449
+ getVideoEmbeddedPreviewUrl = (e) => {
450
+ let { token: t, browserId: n, siteName: r, publication: i } = this.authentication;
451
+ return this.buildUrl("/videos/edit/previewEmbedded", {
452
+ browserID: n,
453
+ authToken: btoa(t),
454
+ siteName: r,
455
+ publication: i,
456
+ path: e
457
+ });
458
+ };
459
+ getCkeditorPreviewUrl = (e, t) => {
460
+ let { token: n, browserId: r, siteName: i, publication: a } = this.authentication;
461
+ return this.buildUrl("/ckeditor/" + e, {
462
+ authToken: btoa(n),
463
+ browserID: r,
464
+ siteName: i,
465
+ publication: a,
466
+ ...t
467
+ });
468
+ };
469
+ }, S = class {
470
+ props;
471
+ authentication;
472
+ constructor(e) {
473
+ this.props = e, this.authentication = e.authentication;
474
+ }
475
+ getAudios = async (e = {}) => {
476
+ try {
477
+ return (await this.props.axiosApi.post("/audios/get", {
478
+ authentication: this.authentication,
479
+ filters: e
480
+ })).data;
481
+ } catch (e) {
482
+ return console.error("[/audios/get]", e), Promise.reject(e);
483
+ }
484
+ };
485
+ getAdminConfiguration = async () => {
486
+ try {
487
+ return (await this.props.axiosApi.post("/audios/adminConfiguration", { authentication: this.authentication })).data;
488
+ } catch (e) {
489
+ return console.error("[/audios/adminConfiguration]", e), Promise.reject(e);
490
+ }
491
+ };
492
+ }, C = class {
493
+ props;
494
+ authentication;
495
+ constructor(e) {
496
+ this.props = e, this.authentication = e.authentication;
497
+ }
498
+ getCategories = async (e) => {
499
+ try {
500
+ return (await this.props.axiosApi.post("/categories/get", {
501
+ authentication: this.authentication,
502
+ filter: e
503
+ })).data;
504
+ } catch (e) {
505
+ return console.error("[/categories/get]", e), Promise.reject(e);
506
+ }
507
+ };
508
+ refactorCategories = async (e = {}) => {
509
+ try {
510
+ return (await this.props.axiosApi.post("/categories/refactor", {
511
+ authentication: this.authentication,
512
+ filter: e
513
+ })).data;
514
+ } catch (e) {
515
+ return console.error("[/categories/refactor]", e), Promise.reject(e);
516
+ }
517
+ };
518
+ testCategories = async (e = {}) => {
519
+ try {
520
+ return (await this.props.axiosApi.post("/categories/test", {
521
+ authentication: this.authentication,
522
+ filter: e
523
+ })).data;
524
+ } catch (e) {
525
+ return console.error("[/categories/test]", e), Promise.reject(e);
526
+ }
527
+ };
528
+ }, w = class {
529
+ props;
530
+ authentication;
531
+ constructor(e) {
532
+ this.props = e, this.authentication = e.authentication;
533
+ }
534
+ getAdminConfiguration = async () => {
535
+ try {
536
+ return (await this.props.axiosApi.post("/ckeditor/adminConfiguration", { authentication: this.authentication })).data;
537
+ } catch (e) {
538
+ return console.error("[/ckeditor/adminConfiguration]", e), Promise.reject(e);
539
+ }
540
+ };
541
+ assistanceAI = async (e) => {
542
+ try {
543
+ return (await this.props.axiosApi.post("/ckeditor/assistanceAI", {
544
+ authentication: this.authentication,
545
+ ...e
546
+ })).data;
547
+ } catch (e) {
548
+ return console.error("[/ckeditor/assistanceAI]", e), Promise.reject(e);
549
+ }
550
+ };
551
+ assistanceAINew = async (e) => {
552
+ try {
553
+ return (await this.props.axiosApi.post("/ckeditor/assistanceAINew", {
554
+ authentication: this.authentication,
555
+ ...e
556
+ })).data;
557
+ } catch (e) {
558
+ return console.error("[/ckeditor/assistanceAINew]", e), Promise.reject(e);
559
+ }
560
+ };
561
+ getAudioCode = async (e) => {
562
+ try {
563
+ return (await this.props.axiosApi.post("/ckeditor/audioCode", {
564
+ authentication: this.authentication,
565
+ ...e
566
+ })).data;
567
+ } catch (e) {
568
+ return console.error("[/ckeditor/audioCode]", e), Promise.reject(e);
569
+ }
570
+ };
571
+ }, T = class {
572
+ props;
573
+ authentication;
574
+ constructor(e) {
575
+ this.props = e, this.authentication = e.authentication;
576
+ }
577
+ getComments = async (e = {}) => {
578
+ try {
579
+ return (await this.props.axiosApi.post("/comments/get", {
580
+ authentication: this.authentication,
581
+ filters: e
582
+ })).data;
583
+ } catch (e) {
584
+ return console.error("[/comments/get]", e), Promise.reject(e);
585
+ }
586
+ };
587
+ approveComments = async (e) => {
588
+ try {
589
+ return (await this.props.axiosApi.post("/comments/approve", {
590
+ authentication: this.authentication,
591
+ filters: e
592
+ })).data;
593
+ } catch (e) {
594
+ return console.error("[/comments/approve]", e), Promise.reject(e);
595
+ }
596
+ };
597
+ rejectComments = async (e) => {
598
+ try {
599
+ return (await this.props.axiosApi.post("/comments/reject", {
600
+ authentication: this.authentication,
601
+ filters: e
602
+ })).data;
603
+ } catch (e) {
604
+ return console.error("[/comments/reject]", e), Promise.reject(e);
605
+ }
606
+ };
607
+ deleteComments = async (e) => {
608
+ try {
609
+ return (await this.props.axiosApi.post("/comments/delete", {
610
+ authentication: this.authentication,
611
+ filters: e
612
+ })).data;
613
+ } catch (e) {
614
+ return console.error("[/comments/delete]", e), Promise.reject(e);
615
+ }
616
+ };
617
+ highlightComments = async (e) => {
618
+ try {
619
+ return (await this.props.axiosApi.post("/comments/highlight", {
620
+ authentication: this.authentication,
621
+ filters: e
622
+ })).data;
623
+ } catch (e) {
624
+ return console.error("[/comments/highlight]", e), Promise.reject(e);
625
+ }
626
+ };
627
+ getAdminConfiguration = async () => {
628
+ try {
629
+ return (await this.props.axiosApi.post("/comments/adminConfiguration", {
630
+ authentication: this.authentication,
631
+ filters: {}
632
+ })).data;
633
+ } catch (e) {
634
+ return console.error("[/comments/adminConfiguration]", e), Promise.reject(e);
635
+ }
636
+ };
637
+ addDictionaryWord = async (e) => {
638
+ try {
639
+ return (await this.props.axiosApi.post("/comments/dictionary/add", {
640
+ authentication: this.authentication,
641
+ filters: e
642
+ })).data;
643
+ } catch (e) {
644
+ return console.error("[/comments/dictionary/add]", e), Promise.reject(e);
645
+ }
646
+ };
647
+ changeDictionaryWordType = async (e) => {
648
+ try {
649
+ return (await this.props.axiosApi.post("/comments/dictionary/changeType", {
650
+ authentication: this.authentication,
651
+ filters: e
652
+ })).data;
653
+ } catch (e) {
654
+ return console.error("[/comments/dictionary/changeType]", e), Promise.reject(e);
655
+ }
656
+ };
657
+ deleteDictionaryWord = async (e) => {
658
+ try {
659
+ return (await this.props.axiosApi.post("/comments/dictionary/delete", {
660
+ authentication: this.authentication,
661
+ filters: { word: e }
662
+ })).data;
663
+ } catch (e) {
664
+ return console.error("[/comments/dictionary/delete]", e), Promise.reject(e);
665
+ }
666
+ };
667
+ getDictionary = async (e = {}) => {
668
+ try {
669
+ return (await this.props.axiosApi.post("/comments/dictionary/get", {
670
+ authentication: this.authentication,
671
+ filters: e
672
+ })).data;
673
+ } catch (e) {
674
+ return console.error("[/comments/dictionary/get]", e), Promise.reject(e);
675
+ }
676
+ };
677
+ getCommentEvents = async (e) => {
678
+ try {
679
+ return (await this.props.axiosApi.post("/comments/events/get", {
680
+ authentication: this.authentication,
681
+ filters: { commentId: e }
682
+ })).data;
683
+ } catch (e) {
684
+ return console.error("[/comments/events/get]", e), Promise.reject(e);
685
+ }
686
+ };
687
+ getReasons = async () => {
688
+ try {
689
+ return (await this.props.axiosApi.post("/comments/reasons/get", {
690
+ authentication: this.authentication,
691
+ filters: {}
692
+ })).data;
693
+ } catch (e) {
694
+ return console.error("[/comments/reasons/get]", e), Promise.reject(e);
695
+ }
696
+ };
697
+ getReasonsTest = async () => {
698
+ try {
699
+ return (await this.props.axiosApi.post("/comments/reasons/prueba", {
700
+ authentication: this.authentication,
701
+ filters: {}
702
+ })).data;
703
+ } catch (e) {
704
+ return console.error("[/comments/reasons/prueba]", e), Promise.reject(e);
705
+ }
706
+ };
707
+ disableUser = async (e) => {
708
+ try {
709
+ return (await this.props.axiosApi.post("/comments/user/disable", {
710
+ authentication: this.authentication,
711
+ filters: { username: e }
712
+ })).data;
713
+ } catch (e) {
714
+ return console.error("[/comments/user/disable]", e), Promise.reject(e);
715
+ }
716
+ };
717
+ enableUser = async (e) => {
718
+ try {
719
+ return (await this.props.axiosApi.post("/comments/user/enable", {
720
+ authentication: this.authentication,
721
+ filters: { username: e }
722
+ })).data;
723
+ } catch (e) {
724
+ return console.error("[/comments/user/enable]", e), Promise.reject(e);
725
+ }
726
+ };
727
+ getUser = async (e) => {
728
+ try {
729
+ return (await this.props.axiosApi.post("/comments/user/get", {
730
+ authentication: this.authentication,
731
+ filters: { username: e }
732
+ })).data;
733
+ } catch (e) {
734
+ return console.error("[/comments/user/get]", e), Promise.reject(e);
735
+ }
736
+ };
737
+ }, E = class {
738
+ props;
739
+ authentication;
740
+ constructor(e) {
741
+ this.props = e, this.authentication = e.authentication;
742
+ }
743
+ getContributions = async (e = {}) => {
744
+ try {
745
+ return (await this.props.axiosApi.post("/contributions/get", {
746
+ authentication: this.authentication,
747
+ filters: e
748
+ })).data;
749
+ } catch (e) {
750
+ return console.error("[/contributions/get]", e), Promise.reject(e);
751
+ }
752
+ };
753
+ editContribution = async (e) => {
754
+ try {
755
+ return (await this.props.axiosApi.post("/contributions/edit", {
756
+ authentication: this.authentication,
757
+ contribution: e
758
+ })).data;
759
+ } catch (e) {
760
+ return console.error("[/contributions/edit]", e), Promise.reject(e);
761
+ }
762
+ };
763
+ getDefinitions = async (e = {}) => {
764
+ try {
765
+ return (await this.props.axiosApi.post("/contributions/getDefinitions", {
766
+ authentication: this.authentication,
767
+ filters: e
768
+ })).data;
769
+ } catch (e) {
770
+ return console.error("[/contributions/getDefinitions]", e), Promise.reject(e);
771
+ }
772
+ };
773
+ getSubscriptions = async (e = {}) => {
774
+ try {
775
+ return (await this.props.axiosApi.post("/contributions/getSuscriptions", {
776
+ authentication: this.authentication,
777
+ filters: e
778
+ })).data;
779
+ } catch (e) {
780
+ return console.error("[/contributions/getSuscriptions]", e), Promise.reject(e);
781
+ }
782
+ };
783
+ getContribuciones = async (e = {}) => {
784
+ try {
785
+ return (await this.props.axiosApi.post("/contributions/contribuciones/get", {
786
+ authentication: this.authentication,
787
+ filters: e
788
+ })).data;
789
+ } catch (e) {
790
+ return console.error("[/contributions/contribuciones/get]", e), Promise.reject(e);
791
+ }
792
+ };
793
+ insertCrm = async (e = {}) => {
794
+ try {
795
+ return (await this.props.axiosApi.post("/contributions/contribuciones/insertCrm", {
796
+ authentication: this.authentication,
797
+ filters: e
798
+ })).data;
799
+ } catch (e) {
800
+ return console.error("[/contributions/contribuciones/insertCrm]", e), Promise.reject(e);
801
+ }
802
+ };
803
+ getPaymentGateways = async (e = {}) => {
804
+ try {
805
+ return (await this.props.axiosApi.post("/contributions/paymentGateways/get", {
806
+ authentication: this.authentication,
807
+ filters: e
808
+ })).data;
809
+ } catch (e) {
810
+ return console.error("[/contributions/paymentGateways/get]", e), Promise.reject(e);
811
+ }
812
+ };
813
+ }, D = class {
814
+ props;
815
+ authentication;
816
+ constructor(e) {
817
+ this.props = e, this.authentication = e.authentication;
818
+ }
819
+ addSection = async (e) => {
820
+ try {
821
+ return (await this.props.axiosApi.post("/sections/add", {
822
+ authentication: this.authentication,
823
+ section: e
824
+ })).data;
825
+ } catch (e) {
826
+ return console.error("[/sections/add]", e), Promise.reject(e);
827
+ }
828
+ };
829
+ deleteSection = async (e) => {
830
+ try {
831
+ return (await this.props.axiosApi.post("/sections/delete", {
832
+ authentication: this.authentication,
833
+ section: e
834
+ })).data;
835
+ } catch (e) {
836
+ return console.error("[/sections/delete]", e), Promise.reject(e);
837
+ }
838
+ };
839
+ getSections = async (e) => {
840
+ try {
841
+ return (await this.props.axiosApi.post("/sections/get", {
842
+ authentication: this.authentication,
843
+ visibility: e
844
+ })).data;
845
+ } catch (e) {
846
+ return console.error("[/sections/get]", e), Promise.reject(e);
847
+ }
848
+ };
849
+ existSections = async (e) => {
850
+ try {
851
+ return (await this.props.axiosApi.post("/sections/exist", {
852
+ authentication: this.authentication,
853
+ visibility: e
854
+ })).data;
855
+ } catch (e) {
856
+ return console.error("[/sections/exist]", e), Promise.reject(e);
857
+ }
858
+ };
859
+ updateSection = async (e) => {
860
+ try {
861
+ return (await this.props.axiosApi.post("/sections/update", {
862
+ authentication: this.authentication,
863
+ section: e
864
+ })).data;
865
+ } catch (e) {
866
+ return console.error("[/sections/update]", e), Promise.reject(e);
867
+ }
868
+ };
869
+ }, O = class {
870
+ props;
871
+ authentication;
872
+ constructor(e) {
873
+ this.props = e, this.authentication = e.authentication;
874
+ }
875
+ createPlan = async (e = {}) => {
876
+ try {
877
+ return (await this.props.axiosApi.post("/productivityPlan/create", {
878
+ authentication: this.authentication,
879
+ ...e
880
+ })).data;
881
+ } catch (e) {
882
+ return console.error("[/productivityPlan/create]", e), Promise.reject(e);
883
+ }
884
+ };
885
+ getPlans = async (e = {}) => {
886
+ try {
887
+ return (await this.props.axiosApi.post("/productivityPlan/get", {
888
+ authentication: this.authentication,
889
+ filters: e
890
+ })).data;
891
+ } catch (e) {
892
+ return console.error("[/productivityPlan/get]", e), Promise.reject(e);
893
+ }
894
+ };
895
+ readPlan = async (e) => {
896
+ try {
897
+ return (await this.props.axiosApi.post("/productivityPlan/read", {
898
+ authentication: this.authentication,
899
+ path: e
900
+ })).data;
901
+ } catch (e) {
902
+ return console.error("[/productivityPlan/read]", e), Promise.reject(e);
903
+ }
904
+ };
905
+ reviewPlan = async (e, t) => {
906
+ try {
907
+ return (await this.props.axiosApi.post("/productivityPlan/review", {
908
+ authentication: this.authentication,
909
+ path: e,
910
+ type: t
911
+ })).data;
912
+ } catch (e) {
913
+ return console.error("[/productivityPlan/review]", e), Promise.reject(e);
914
+ }
915
+ };
916
+ savePlan = async (e, t) => {
917
+ try {
918
+ return (await this.props.axiosApi.post("/productivityPlan/edit/save", {
919
+ authentication: this.authentication,
920
+ path: e,
921
+ content: t
922
+ })).data;
923
+ } catch (e) {
924
+ return console.error("[/productivityPlan/edit/save]", e), Promise.reject(e);
925
+ }
926
+ };
927
+ changeStatus = async (e) => {
928
+ try {
929
+ return (await this.props.axiosApi.post("/productivityPlan/edit/changeStatus", {
930
+ authentication: this.authentication,
931
+ path: e
932
+ })).data;
933
+ } catch (e) {
934
+ return console.error("[/productivityPlan/edit/changeStatus]", e), Promise.reject(e);
935
+ }
936
+ };
937
+ getAdminConfiguration = async (e) => {
938
+ try {
939
+ return (await this.props.axiosApi.post("/productivityPlan/edit/adminConfiguration", {
940
+ authentication: this.authentication,
941
+ path: e
942
+ })).data;
943
+ } catch (e) {
944
+ return console.error("[/productivityPlan/edit/adminConfiguration]", e), Promise.reject(e);
945
+ }
946
+ };
947
+ getRolsPlans = async () => {
948
+ try {
949
+ return (await this.props.axiosApi.post("/productivityPlan/rolsPlans/get", { authentication: this.authentication })).data;
950
+ } catch (e) {
951
+ return console.error("[/productivityPlan/rolsPlans/get]", e), Promise.reject(e);
952
+ }
953
+ };
954
+ moveRolToPlan = async (e, t) => {
955
+ try {
956
+ return (await this.props.axiosApi.post("/productivityPlan/rolsPlans/moveToPlan", {
957
+ authentication: this.authentication,
958
+ url: e,
959
+ rolName: t
960
+ })).data;
961
+ } catch (e) {
962
+ return console.error("[/productivityPlan/rolsPlans/moveToPlan]", e), Promise.reject(e);
963
+ }
964
+ };
965
+ getUsersPlans = async () => {
966
+ try {
967
+ return (await this.props.axiosApi.post("/productivityPlan/usersPlans/get", { authentication: this.authentication })).data;
968
+ } catch (e) {
969
+ return console.error("[/productivityPlan/usersPlans/get]", e), Promise.reject(e);
970
+ }
971
+ };
972
+ getUsersInPlan = async (e) => {
973
+ try {
974
+ return (await this.props.axiosApi.post("/productivityPlan/usersPlans/getInPlan", {
975
+ authentication: this.authentication,
976
+ planId: e
977
+ })).data;
978
+ } catch (e) {
979
+ return console.error("[/productivityPlan/usersPlans/getInPlan]", e), Promise.reject(e);
980
+ }
981
+ };
982
+ moveUserToPlan = async (e, t) => {
983
+ try {
984
+ return (await this.props.axiosApi.post("/productivityPlan/usersPlans/moveToPlan", {
985
+ authentication: this.authentication,
986
+ url: e,
987
+ userName: t
988
+ })).data;
989
+ } catch (e) {
990
+ return console.error("[/productivityPlan/usersPlans/moveToPlan]", e), Promise.reject(e);
991
+ }
992
+ };
993
+ deletePlan = async (e) => {
994
+ try {
995
+ return (await this.props.axiosApi.post("/productivityPlan/unpublish/delete", {
996
+ authentication: this.authentication,
997
+ path: e
998
+ })).data;
999
+ } catch (e) {
1000
+ return console.error("[/productivityPlan/unpublish/delete]", e), Promise.reject(e);
1001
+ }
1002
+ };
1003
+ getComplianceReport = async (e) => {
1004
+ try {
1005
+ return (await this.props.axiosApi.post("/productivityPlan/reports/compliance", {
1006
+ authentication: this.authentication,
1007
+ ...e
1008
+ })).data;
1009
+ } catch (e) {
1010
+ return console.error("[/productivityPlan/reports/compliance]", e), Promise.reject(e);
1011
+ }
1012
+ };
1013
+ getComplianceBackupReport = async (e) => {
1014
+ try {
1015
+ return (await this.props.axiosApi.post("/productivityPlan/reports/complianceBackup", {
1016
+ authentication: this.authentication,
1017
+ ...e
1018
+ })).data;
1019
+ } catch (e) {
1020
+ return console.error("[/productivityPlan/reports/complianceBackup]", e), Promise.reject(e);
1021
+ }
1022
+ };
1023
+ getComplianceDetail = async (e) => {
1024
+ try {
1025
+ let t = { path: e };
1026
+ return (await this.props.axiosApi.post("/productivityPlan/reports/complianceDetail", {
1027
+ authentication: this.authentication,
1028
+ filters: t
1029
+ })).data;
1030
+ } catch (e) {
1031
+ return console.error("[/productivityPlan/reports/complianceDetail]", e), Promise.reject(e);
1032
+ }
1033
+ };
1034
+ getFrequencyReports = async (e) => {
1035
+ try {
1036
+ return (await this.props.axiosApi.post("/productivityPlan/reports/frequencyReports", {
1037
+ authentication: this.authentication,
1038
+ filters: e
1039
+ })).data;
1040
+ } catch (e) {
1041
+ return console.error("[/productivityPlan/reports/frequencyReports]", e), Promise.reject(e);
1042
+ }
1043
+ };
1044
+ getMetrics = async (e) => {
1045
+ try {
1046
+ return (await this.props.axiosApi.post("/productivityPlan/reports/metrics", {
1047
+ authentication: this.authentication,
1048
+ filters: e
1049
+ })).data;
1050
+ } catch (e) {
1051
+ return console.error("[/productivityPlan/reports/metrics]", e), Promise.reject(e);
1052
+ }
1053
+ };
1054
+ getComplianceReportV2 = async (e) => {
1055
+ try {
1056
+ return (await this.props.axiosApi.post("/productivityPlan/reports/v2/compliance", {
1057
+ authentication: this.authentication,
1058
+ ...e
1059
+ })).data;
1060
+ } catch (e) {
1061
+ return console.error("[/productivityPlan/reports/v2/compliance]", e), Promise.reject(e);
1062
+ }
1063
+ };
1064
+ createException = async (e) => {
1065
+ try {
1066
+ return (await this.props.axiosApi.post("/productivityPlan/exceptions/create", {
1067
+ authentication: this.authentication,
1068
+ exception: e
1069
+ })).data;
1070
+ } catch (e) {
1071
+ return console.error("[/productivityPlan/exceptions/create]", e), Promise.reject(e);
1072
+ }
1073
+ };
1074
+ deleteException = async (e) => {
1075
+ try {
1076
+ return (await this.props.axiosApi.post("/productivityPlan/exceptions/delete", {
1077
+ authentication: this.authentication,
1078
+ id: e
1079
+ })).data;
1080
+ } catch (e) {
1081
+ return console.error("[/productivityPlan/exceptions/delete]", e), Promise.reject(e);
1082
+ }
1083
+ };
1084
+ editException = async (e) => {
1085
+ try {
1086
+ return (await this.props.axiosApi.post("/productivityPlan/exceptions/edit", {
1087
+ authentication: this.authentication,
1088
+ exception: e
1089
+ })).data;
1090
+ } catch (e) {
1091
+ return console.error("[/productivityPlan/exceptions/edit]", e), Promise.reject(e);
1092
+ }
1093
+ };
1094
+ getExceptions = async (e = {}) => {
1095
+ try {
1096
+ return (await this.props.axiosApi.post("/productivityPlan/exceptions/get", {
1097
+ authentication: this.authentication,
1098
+ filters: e
1099
+ })).data;
1100
+ } catch (e) {
1101
+ return console.error("[/productivityPlan/exceptions/get]", e), Promise.reject(e);
1102
+ }
1103
+ };
1104
+ createExceptionReason = async (e) => {
1105
+ try {
1106
+ return (await this.props.axiosApi.post("/productivityPlan/exceptions/reasons/create", {
1107
+ authentication: this.authentication,
1108
+ exceptionReason: e
1109
+ })).data;
1110
+ } catch (e) {
1111
+ return console.error("[/productivityPlan/exceptions/reasons/create]", e), Promise.reject(e);
1112
+ }
1113
+ };
1114
+ deleteExceptionReason = async (e) => {
1115
+ try {
1116
+ return (await this.props.axiosApi.post("/productivityPlan/exceptions/reasons/delete", {
1117
+ authentication: this.authentication,
1118
+ id: e
1119
+ })).data;
1120
+ } catch (e) {
1121
+ return console.error("[/productivityPlan/exceptions/reasons/delete]", e), Promise.reject(e);
1122
+ }
1123
+ };
1124
+ getExceptionReasons = async (e = {}) => {
1125
+ try {
1126
+ return (await this.props.axiosApi.post("/productivityPlan/exceptions/reasons/get", {
1127
+ authentication: this.authentication,
1128
+ filters: e
1129
+ })).data;
1130
+ } catch (e) {
1131
+ return console.error("[/productivityPlan/exceptions/reasons/get]", e), Promise.reject(e);
1132
+ }
1133
+ };
1134
+ updateExceptionReason = async (e) => {
1135
+ try {
1136
+ return (await this.props.axiosApi.post("/productivityPlan/exceptions/reasons/update", {
1137
+ authentication: this.authentication,
1138
+ exceptionReason: e
1139
+ })).data;
1140
+ } catch (e) {
1141
+ return console.error("[/productivityPlan/exceptions/reasons/update]", e), Promise.reject(e);
1142
+ }
1143
+ };
1144
+ getReviewrDetail = async (e, t) => {
1145
+ try {
1146
+ return (await this.props.axiosApi.post("/productivityPlan/reviewr/detail", {
1147
+ authentication: this.authentication,
1148
+ path: e,
1149
+ type: t
1150
+ })).data;
1151
+ } catch (e) {
1152
+ return console.error("[/productivityPlan/reviewr/detail]", e), Promise.reject(e);
1153
+ }
1154
+ };
1155
+ }, k = class {
1156
+ props;
1157
+ authentication;
1158
+ constructor(e) {
1159
+ this.props = e, this.authentication = e.authentication;
1160
+ }
1161
+ createEvent = async () => {
1162
+ try {
1163
+ return (await this.props.axiosApi.post("/events/create", { authentication: this.authentication })).data;
1164
+ } catch (e) {
1165
+ return console.error("[/events/create]", e), Promise.reject(e);
1166
+ }
1167
+ };
1168
+ getEvents = async (e = {}) => {
1169
+ try {
1170
+ return (await this.props.axiosApi.post("/events/get", {
1171
+ authentication: this.authentication,
1172
+ filters: e
1173
+ })).data;
1174
+ } catch (e) {
1175
+ return console.error("[/events/get]", e), Promise.reject(e);
1176
+ }
1177
+ };
1178
+ }, A = class {
1179
+ props;
1180
+ authentication;
1181
+ constructor(e) {
1182
+ this.props = e, this.authentication = e.authentication;
1183
+ }
1184
+ getFiles = async (e) => {
1185
+ try {
1186
+ return (await this.props.axiosApi.post("/fileExplorer/getFiles", {
1187
+ authentication: this.authentication,
1188
+ path: e
1189
+ })).data;
1190
+ } catch (e) {
1191
+ return console.error("[/fileExplorer/getFiles]", e), Promise.reject(e);
1192
+ }
1193
+ };
1194
+ getFolders = async (e) => {
1195
+ try {
1196
+ return (await this.props.axiosApi.post("/fileExplorer/getFolders", {
1197
+ authentication: this.authentication,
1198
+ path: e
1199
+ })).data;
1200
+ } catch (e) {
1201
+ return console.error("[/fileExplorer/getFolders]", e), Promise.reject(e);
1202
+ }
1203
+ };
1204
+ }, j = class {
1205
+ props;
1206
+ authentication;
1207
+ constructor(e) {
1208
+ this.props = e, this.authentication = e.authentication;
1209
+ }
1210
+ updateCDN = async (e) => {
1211
+ try {
1212
+ return (await this.props.axiosApi.post("/updateCDN", {
1213
+ authentication: this.authentication,
1214
+ path: e
1215
+ })).data;
1216
+ } catch (e) {
1217
+ return console.error("[/updateCDN]", e), Promise.reject(e);
1218
+ }
1219
+ };
1220
+ }, M = class {
1221
+ props;
1222
+ authentication;
1223
+ constructor(e) {
1224
+ this.props = e, this.authentication = e.authentication;
1225
+ }
1226
+ getImages = async (e = {}) => {
1227
+ try {
1228
+ return (await this.props.axiosApi.post("/images/get", {
1229
+ authentication: this.authentication,
1230
+ filters: e
1231
+ })).data;
1232
+ } catch (e) {
1233
+ return console.error("[/images/get]", e), Promise.reject(e);
1234
+ }
1235
+ };
1236
+ read = async (e) => {
1237
+ try {
1238
+ return (await this.props.axiosApi.post("/images/read", {
1239
+ authentication: this.authentication,
1240
+ path: e
1241
+ })).data;
1242
+ } catch (e) {
1243
+ return console.error("[/images/read]", e), Promise.reject(e);
1244
+ }
1245
+ };
1246
+ getAdminConfiguration = async () => {
1247
+ try {
1248
+ return (await this.props.axiosApi.post("/images/adminConfiguration", { authentication: this.authentication })).data;
1249
+ } catch (e) {
1250
+ return console.error("[/images/adminConfiguration]", e), Promise.reject(e);
1251
+ }
1252
+ };
1253
+ publishCheck = async (e) => {
1254
+ try {
1255
+ return (await this.props.axiosApi.post("/images/publish/check", {
1256
+ authentication: this.authentication,
1257
+ images: e
1258
+ })).data;
1259
+ } catch (e) {
1260
+ return console.error("[/images/publish/check]", e), Promise.reject(e);
1261
+ }
1262
+ };
1263
+ publishNow = async (e) => {
1264
+ try {
1265
+ return (await this.props.axiosApi.post("/images/publish/now", {
1266
+ authentication: this.authentication,
1267
+ images: e
1268
+ })).data;
1269
+ } catch (e) {
1270
+ return console.error("[/images/publish/now]", e), Promise.reject(e);
1271
+ }
1272
+ };
1273
+ unlockCheck = async (e) => {
1274
+ try {
1275
+ return (await this.props.axiosApi.post("/images/unlock/check", {
1276
+ authentication: this.authentication,
1277
+ path: e
1278
+ })).data;
1279
+ } catch (e) {
1280
+ return console.error("[/images/unlock/check]", e), Promise.reject(e);
1281
+ }
1282
+ };
1283
+ unlockNow = async (e) => {
1284
+ try {
1285
+ return (await this.props.axiosApi.post("/images/unlock/now", {
1286
+ authentication: this.authentication,
1287
+ path: e
1288
+ })).data;
1289
+ } catch (e) {
1290
+ return console.error("[/images/unlock/now]", e), Promise.reject(e);
1291
+ }
1292
+ };
1293
+ unlockRemove = async (e) => {
1294
+ try {
1295
+ return (await this.props.axiosApi.post("/images/unlock/remove", {
1296
+ authentication: this.authentication,
1297
+ path: e
1298
+ })).data;
1299
+ } catch (e) {
1300
+ return console.error("[/images/unlock/remove]", e), Promise.reject(e);
1301
+ }
1302
+ };
1303
+ unlockValid = async (e) => {
1304
+ try {
1305
+ return (await this.props.axiosApi.post("/images/unlock/valid", {
1306
+ authentication: this.authentication,
1307
+ path: e
1308
+ })).data;
1309
+ } catch (e) {
1310
+ return console.error("[/images/unlock/valid]", e), Promise.reject(e);
1311
+ }
1312
+ };
1313
+ unpublishCheck = async (e, t) => {
1314
+ try {
1315
+ return (await this.props.axiosApi.post("/images/unpublish/check", {
1316
+ authentication: this.authentication,
1317
+ path: e,
1318
+ action: t
1319
+ })).data;
1320
+ } catch (e) {
1321
+ return console.error("[/images/unpublish/check]", e), Promise.reject(e);
1322
+ }
1323
+ };
1324
+ unpublishNow = async (e) => {
1325
+ try {
1326
+ return (await this.props.axiosApi.post("/images/unpublish/now", {
1327
+ authentication: this.authentication,
1328
+ path: e
1329
+ })).data;
1330
+ } catch (e) {
1331
+ return console.error("[/images/unpublish/now]", e), Promise.reject(e);
1332
+ }
1333
+ };
1334
+ unpublishDelete = async (e) => {
1335
+ try {
1336
+ return (await this.props.axiosApi.post("/images/unpublish/delete", {
1337
+ authentication: this.authentication,
1338
+ path: e
1339
+ })).data;
1340
+ } catch (e) {
1341
+ return console.error("[/images/unpublish/delete]", e), Promise.reject(e);
1342
+ }
1343
+ };
1344
+ discardDraft = async (e) => {
1345
+ try {
1346
+ return (await this.props.axiosApi.post("/images/edit/discardDraft", {
1347
+ authentication: this.authentication,
1348
+ path: e
1349
+ })).data;
1350
+ } catch (e) {
1351
+ return console.error("[/images/edit/discardDraft]", e), Promise.reject(e);
1352
+ }
1353
+ };
1354
+ editInline = async (e) => {
1355
+ try {
1356
+ return (await this.props.axiosApi.post("/images/edit/inline", {
1357
+ authentication: this.authentication,
1358
+ image: e
1359
+ })).data;
1360
+ } catch (e) {
1361
+ return console.error("[/images/edit/inline]", e), Promise.reject(e);
1362
+ }
1363
+ };
1364
+ editRemoveLock = async (e) => {
1365
+ try {
1366
+ return (await this.props.axiosApi.post("/images/edit/removelock", {
1367
+ authentication: this.authentication,
1368
+ path: e
1369
+ })).data;
1370
+ } catch (e) {
1371
+ return console.error("[/images/edit/removelock]", e), Promise.reject(e);
1372
+ }
1373
+ };
1374
+ save = async (e, t, n = {}) => {
1375
+ try {
1376
+ return (await this.props.axiosApi.post("/images/edit/save", {
1377
+ authentication: this.authentication,
1378
+ imagePath: e,
1379
+ content: t,
1380
+ ...n
1381
+ })).data;
1382
+ } catch (e) {
1383
+ return console.error("[/images/edit/save]", e), Promise.reject(e);
1384
+ }
1385
+ };
1386
+ setFocalPoint = async (e) => {
1387
+ try {
1388
+ return (await this.props.axiosApi.post("/images/edit/setFocalPoint", {
1389
+ authentication: this.authentication,
1390
+ path: e
1391
+ })).data;
1392
+ } catch (e) {
1393
+ return console.error("[/images/edit/setFocalPoint]", e), Promise.reject(e);
1394
+ }
1395
+ };
1396
+ getGallery = async (e) => {
1397
+ try {
1398
+ return (await this.props.axiosApi.post("/images/ckeditor/getGallery", {
1399
+ authentication: this.authentication,
1400
+ image: e
1401
+ })).data;
1402
+ } catch (e) {
1403
+ return console.error("[/images/ckeditor/getGallery]", e), Promise.reject(e);
1404
+ }
1405
+ };
1406
+ getImageComparation = async (e) => {
1407
+ try {
1408
+ return (await this.props.axiosApi.post("/images/ckeditor/getImageComparation", {
1409
+ authentication: this.authentication,
1410
+ image: e
1411
+ })).data;
1412
+ } catch (e) {
1413
+ return console.error("[/images/ckeditor/getImageComparation]", e), Promise.reject(e);
1414
+ }
1415
+ };
1416
+ }, N = class {
1417
+ props;
1418
+ authentication;
1419
+ constructor(e) {
1420
+ this.props = e, this.authentication = e.authentication;
1421
+ }
1422
+ available = async (e) => {
1423
+ try {
1424
+ return (await this.props.axiosApi.post("/news/available", {
1425
+ authentication: this.authentication,
1426
+ path: e
1427
+ })).data;
1428
+ } catch (e) {
1429
+ return console.error("[/news/available]", e), Promise.reject(e);
1430
+ }
1431
+ };
1432
+ copy = async (e) => {
1433
+ try {
1434
+ return (await this.props.axiosApi.post("/news/copy", {
1435
+ authentication: this.authentication,
1436
+ news: { new: e }
1437
+ })).data;
1438
+ } catch (e) {
1439
+ return console.error("[/news/copy]", e), Promise.reject(e);
1440
+ }
1441
+ };
1442
+ create = async (e) => {
1443
+ try {
1444
+ return (await this.props.axiosApi.post("/news/create", {
1445
+ authentication: this.authentication,
1446
+ newsType: e
1447
+ })).data;
1448
+ } catch (e) {
1449
+ return console.error("[/news/create]", e), Promise.reject(e);
1450
+ }
1451
+ };
1452
+ exportNews = async (e) => {
1453
+ try {
1454
+ let t = e.map((e) => ({ path: e }));
1455
+ return (await this.props.axiosApi.post("/news/export", {
1456
+ authentication: this.authentication,
1457
+ news: { new: t }
1458
+ })).data;
1459
+ } catch (e) {
1460
+ return console.error("[/news/export]", e), Promise.reject(e);
1461
+ }
1462
+ };
1463
+ getPreviewFormats = async () => {
1464
+ try {
1465
+ return (await this.props.axiosApi.post("/news/previewFormats", { authentication: this.authentication })).data;
1466
+ } catch (e) {
1467
+ return console.error("[/news/previewFormats]", e), Promise.reject(e);
1468
+ }
1469
+ };
1470
+ read = async (e, t) => {
1471
+ try {
1472
+ return (await this.props.axiosApi.post("/news/read", {
1473
+ authentication: this.authentication,
1474
+ path: e,
1475
+ pagination: t
1476
+ })).data;
1477
+ } catch (e) {
1478
+ return console.error("[/news/read]", e), Promise.reject(e);
1479
+ }
1480
+ };
1481
+ readPage = async (e) => {
1482
+ try {
1483
+ return (await this.props.axiosApi.post("/news/read_page", {
1484
+ authentication: this.authentication,
1485
+ ...e
1486
+ })).data;
1487
+ } catch (e) {
1488
+ return console.error("[/news/read_page]", e), Promise.reject(e);
1489
+ }
1490
+ };
1491
+ removeLock = async (e) => {
1492
+ try {
1493
+ return (await this.props.axiosApi.post("/news/removelock", {
1494
+ authentication: this.authentication,
1495
+ path: e
1496
+ })).data;
1497
+ } catch (e) {
1498
+ return console.error("[/news/removelock]", e), Promise.reject(e);
1499
+ }
1500
+ };
1501
+ unlock = async (e) => {
1502
+ try {
1503
+ return (await this.props.axiosApi.post("/news/unlock", {
1504
+ authentication: this.authentication,
1505
+ path: e
1506
+ })).data;
1507
+ } catch (e) {
1508
+ return console.error("[/news/unlock]", e), Promise.reject(e);
1509
+ }
1510
+ };
1511
+ translate = async (e) => {
1512
+ try {
1513
+ return (await this.props.axiosApi.post("/news/translate", {
1514
+ authentication: this.authentication,
1515
+ ...e
1516
+ })).data;
1517
+ } catch (e) {
1518
+ return console.error("[/news/translate]", e), Promise.reject(e);
1519
+ }
1520
+ };
1521
+ getTypes = async () => {
1522
+ try {
1523
+ return (await this.props.axiosApi.post("/news/types", { authentication: this.authentication })).data;
1524
+ } catch (e) {
1525
+ return console.error("[/news/types]", e), Promise.reject(e);
1526
+ }
1527
+ };
1528
+ relatedNewsElementsQuery = async (e) => {
1529
+ try {
1530
+ return (await this.props.axiosApi.post("/news/relatedNewsElementsQuery", {
1531
+ authentication: this.authentication,
1532
+ news: e
1533
+ })).data;
1534
+ } catch (e) {
1535
+ return console.error("[/news/relatedNewsElementsQuery]", e), Promise.reject(e);
1536
+ }
1537
+ };
1538
+ publishCheck = async (e) => {
1539
+ try {
1540
+ let t = e.map((e) => ({ path: e }));
1541
+ return (await this.props.axiosApi.post("/news/publish/check", {
1542
+ authentication: this.authentication,
1543
+ news: { new: t }
1544
+ })).data;
1545
+ } catch (e) {
1546
+ return console.error("[/news/publish/check]", e), Promise.reject(e);
1547
+ }
1548
+ };
1549
+ publishNow = async (e, t = {}) => {
1550
+ try {
1551
+ return (await this.props.axiosApi.post("/news/publish/now", {
1552
+ authentication: this.authentication,
1553
+ news: {
1554
+ new: e,
1555
+ ...t
1556
+ }
1557
+ })).data;
1558
+ } catch (e) {
1559
+ return console.error("[/news/publish/now]", e), Promise.reject(e);
1560
+ }
1561
+ };
1562
+ publishSchedule = async (e, t = {}) => {
1563
+ try {
1564
+ return (await this.props.axiosApi.post("/news/publish/schedule", {
1565
+ authentication: this.authentication,
1566
+ news: {
1567
+ new: e,
1568
+ ...t
1569
+ }
1570
+ })).data;
1571
+ } catch (e) {
1572
+ return console.error("[/news/publish/schedule]", e), Promise.reject(e);
1573
+ }
1574
+ };
1575
+ publishMassive = async (e) => {
1576
+ try {
1577
+ let t = e.map((e) => ({ path: e }));
1578
+ return (await this.props.axiosApi.post("/news/publish/massive", {
1579
+ authentication: this.authentication,
1580
+ news: { new: t }
1581
+ })).data;
1582
+ } catch (e) {
1583
+ return console.error("[/news/publish/massive]", e), Promise.reject(e);
1584
+ }
1585
+ };
1586
+ generateAISummary = async (e, t) => {
1587
+ try {
1588
+ let n = e.map((e) => ({ path: e }));
1589
+ return (await this.props.axiosApi.post("/news/publish/AISummaryGenerate", {
1590
+ authentication: this.authentication,
1591
+ news: { new: n },
1592
+ saveInNews: t
1593
+ })).data;
1594
+ } catch (e) {
1595
+ return console.error("[/news/publish/AISummaryGenerate]", e), Promise.reject(e);
1596
+ }
1597
+ };
1598
+ unpublishCheck = async (e, t) => {
1599
+ try {
1600
+ return (await this.props.axiosApi.post("/news/unpublish/check", {
1601
+ authentication: this.authentication,
1602
+ path: e,
1603
+ noteOwner: t
1604
+ })).data;
1605
+ } catch (e) {
1606
+ return console.error("[/news/unpublish/check]", e), Promise.reject(e);
1607
+ }
1608
+ };
1609
+ unpublishNow = async (e) => {
1610
+ try {
1611
+ return (await this.props.axiosApi.post("/news/unpublish/now", {
1612
+ authentication: this.authentication,
1613
+ resources: e
1614
+ })).data;
1615
+ } catch (e) {
1616
+ return console.error("[/news/unpublish/now]", e), Promise.reject(e);
1617
+ }
1618
+ };
1619
+ unpublishDelete = async (e, t) => {
1620
+ try {
1621
+ return (await this.props.axiosApi.post("/news/unpublish/delete", {
1622
+ authentication: this.authentication,
1623
+ resources: e,
1624
+ noteOwner: t
1625
+ })).data;
1626
+ } catch (e) {
1627
+ return console.error("[/news/unpublish/delete]", e), Promise.reject(e);
1628
+ }
1629
+ };
1630
+ unpublishExpired = async (e) => {
1631
+ try {
1632
+ let t = e.map((e) => ({ path: e }));
1633
+ return (await this.props.axiosApi.post("/news/unpublish/expired", {
1634
+ authentication: this.authentication,
1635
+ news: { new: t }
1636
+ })).data;
1637
+ } catch (e) {
1638
+ return console.error("[/news/unpublish/expired]", e), Promise.reject(e);
1639
+ }
1640
+ };
1641
+ addPins = async (e) => {
1642
+ try {
1643
+ let t = e.map((e) => ({ path: e }));
1644
+ return (await this.props.axiosApi.post("/news/pin/add", {
1645
+ authentication: this.authentication,
1646
+ news: { new: t }
1647
+ })).data;
1648
+ } catch (e) {
1649
+ return console.error("[/news/pin/add]", e), Promise.reject(e);
1650
+ }
1651
+ };
1652
+ deletePins = async (e) => {
1653
+ try {
1654
+ let t = e.map((e) => ({ id: e }));
1655
+ return (await this.props.axiosApi.post("/news/pin/delete", {
1656
+ authentication: this.authentication,
1657
+ pines: { pin: t }
1658
+ })).data;
1659
+ } catch (e) {
1660
+ return console.error("[/news/pin/delete]", e), Promise.reject(e);
1661
+ }
1662
+ };
1663
+ getPins = async () => {
1664
+ try {
1665
+ return (await this.props.axiosApi.post("/news/pin/get", { authentication: this.authentication })).data;
1666
+ } catch (e) {
1667
+ return console.error("[/news/pin/get]", e), Promise.reject(e);
1668
+ }
1669
+ };
1670
+ massiveCheck = async (e, t) => {
1671
+ try {
1672
+ let n = e.map((e) => ({ path: e }));
1673
+ return (await this.props.axiosApi.post("/news/massive/check", {
1674
+ authentication: this.authentication,
1675
+ news: {
1676
+ new: n,
1677
+ isPublish: t
1678
+ }
1679
+ })).data;
1680
+ } catch (e) {
1681
+ return console.error("[/news/massive/check]", e), Promise.reject(e);
1682
+ }
1683
+ };
1684
+ massiveEdit = async (e) => {
1685
+ try {
1686
+ return (await this.props.axiosApi.post("/news/massive/edit", {
1687
+ authentication: this.authentication,
1688
+ news: { new: e }
1689
+ })).data;
1690
+ } catch (e) {
1691
+ return console.error("[/news/massive/edit]", e), Promise.reject(e);
1692
+ }
1693
+ };
1694
+ createFreshness = async (e, t) => {
1695
+ try {
1696
+ return (await this.props.axiosApi.post("/news/freshness/create", {
1697
+ authentication: this.authentication,
1698
+ path: e,
1699
+ detail: { freshness: t }
1700
+ })).data;
1701
+ } catch (e) {
1702
+ return console.error("[/news/freshness/create]", e), Promise.reject(e);
1703
+ }
1704
+ };
1705
+ deleteFreshness = async (e) => {
1706
+ try {
1707
+ return (await this.props.axiosApi.post("/news/freshness/delete", {
1708
+ authentication: this.authentication,
1709
+ path: e
1710
+ })).data;
1711
+ } catch (e) {
1712
+ return console.error("[/news/freshness/delete]", e), Promise.reject(e);
1713
+ }
1714
+ };
1715
+ getFreshness = async (e = {}) => {
1716
+ try {
1717
+ return (await this.props.axiosApi.post("/news/freshness/get", {
1718
+ authentication: this.authentication,
1719
+ filters: e
1720
+ })).data;
1721
+ } catch (e) {
1722
+ return console.error("[/news/freshness/get]", e), Promise.reject(e);
1723
+ }
1724
+ };
1725
+ getViews = async () => {
1726
+ try {
1727
+ return (await this.props.axiosApi.post("/news/views/get", { authentication: this.authentication })).data;
1728
+ } catch (e) {
1729
+ return console.error("[/news/views/get]", e), Promise.reject(e);
1730
+ }
1731
+ };
1732
+ getAnalytics = async () => {
1733
+ try {
1734
+ return (await this.props.axiosApi.post("/news/analytics/get", { authentication: this.authentication })).data;
1735
+ } catch (e) {
1736
+ return console.error("[/news/analytics/get]", e), Promise.reject(e);
1737
+ }
1738
+ };
1739
+ getAnalyticsWithFilters = async (e = {}) => {
1740
+ try {
1741
+ return (await this.props.axiosApi.post("/news/analytics/getWhitFilters", {
1742
+ authentication: this.authentication,
1743
+ filters: e
1744
+ })).data;
1745
+ } catch (e) {
1746
+ return console.error("[/news/analytics/getWhitFilters]", e), Promise.reject(e);
1747
+ }
1748
+ };
1749
+ updateAnalytics = async (e) => {
1750
+ try {
1751
+ return (await this.props.axiosApi.post("/news/analytics/update", {
1752
+ authentication: this.authentication,
1753
+ filters: { pathNote: e }
1754
+ })).data;
1755
+ } catch (e) {
1756
+ return console.error("[/news/analytics/update]", e), Promise.reject(e);
1757
+ }
1758
+ };
1759
+ editSave = async (e, t, n) => {
1760
+ try {
1761
+ return (await this.props.axiosApi.post("/news/edit/save", {
1762
+ authentication: this.authentication,
1763
+ path: e,
1764
+ content: t,
1765
+ detail: n
1766
+ })).data;
1767
+ } catch (e) {
1768
+ return console.error("[/news/edit/save]", e), Promise.reject(e);
1769
+ }
1770
+ };
1771
+ saveTempNews = async (e, t) => {
1772
+ try {
1773
+ return (await this.props.axiosApi.post("/news/edit/saveTemp", {
1774
+ authentication: this.authentication,
1775
+ path: e,
1776
+ content: t
1777
+ })).data;
1778
+ } catch (e) {
1779
+ return console.error("[/news/edit/saveTemp]", e), Promise.reject(e);
1780
+ }
1781
+ };
1782
+ discardDraftNews = async (e) => {
1783
+ try {
1784
+ return (await this.props.axiosApi.post("/news/edit/discardDraft", {
1785
+ authentication: this.authentication,
1786
+ path: e
1787
+ })).data;
1788
+ } catch (e) {
1789
+ return console.error("[/news/edit/discardDraft]", e), Promise.reject(e);
1790
+ }
1791
+ };
1792
+ exitEdit = async (e, t) => {
1793
+ try {
1794
+ return (await this.props.axiosApi.post("/news/edit/exit", {
1795
+ authentication: this.authentication,
1796
+ path: e,
1797
+ discardDraft: t
1798
+ })).data;
1799
+ } catch (e) {
1800
+ return console.error("[/news/edit/exit]", e), Promise.reject(e);
1801
+ }
1802
+ };
1803
+ hasDraft = async (e) => {
1804
+ try {
1805
+ return (await this.props.axiosApi.post("/news/edit/hasDraft", {
1806
+ authentication: this.authentication,
1807
+ path: e
1808
+ })).data;
1809
+ } catch (e) {
1810
+ return console.error("[/news/edit/hasDraft]", e), Promise.reject(e);
1811
+ }
1812
+ };
1813
+ editInline = async (e) => {
1814
+ try {
1815
+ return (await this.props.axiosApi.post("/news/edit/inline", {
1816
+ authentication: this.authentication,
1817
+ news: { new: e }
1818
+ })).data;
1819
+ } catch (e) {
1820
+ return console.error("[/news/edit/inline]", e), Promise.reject(e);
1821
+ }
1822
+ };
1823
+ removeZone = async (e, t) => {
1824
+ try {
1825
+ return (await this.props.axiosApi.post("/news/edit/removeZone", {
1826
+ authentication: this.authentication,
1827
+ path: e,
1828
+ pos: t
1829
+ })).data;
1830
+ } catch (e) {
1831
+ return console.error("[/news/edit/removeZone]", e), Promise.reject(e);
1832
+ }
1833
+ };
1834
+ analizeNews = async (e) => {
1835
+ try {
1836
+ return (await this.props.axiosApi.post("/news/edit/analizeNews", {
1837
+ authentication: this.authentication,
1838
+ path: e
1839
+ })).data;
1840
+ } catch (e) {
1841
+ return console.error("[/news/edit/analizeNews]", e), Promise.reject(e);
1842
+ }
1843
+ };
1844
+ analizeNewsAI = async (e, t) => {
1845
+ try {
1846
+ return (await this.props.axiosApi.post("/news/edit/analizeNewsAI", {
1847
+ authentication: this.authentication,
1848
+ path: e,
1849
+ component: t
1850
+ })).data;
1851
+ } catch (e) {
1852
+ return console.error("[/news/edit/analizeNewsAI]", e), Promise.reject(e);
1853
+ }
1854
+ };
1855
+ summaryNewsIA = async (e, t) => {
1856
+ try {
1857
+ let n = e.map((e) => ({ path: e }));
1858
+ return (await this.props.axiosApi.post("/news/edit/SummaryNewsIA", {
1859
+ authentication: this.authentication,
1860
+ news: { new: n },
1861
+ saveInNews: t
1862
+ })).data;
1863
+ } catch (e) {
1864
+ return console.error("[/news/edit/SummaryNewsIA]", e), Promise.reject(e);
1865
+ }
1866
+ };
1867
+ getAdminNewsConfiguration = async (e) => {
1868
+ try {
1869
+ return (await this.props.axiosApi.post("/news/edit/adminNewsConfiguration", {
1870
+ authentication: this.authentication,
1871
+ path: e
1872
+ })).data;
1873
+ } catch (e) {
1874
+ return console.error("[/news/edit/adminNewsConfiguration]", e), Promise.reject(e);
1875
+ }
1876
+ };
1877
+ getFieldsDefault = async (e) => {
1878
+ try {
1879
+ return (await this.props.axiosApi.post("/news/edit/fieldsDefault", {
1880
+ authentication: this.authentication,
1881
+ path: e
1882
+ })).data;
1883
+ } catch (e) {
1884
+ return console.error("[/news/edit/fieldsDefault]", e), Promise.reject(e);
1885
+ }
1886
+ };
1887
+ getAuthorConfiguration = async () => {
1888
+ try {
1889
+ return (await this.props.axiosApi.post("/news/edit/authorConfiguration", { authentication: this.authentication })).data;
1890
+ } catch (e) {
1891
+ return console.error("[/news/edit/authorConfiguration]", e), Promise.reject(e);
1892
+ }
1893
+ };
1894
+ hideBanner = async (e) => {
1895
+ try {
1896
+ return (await this.props.axiosApi.post("/news/edit/hideBanner", {
1897
+ authentication: this.authentication,
1898
+ news: { new: e }
1899
+ })).data;
1900
+ } catch (e) {
1901
+ return console.error("[/news/edit/hideBanner]", e), Promise.reject(e);
1902
+ }
1903
+ };
1904
+ getVersions = async (e) => {
1905
+ try {
1906
+ return (await this.props.axiosApi.post("/news/versions/get", {
1907
+ authentication: this.authentication,
1908
+ news: { path: e }
1909
+ })).data;
1910
+ } catch (e) {
1911
+ return console.error("[/news/versions/get]", e), Promise.reject(e);
1912
+ }
1913
+ };
1914
+ recoverVersion = async (e, t) => {
1915
+ try {
1916
+ return (await this.props.axiosApi.post("/news/versions/recovery", {
1917
+ authentication: this.authentication,
1918
+ news: {
1919
+ path: e,
1920
+ version: t
1921
+ }
1922
+ })).data;
1923
+ } catch (e) {
1924
+ return console.error("[/news/versions/recovery]", e), Promise.reject(e);
1925
+ }
1926
+ };
1927
+ getRefactor = async (e = {}) => {
1928
+ try {
1929
+ return (await this.props.axiosApi.post("/news/refactor/get", {
1930
+ authentication: this.authentication,
1931
+ filters: e
1932
+ })).data;
1933
+ } catch (e) {
1934
+ return console.error("[/news/refactor/get]", e), Promise.reject(e);
1935
+ }
1936
+ };
1937
+ newsCheck = async (e) => {
1938
+ try {
1939
+ return (await this.props.axiosApi.post("/news/IA/newsCheck", {
1940
+ authentication: this.authentication,
1941
+ ...e
1942
+ })).data;
1943
+ } catch (e) {
1944
+ return console.error("[/news/IA/newsCheck]", e), Promise.reject(e);
1945
+ }
1946
+ };
1947
+ iaCreate = async (e, t) => {
1948
+ try {
1949
+ return (await this.props.axiosApi.post("/news/IAcreate/create", {
1950
+ authentication: this.authentication,
1951
+ newsType: e,
1952
+ content: t
1953
+ })).data;
1954
+ } catch (e) {
1955
+ return console.error("[/news/IAcreate/create]", e), Promise.reject(e);
1956
+ }
1957
+ };
1958
+ iaPreview = async (e = {}) => {
1959
+ try {
1960
+ return (await this.props.axiosApi.post("/news/IAcreate/preview", {
1961
+ authentication: this.authentication,
1962
+ ...e
1963
+ })).data;
1964
+ } catch (e) {
1965
+ return console.error("[/news/IAcreate/preview]", e), Promise.reject(e);
1966
+ }
1967
+ };
1968
+ migrarAnalytics = async (e) => {
1969
+ try {
1970
+ return (await this.props.axiosApi.post("/news/analytics/migrar", {
1971
+ authentication: this.authentication,
1972
+ filters: { pathNote: e }
1973
+ })).data;
1974
+ } catch (e) {
1975
+ return console.error("[/news/analytics/migrar]", e), Promise.reject(e);
1976
+ }
1977
+ };
1978
+ searchConsoleInspection = async (e, t) => {
1979
+ try {
1980
+ return (await this.props.axiosApi.post("/news/searchConsole/inspection", {
1981
+ authentication: this.authentication,
1982
+ path: e,
1983
+ language: t
1984
+ })).data;
1985
+ } catch (e) {
1986
+ return console.error("[/news/searchConsole/inspection]", e), Promise.reject(e);
1987
+ }
1988
+ };
1989
+ }, P = class {
1990
+ props;
1991
+ authentication;
1992
+ constructor(e) {
1993
+ this.props = e, this.authentication = e.authentication;
1994
+ }
1995
+ getAdminConfiguration = async () => {
1996
+ try {
1997
+ return (await this.props.axiosApi.post("/notification/adminConfiguration", { authentication: this.authentication })).data;
1998
+ } catch (e) {
1999
+ return console.error("[/notification/adminConfiguration]", e), Promise.reject(e);
2000
+ }
2001
+ };
2002
+ push = async (e) => {
2003
+ try {
2004
+ return (await this.props.axiosApi.post("/notification/push", {
2005
+ authentication: this.authentication,
2006
+ notification: e
2007
+ })).data;
2008
+ } catch (e) {
2009
+ return console.error("[/notification/push]", e), Promise.reject(e);
2010
+ }
2011
+ };
2012
+ getTopics = async () => {
2013
+ try {
2014
+ return (await this.props.axiosApi.post("/notification/topics", { authentication: this.authentication })).data;
2015
+ } catch (e) {
2016
+ return console.error("[/notification/topics]", e), Promise.reject(e);
2017
+ }
2018
+ };
2019
+ }, F = class {
2020
+ props;
2021
+ authentication;
2022
+ constructor(e) {
2023
+ this.props = e, this.authentication = e.authentication;
2024
+ }
2025
+ getPeople = async (e = {}) => {
2026
+ try {
2027
+ return (await this.props.axiosApi.post("/people/get", {
2028
+ authentication: this.authentication,
2029
+ filters: e
2030
+ })).data;
2031
+ } catch (e) {
2032
+ return console.error("[/people/get]", e), Promise.reject(e);
2033
+ }
2034
+ };
2035
+ addPerson = async (e) => {
2036
+ try {
2037
+ return (await this.props.axiosApi.post("/people/add", {
2038
+ authentication: this.authentication,
2039
+ people: e
2040
+ })).data;
2041
+ } catch (e) {
2042
+ return console.error("[/people/add]", e), Promise.reject(e);
2043
+ }
2044
+ };
2045
+ updatePerson = async (e) => {
2046
+ try {
2047
+ return (await this.props.axiosApi.post("/people/update", {
2048
+ authentication: this.authentication,
2049
+ person: e
2050
+ })).data;
2051
+ } catch (e) {
2052
+ return console.error("[/people/update]", e), Promise.reject(e);
2053
+ }
2054
+ };
2055
+ deletePerson = async (e) => {
2056
+ try {
2057
+ return (await this.props.axiosApi.post("/people/delete", {
2058
+ authentication: this.authentication,
2059
+ person: { id: e }
2060
+ })).data;
2061
+ } catch (e) {
2062
+ return console.error("[/people/delete]", e), Promise.reject(e);
2063
+ }
2064
+ };
2065
+ changeStatus = async (e, t) => {
2066
+ try {
2067
+ return (await this.props.axiosApi.post("/people/changeStatus", {
2068
+ authentication: this.authentication,
2069
+ person: {
2070
+ id: e,
2071
+ status: t
2072
+ }
2073
+ })).data;
2074
+ } catch (e) {
2075
+ return console.error("[/people/changeStatus]", e), Promise.reject(e);
2076
+ }
2077
+ };
2078
+ isExist = async (e) => {
2079
+ try {
2080
+ return (await this.props.axiosApi.post("/people/isExist", {
2081
+ authentication: this.authentication,
2082
+ filters: { text: e }
2083
+ })).data;
2084
+ } catch (e) {
2085
+ return console.error("[/people/isExist]", e), Promise.reject(e);
2086
+ }
2087
+ };
2088
+ getAdminConfiguration = async () => {
2089
+ try {
2090
+ return (await this.props.axiosApi.post("/people/adminConfiguration", { authentication: this.authentication })).data;
2091
+ } catch (e) {
2092
+ return console.error("[/people/adminConfiguration]", e), Promise.reject(e);
2093
+ }
2094
+ };
2095
+ }, I = class {
2096
+ props;
2097
+ authentication;
2098
+ constructor(e) {
2099
+ this.props = e, this.authentication = e.authentication;
2100
+ }
2101
+ getActivities = async (e = {}) => {
2102
+ try {
2103
+ return (await this.props.axiosApi.post("/planning/activity/get", {
2104
+ authentication: this.authentication,
2105
+ filters: e
2106
+ })).data;
2107
+ } catch (e) {
2108
+ return console.error("[/planning/activity/get]", e), Promise.reject(e);
2109
+ }
2110
+ };
2111
+ createActivity = async (e) => {
2112
+ try {
2113
+ return (await this.props.axiosApi.post("/planning/activity/create", {
2114
+ authentication: this.authentication,
2115
+ activity: e
2116
+ })).data;
2117
+ } catch (e) {
2118
+ return console.error("[/planning/activity/create]", e), Promise.reject(e);
2119
+ }
2120
+ };
2121
+ updateActivity = async (e) => {
2122
+ try {
2123
+ return (await this.props.axiosApi.post("/planning/activity/update", {
2124
+ authentication: this.authentication,
2125
+ activity: e
2126
+ })).data;
2127
+ } catch (e) {
2128
+ return console.error("[/planning/activity/update]", e), Promise.reject(e);
2129
+ }
2130
+ };
2131
+ deleteActivity = async (e) => {
2132
+ try {
2133
+ return (await this.props.axiosApi.post("/planning/activity/delete", {
2134
+ authentication: this.authentication,
2135
+ id: e
2136
+ })).data;
2137
+ } catch (e) {
2138
+ return console.error("[/planning/activity/delete]", e), Promise.reject(e);
2139
+ }
2140
+ };
2141
+ copyActivity = async (e) => {
2142
+ try {
2143
+ return (await this.props.axiosApi.post("/planning/activity/copy", {
2144
+ authentication: this.authentication,
2145
+ id: e
2146
+ })).data;
2147
+ } catch (e) {
2148
+ return console.error("[/planning/activity/copy]", e), Promise.reject(e);
2149
+ }
2150
+ };
2151
+ }, L = class {
2152
+ props;
2153
+ authentication;
2154
+ constructor(e) {
2155
+ this.props = e, this.authentication = e.authentication;
2156
+ }
2157
+ activatePoll = async (e, t) => {
2158
+ try {
2159
+ return (await this.props.axiosApi.post("/polls/active", {
2160
+ authentication: this.authentication,
2161
+ path: e,
2162
+ group: t
2163
+ })).data;
2164
+ } catch (e) {
2165
+ return console.error("[/polls/active]", e), Promise.reject(e);
2166
+ }
2167
+ };
2168
+ getAdminConfiguration = async (e) => {
2169
+ try {
2170
+ return (await this.props.axiosApi.post("/polls/adminConfiguration", {
2171
+ authentication: this.authentication,
2172
+ path: e
2173
+ })).data;
2174
+ } catch (e) {
2175
+ return console.error("[/polls/adminConfiguration]", e), Promise.reject(e);
2176
+ }
2177
+ };
2178
+ closePoll = async (e) => {
2179
+ try {
2180
+ return (await this.props.axiosApi.post("/polls/close", {
2181
+ authentication: this.authentication,
2182
+ path: e
2183
+ })).data;
2184
+ } catch (e) {
2185
+ return console.error("[/polls/close]", e), Promise.reject(e);
2186
+ }
2187
+ };
2188
+ createPoll = async () => {
2189
+ try {
2190
+ return (await this.props.axiosApi.post("/polls/create", { authentication: this.authentication })).data;
2191
+ } catch (e) {
2192
+ return console.error("[/polls/create]", e), Promise.reject(e);
2193
+ }
2194
+ };
2195
+ getPolls = async (e = {}) => {
2196
+ try {
2197
+ return (await this.props.axiosApi.post("/polls/get", {
2198
+ authentication: this.authentication,
2199
+ filters: e
2200
+ })).data;
2201
+ } catch (e) {
2202
+ return console.error("[/polls/get]", e), Promise.reject(e);
2203
+ }
2204
+ };
2205
+ readPoll = async (e) => {
2206
+ try {
2207
+ return (await this.props.axiosApi.post("/polls/read", {
2208
+ authentication: this.authentication,
2209
+ path: e
2210
+ })).data;
2211
+ } catch (e) {
2212
+ return console.error("[/polls/read]", e), Promise.reject(e);
2213
+ }
2214
+ };
2215
+ reviewPoll = async (e) => {
2216
+ try {
2217
+ return (await this.props.axiosApi.post("/polls/review", {
2218
+ authentication: this.authentication,
2219
+ path: e
2220
+ })).data;
2221
+ } catch (e) {
2222
+ return console.error("[/polls/review]", e), Promise.reject(e);
2223
+ }
2224
+ };
2225
+ unlockPoll = async (e) => {
2226
+ try {
2227
+ return (await this.props.axiosApi.post("/polls/unlock", {
2228
+ authentication: this.authentication,
2229
+ path: e
2230
+ })).data;
2231
+ } catch (e) {
2232
+ return console.error("[/polls/unlock]", e), Promise.reject(e);
2233
+ }
2234
+ };
2235
+ unpublishPoll = async (e) => {
2236
+ try {
2237
+ return (await this.props.axiosApi.post("/polls/unpublish", {
2238
+ authentication: this.authentication,
2239
+ path: e
2240
+ })).data;
2241
+ } catch (e) {
2242
+ return console.error("[/polls/unpublish]", e), Promise.reject(e);
2243
+ }
2244
+ };
2245
+ discardDraft = async (e) => {
2246
+ try {
2247
+ return (await this.props.axiosApi.post("/polls/edit/discardDraft", {
2248
+ authentication: this.authentication,
2249
+ path: e
2250
+ })).data;
2251
+ } catch (e) {
2252
+ return console.error("[/polls/edit/discardDraft]", e), Promise.reject(e);
2253
+ }
2254
+ };
2255
+ exitEdit = async (e, t) => {
2256
+ try {
2257
+ return (await this.props.axiosApi.post("/polls/edit/exit", {
2258
+ authentication: this.authentication,
2259
+ path: e,
2260
+ discardDraft: t
2261
+ })).data;
2262
+ } catch (e) {
2263
+ return console.error("[/polls/edit/exit]", e), Promise.reject(e);
2264
+ }
2265
+ };
2266
+ savePoll = async (e, t) => {
2267
+ try {
2268
+ return (await this.props.axiosApi.post("/polls/edit/save", {
2269
+ authentication: this.authentication,
2270
+ path: e,
2271
+ content: t
2272
+ })).data;
2273
+ } catch (e) {
2274
+ return console.error("[/polls/edit/save]", e), Promise.reject(e);
2275
+ }
2276
+ };
2277
+ saveTempPoll = async (e, t) => {
2278
+ try {
2279
+ return (await this.props.axiosApi.post("/polls/edit/saveTemp", {
2280
+ authentication: this.authentication,
2281
+ path: e,
2282
+ content: t
2283
+ })).data;
2284
+ } catch (e) {
2285
+ return console.error("[/polls/edit/saveTemp]", e), Promise.reject(e);
2286
+ }
2287
+ };
2288
+ publishCheck = async (e) => {
2289
+ try {
2290
+ return (await this.props.axiosApi.post("/polls/publish/check", {
2291
+ authentication: this.authentication,
2292
+ polls: e
2293
+ })).data;
2294
+ } catch (e) {
2295
+ return console.error("[/polls/publish/check]", e), Promise.reject(e);
2296
+ }
2297
+ };
2298
+ publishNow = async (e) => {
2299
+ try {
2300
+ let t = e.map((e) => ({ path: e }));
2301
+ return (await this.props.axiosApi.post("/polls/publish/now", {
2302
+ authentication: this.authentication,
2303
+ polls: { poll: t }
2304
+ })).data;
2305
+ } catch (e) {
2306
+ return console.error("[/polls/publish/now]", e), Promise.reject(e);
2307
+ }
2308
+ };
2309
+ }, R = class {
2310
+ props;
2311
+ authentication;
2312
+ constructor(e) {
2313
+ this.props = e, this.authentication = e.authentication;
2314
+ }
2315
+ getRecipes = async (e = {}) => {
2316
+ try {
2317
+ return (await this.props.axiosApi.post("/recipes/get", {
2318
+ authentication: this.authentication,
2319
+ filters: e
2320
+ })).data;
2321
+ } catch (e) {
2322
+ return console.error("[/recipes/get]", e), Promise.reject(e);
2323
+ }
2324
+ };
2325
+ createRecipe = async () => {
2326
+ try {
2327
+ return (await this.props.axiosApi.post("/recipes/create", { authentication: this.authentication })).data;
2328
+ } catch (e) {
2329
+ return console.error("[/recipes/create]", e), Promise.reject(e);
2330
+ }
2331
+ };
2332
+ getAdminConfiguration = async () => {
2333
+ try {
2334
+ return (await this.props.axiosApi.post("/recipes/adminConfiguration", { authentication: this.authentication })).data;
2335
+ } catch (e) {
2336
+ return console.error("[/recipes/adminConfiguration]", e), Promise.reject(e);
2337
+ }
2338
+ };
2339
+ getPreviewFormats = async () => {
2340
+ try {
2341
+ return (await this.props.axiosApi.post("/recipes/previewFormats", { authentication: this.authentication })).data;
2342
+ } catch (e) {
2343
+ return console.error("[/recipes/previewFormats]", e), Promise.reject(e);
2344
+ }
2345
+ };
2346
+ saveRecipe = async (e, t) => {
2347
+ try {
2348
+ return (await this.props.axiosApi.post("/recipes/edit/save", {
2349
+ authentication: this.authentication,
2350
+ path: e,
2351
+ content: t
2352
+ })).data;
2353
+ } catch (e) {
2354
+ return console.error("[/recipes/edit/save]", e), Promise.reject(e);
2355
+ }
2356
+ };
2357
+ saveTempRecipe = async (e, t) => {
2358
+ try {
2359
+ return (await this.props.axiosApi.post("/recipes/edit/saveTemp", {
2360
+ authentication: this.authentication,
2361
+ path: e,
2362
+ content: t
2363
+ })).data;
2364
+ } catch (e) {
2365
+ return console.error("[/recipes/edit/saveTemp]", e), Promise.reject(e);
2366
+ }
2367
+ };
2368
+ editInline = async (e) => {
2369
+ try {
2370
+ return (await this.props.axiosApi.post("/recipes/edit/inline", {
2371
+ authentication: this.authentication,
2372
+ ...e
2373
+ })).data;
2374
+ } catch (e) {
2375
+ return console.error("[/recipes/edit/inline]", e), Promise.reject(e);
2376
+ }
2377
+ };
2378
+ editMassive = async (e) => {
2379
+ try {
2380
+ return (await this.props.axiosApi.post("/recipes/edit/massive", {
2381
+ authentication: this.authentication,
2382
+ ...e
2383
+ })).data;
2384
+ } catch (e) {
2385
+ return console.error("[/recipes/edit/massive]", e), Promise.reject(e);
2386
+ }
2387
+ };
2388
+ exitEdit = async (e, t) => {
2389
+ try {
2390
+ return (await this.props.axiosApi.post("/recipes/edit/exit", {
2391
+ authentication: this.authentication,
2392
+ path: e,
2393
+ discardDraft: t
2394
+ })).data;
2395
+ } catch (e) {
2396
+ return console.error("[/recipes/edit/exit]", e), Promise.reject(e);
2397
+ }
2398
+ };
2399
+ discardDraft = async (e) => {
2400
+ try {
2401
+ return (await this.props.axiosApi.post("/recipes/edit/discardDraft", {
2402
+ authentication: this.authentication,
2403
+ path: e
2404
+ })).data;
2405
+ } catch (e) {
2406
+ return console.error("[/recipes/edit/discardDraft]", e), Promise.reject(e);
2407
+ }
2408
+ };
2409
+ analizeNews = async (e) => {
2410
+ try {
2411
+ return (await this.props.axiosApi.post("/recipes/edit/analizeNews", {
2412
+ authentication: this.authentication,
2413
+ path: e
2414
+ })).data;
2415
+ } catch (e) {
2416
+ return console.error("[/recipes/edit/analizeNews]", e), Promise.reject(e);
2417
+ }
2418
+ };
2419
+ getAuthorConfiguration = async () => {
2420
+ try {
2421
+ return (await this.props.axiosApi.post("/recipes/edit/authorConfiguration", { authentication: this.authentication })).data;
2422
+ } catch (e) {
2423
+ return console.error("[/recipes/edit/authorConfiguration]", e), Promise.reject(e);
2424
+ }
2425
+ };
2426
+ getFieldsDefault = async () => {
2427
+ try {
2428
+ return (await this.props.axiosApi.post("/recipes/edit/fieldsDefault", { authentication: this.authentication })).data;
2429
+ } catch (e) {
2430
+ return console.error("[/recipes/edit/fieldsDefault]", e), Promise.reject(e);
2431
+ }
2432
+ };
2433
+ checkPublish = async (e) => {
2434
+ try {
2435
+ let t = e.map((e) => ({ path: e }));
2436
+ return (await this.props.axiosApi.post("/recipes/publish/check", {
2437
+ authentication: this.authentication,
2438
+ recipes: { recipe: t }
2439
+ })).data;
2440
+ } catch (e) {
2441
+ return console.error("[/recipes/publish/check]", e), Promise.reject(e);
2442
+ }
2443
+ };
2444
+ publishNow = async (e) => {
2445
+ try {
2446
+ let t = e.map((e) => ({ path: e }));
2447
+ return (await this.props.axiosApi.post("/recipes/publish/now", {
2448
+ authentication: this.authentication,
2449
+ recipes: { recipe: t }
2450
+ })).data;
2451
+ } catch (e) {
2452
+ return console.error("[/recipes/publish/now]", e), Promise.reject(e);
2453
+ }
2454
+ };
2455
+ publishMassive = async (e) => {
2456
+ try {
2457
+ let t = e.map((e) => ({ path: e }));
2458
+ return (await this.props.axiosApi.post("/recipes/publish/massive", {
2459
+ authentication: this.authentication,
2460
+ news: { new: t }
2461
+ })).data;
2462
+ } catch (e) {
2463
+ return console.error("[/recipes/publish/massive]", e), Promise.reject(e);
2464
+ }
2465
+ };
2466
+ schedulePublish = async (e) => {
2467
+ try {
2468
+ let t = e.map((e) => ({ path: e }));
2469
+ return (await this.props.axiosApi.post("/recipes/publish/schedule", {
2470
+ authentication: this.authentication,
2471
+ news: { new: t }
2472
+ })).data;
2473
+ } catch (e) {
2474
+ return console.error("[/recipes/publish/schedule]", e), Promise.reject(e);
2475
+ }
2476
+ };
2477
+ }, z = class {
2478
+ props;
2479
+ authentication;
2480
+ constructor(e) {
2481
+ this.props = e, this.authentication = e.authentication;
2482
+ }
2483
+ getUsers = async (e = {}) => {
2484
+ try {
2485
+ return (await this.props.axiosApi.post("/users/get", {
2486
+ authentication: this.authentication,
2487
+ filters: e
2488
+ })).data;
2489
+ } catch (e) {
2490
+ return console.error("[/users/get]", e), Promise.reject(e);
2491
+ }
2492
+ };
2493
+ getPublicationUsers = async (e = {}) => {
2494
+ try {
2495
+ return (await this.props.axiosApi.post("/users/publication", {
2496
+ authentication: this.authentication,
2497
+ filters: e
2498
+ })).data;
2499
+ } catch (e) {
2500
+ return console.error("[/users/publication]", e), Promise.reject(e);
2501
+ }
2502
+ };
2503
+ getGroups = async (e = "/") => {
2504
+ try {
2505
+ return (await this.props.axiosApi.post("/users/groups/get", {
2506
+ authentication: this.authentication,
2507
+ ou: e
2508
+ })).data;
2509
+ } catch (e) {
2510
+ return console.error("[/users/groups/get]", e), Promise.reject(e);
2511
+ }
2512
+ };
2513
+ getPins = async () => {
2514
+ try {
2515
+ return (await this.props.axiosApi.post("/users/pin/get", { authentication: this.authentication })).data;
2516
+ } catch (e) {
2517
+ return console.error("[/users/pin/get]", e), Promise.reject(e);
2518
+ }
2519
+ };
2520
+ addPin = async (e) => {
2521
+ try {
2522
+ return (await this.props.axiosApi.post("/users/pin/add", {
2523
+ authentication: this.authentication,
2524
+ pines: { pin: [e] }
2525
+ })).data;
2526
+ } catch (e) {
2527
+ return console.error("[/users/pin/add]", e), Promise.reject(e);
2528
+ }
2529
+ };
2530
+ deletePins = async (e) => {
2531
+ try {
2532
+ let t = e.map((e) => ({ id: e }));
2533
+ return (await this.props.axiosApi.post("/users/pin/delete", {
2534
+ authentication: this.authentication,
2535
+ pines: { pin: t }
2536
+ })).data;
2537
+ } catch (e) {
2538
+ return console.error("[/users/pin/delete]", e), Promise.reject(e);
2539
+ }
2540
+ };
2541
+ setUserStatus = async (e, t) => {
2542
+ try {
2543
+ return (await this.props.axiosApi.post("/users/action/setStatus", {
2544
+ authentication: this.authentication,
2545
+ username: e,
2546
+ action: t
2547
+ })).data;
2548
+ } catch (e) {
2549
+ return console.error("[/users/action/setStatus]", e), Promise.reject(e);
2550
+ }
2551
+ };
2552
+ resetPassword = async (e) => {
2553
+ try {
2554
+ return (await this.props.axiosApi.post("/users/action/resetPass", {
2555
+ authentication: this.authentication,
2556
+ username: e
2557
+ })).data;
2558
+ } catch (e) {
2559
+ return console.error("[/users/action/resetPass]", e), Promise.reject(e);
2560
+ }
2561
+ };
2562
+ resetMfa = async (e, t) => {
2563
+ try {
2564
+ return (await this.props.axiosApi.post("/users/action/resetMfa", {
2565
+ authentication: this.authentication,
2566
+ username: e,
2567
+ reason: t
2568
+ })).data;
2569
+ } catch (e) {
2570
+ return console.error("[/users/action/resetMfa]", e), Promise.reject(e);
2571
+ }
2572
+ };
2573
+ }, B = class {
2574
+ props;
2575
+ authentication;
2576
+ constructor(e) {
2577
+ this.props = e, this.authentication = e.authentication;
2578
+ }
2579
+ getZones = async (e = {}) => {
2580
+ try {
2581
+ return (await this.props.axiosApi.post("/zones/get", {
2582
+ authentication: this.authentication,
2583
+ filters: e
2584
+ })).data;
2585
+ } catch (e) {
2586
+ return console.error("[/zones/get]", e), Promise.reject(e);
2587
+ }
2588
+ };
2589
+ addZone = async (e) => {
2590
+ try {
2591
+ return (await this.props.axiosApi.post("/zones/add", {
2592
+ authentication: this.authentication,
2593
+ zone: e
2594
+ })).data;
2595
+ } catch (e) {
2596
+ return console.error("[/zones/add]", e), Promise.reject(e);
2597
+ }
2598
+ };
2599
+ updateZone = async (e) => {
2600
+ try {
2601
+ return (await this.props.axiosApi.post("/zones/update", {
2602
+ authentication: this.authentication,
2603
+ zone: e
2604
+ })).data;
2605
+ } catch (e) {
2606
+ return console.error("[/zones/update]", e), Promise.reject(e);
2607
+ }
2608
+ };
2609
+ deleteZone = async (e) => {
2610
+ try {
2611
+ return (await this.props.axiosApi.post("/zones/delete", {
2612
+ authentication: this.authentication,
2613
+ zone: { id: e }
2614
+ })).data;
2615
+ } catch (e) {
2616
+ return console.error("[/zones/delete]", e), Promise.reject(e);
2617
+ }
2618
+ };
2619
+ orderZones = async (e) => {
2620
+ try {
2621
+ return (await this.props.axiosApi.post("/zones/order", {
2622
+ authentication: this.authentication,
2623
+ zone: {},
2624
+ zones: { order: e.join(",") }
2625
+ })).data;
2626
+ } catch (e) {
2627
+ return console.error("[/zones/order]", e), Promise.reject(e);
2628
+ }
2629
+ };
2630
+ }, V = class {
2631
+ props;
2632
+ authentication;
2633
+ constructor(e) {
2634
+ this.props = e, this.authentication = e.authentication;
2635
+ }
2636
+ check = async (e) => {
2637
+ try {
2638
+ return (await this.props.axiosApi.post("/workpaper/check", {
2639
+ authentication: this.authentication,
2640
+ path: e
2641
+ })).data;
2642
+ } catch (e) {
2643
+ return console.error("[/workpaper/check]", e), Promise.reject(e);
2644
+ }
2645
+ };
2646
+ login = async (e) => {
2647
+ try {
2648
+ return (await this.props.axiosApi.post("/workpaper/login", {
2649
+ authentication: this.authentication,
2650
+ link: { url: e }
2651
+ })).data;
2652
+ } catch (e) {
2653
+ return console.error("[/workpaper/login]", e), Promise.reject(e);
2654
+ }
2655
+ };
2656
+ status = async () => {
2657
+ try {
2658
+ return (await this.props.axiosApi.post("/workpaper/status", { authentication: this.authentication })).data;
2659
+ } catch (e) {
2660
+ return console.error("[/workpaper/status]", e), Promise.reject(e);
2661
+ }
2662
+ };
2663
+ }, H = class {
2664
+ props;
2665
+ authentication;
2666
+ constructor(e) {
2667
+ this.props = e, this.authentication = e.authentication;
2668
+ }
2669
+ getVods = async (e = {}) => {
2670
+ try {
2671
+ return (await this.props.axiosApi.post("/vods/get", {
2672
+ authentication: this.authentication,
2673
+ filters: e
2674
+ })).data;
2675
+ } catch (e) {
2676
+ return console.error("[/vods/get]", e), Promise.reject(e);
2677
+ }
2678
+ };
2679
+ getTypes = async () => {
2680
+ try {
2681
+ return (await this.props.axiosApi.post("/vods/types", { authentication: this.authentication })).data;
2682
+ } catch (e) {
2683
+ return console.error("[/vods/types]", e), Promise.reject(e);
2684
+ }
2685
+ };
2686
+ createMovie = async () => {
2687
+ try {
2688
+ return (await this.props.axiosApi.post("/vods/movie/create", { authentication: this.authentication })).data;
2689
+ } catch (e) {
2690
+ return console.error("[/vods/movie/create]", e), Promise.reject(e);
2691
+ }
2692
+ };
2693
+ createSerie = async () => {
2694
+ try {
2695
+ return (await this.props.axiosApi.post("/vods/serie/create", { authentication: this.authentication })).data;
2696
+ } catch (e) {
2697
+ return console.error("[/vods/serie/create]", e), Promise.reject(e);
2698
+ }
2699
+ };
2700
+ createPlaylist = async () => {
2701
+ try {
2702
+ return (await this.props.axiosApi.post("/vods/playlist/create", { authentication: this.authentication })).data;
2703
+ } catch (e) {
2704
+ return console.error("[/vods/playlist/create]", e), Promise.reject(e);
2705
+ }
2706
+ };
2707
+ }, U = class {
2708
+ props;
2709
+ authentication;
2710
+ constructor(e) {
2711
+ this.props = e, this.authentication = e.authentication;
2712
+ }
2713
+ getVideos = async (e = {}) => {
2714
+ try {
2715
+ return (await this.props.axiosApi.post("/videos/get", {
2716
+ authentication: this.authentication,
2717
+ filters: e
2718
+ })).data;
2719
+ } catch (e) {
2720
+ return console.error("[/videos/get]", e), Promise.reject(e);
2721
+ }
2722
+ };
2723
+ readVideo = async (e) => {
2724
+ try {
2725
+ return (await this.props.axiosApi.post("/videos/read", {
2726
+ authentication: this.authentication,
2727
+ path: e
2728
+ })).data;
2729
+ } catch (e) {
2730
+ return console.error("[/videos/read]", e), Promise.reject(e);
2731
+ }
2732
+ };
2733
+ getAdminConfiguration = async () => {
2734
+ try {
2735
+ return (await this.props.axiosApi.post("/videos/adminConfiguration", { authentication: this.authentication })).data;
2736
+ } catch (e) {
2737
+ return console.error("[/videos/adminConfiguration]", e), Promise.reject(e);
2738
+ }
2739
+ };
2740
+ setAvailable = async (e) => {
2741
+ try {
2742
+ return (await this.props.axiosApi.post("/videos/available", {
2743
+ authentication: this.authentication,
2744
+ path: e
2745
+ })).data;
2746
+ } catch (e) {
2747
+ return console.error("[/videos/available]", e), Promise.reject(e);
2748
+ }
2749
+ };
2750
+ saveVideo = async (e, t) => {
2751
+ try {
2752
+ return (await this.props.axiosApi.post("/videos/edit/save", {
2753
+ authentication: this.authentication,
2754
+ path: e,
2755
+ content: t
2756
+ })).data;
2757
+ } catch (e) {
2758
+ return console.error("[/videos/edit/save]", e), Promise.reject(e);
2759
+ }
2760
+ };
2761
+ discardDraft = async (e) => {
2762
+ try {
2763
+ return (await this.props.axiosApi.post("/videos/edit/discardDraft", {
2764
+ authentication: this.authentication,
2765
+ path: e
2766
+ })).data;
2767
+ } catch (e) {
2768
+ return console.error("[/videos/edit/discardDraft]", e), Promise.reject(e);
2769
+ }
2770
+ };
2771
+ hideBanner = async (e) => {
2772
+ try {
2773
+ return (await this.props.axiosApi.post("/videos/edit/hideBanner", {
2774
+ authentication: this.authentication,
2775
+ video: e
2776
+ })).data;
2777
+ } catch (e) {
2778
+ return console.error("[/videos/edit/hideBanner]", e), Promise.reject(e);
2779
+ }
2780
+ };
2781
+ editInline = async (e) => {
2782
+ try {
2783
+ return (await this.props.axiosApi.post("/videos/edit/inline", {
2784
+ authentication: this.authentication,
2785
+ video: e
2786
+ })).data;
2787
+ } catch (e) {
2788
+ return console.error("[/videos/edit/inline]", e), Promise.reject(e);
2789
+ }
2790
+ };
2791
+ embeddedExists = async (e) => {
2792
+ try {
2793
+ return (await this.props.axiosApi.post("/videos/embedded/exists", {
2794
+ authentication: this.authentication,
2795
+ code: e
2796
+ })).data;
2797
+ } catch (e) {
2798
+ return console.error("[/videos/embedded/exists]", e), Promise.reject(e);
2799
+ }
2800
+ };
2801
+ uploadEmbedded = async (e) => {
2802
+ try {
2803
+ return (await this.props.axiosApi.post("/videos/embedded/upload", {
2804
+ authentication: this.authentication,
2805
+ video: e
2806
+ })).data;
2807
+ } catch (e) {
2808
+ return console.error("[/videos/embedded/upload]", e), Promise.reject(e);
2809
+ }
2810
+ };
2811
+ checkPublish = async (e) => {
2812
+ try {
2813
+ return (await this.props.axiosApi.post("/videos/publish/check", {
2814
+ authentication: this.authentication,
2815
+ videos: e
2816
+ })).data;
2817
+ } catch (e) {
2818
+ return console.error("[/videos/publish/check]", e), Promise.reject(e);
2819
+ }
2820
+ };
2821
+ publishNow = async (e, t) => {
2822
+ try {
2823
+ return (await this.props.axiosApi.post("/videos/publish/now", {
2824
+ authentication: this.authentication,
2825
+ videos: e,
2826
+ setLastModification: t
2827
+ })).data;
2828
+ } catch (e) {
2829
+ return console.error("[/videos/publish/now]", e), Promise.reject(e);
2830
+ }
2831
+ };
2832
+ republish = async (e) => {
2833
+ try {
2834
+ return (await this.props.axiosApi.post("/videos/publish/republish", {
2835
+ authentication: this.authentication,
2836
+ path: e
2837
+ })).data;
2838
+ } catch (e) {
2839
+ return console.error("[/videos/publish/republish]", e), Promise.reject(e);
2840
+ }
2841
+ };
2842
+ schedulePublish = async (e) => {
2843
+ try {
2844
+ return (await this.props.axiosApi.post("/videos/publish/schedule", {
2845
+ authentication: this.authentication,
2846
+ videos: e
2847
+ })).data;
2848
+ } catch (e) {
2849
+ return console.error("[/videos/publish/schedule]", e), Promise.reject(e);
2850
+ }
2851
+ };
2852
+ getRudoThumbnails = async (e) => {
2853
+ try {
2854
+ return (await this.props.axiosApi.post("/videos/rudo/getThumbnails", {
2855
+ authentication: this.authentication,
2856
+ rudoCode: e
2857
+ })).data;
2858
+ } catch (e) {
2859
+ return console.error("[/videos/rudo/getThumbnails]", e), Promise.reject(e);
2860
+ }
2861
+ };
2862
+ checkUnlock = async (e) => {
2863
+ try {
2864
+ return (await this.props.axiosApi.post("/videos/unlock/check", {
2865
+ authentication: this.authentication,
2866
+ path: e
2867
+ })).data;
2868
+ } catch (e) {
2869
+ return console.error("[/videos/unlock/check]", e), Promise.reject(e);
2870
+ }
2871
+ };
2872
+ unlockNow = async (e) => {
2873
+ try {
2874
+ return (await this.props.axiosApi.post("/videos/unlock/now", {
2875
+ authentication: this.authentication,
2876
+ path: e
2877
+ })).data;
2878
+ } catch (e) {
2879
+ return console.error("[/videos/unlock/now]", e), Promise.reject(e);
2880
+ }
2881
+ };
2882
+ unlockRemove = async (e) => {
2883
+ try {
2884
+ return (await this.props.axiosApi.post("/videos/unlock/remove", {
2885
+ authentication: this.authentication,
2886
+ path: e
2887
+ })).data;
2888
+ } catch (e) {
2889
+ return console.error("[/videos/unlock/remove]", e), Promise.reject(e);
2890
+ }
2891
+ };
2892
+ checkUnpublish = async (e) => {
2893
+ try {
2894
+ return (await this.props.axiosApi.post("/videos/unpublish/check", {
2895
+ authentication: this.authentication,
2896
+ path: e
2897
+ })).data;
2898
+ } catch (e) {
2899
+ return console.error("[/videos/unpublish/check]", e), Promise.reject(e);
2900
+ }
2901
+ };
2902
+ deleteVideo = async (e) => {
2903
+ try {
2904
+ return (await this.props.axiosApi.post("/videos/unpublish/delete", {
2905
+ authentication: this.authentication,
2906
+ path: e
2907
+ })).data;
2908
+ } catch (e) {
2909
+ return console.error("[/videos/unpublish/delete]", e), Promise.reject(e);
2910
+ }
2911
+ };
2912
+ unpublishNow = async (e = {}) => {
2913
+ try {
2914
+ return (await this.props.axiosApi.post("/videos/unpublish/now", {
2915
+ authentication: this.authentication,
2916
+ ...e
2917
+ })).data;
2918
+ } catch (e) {
2919
+ return console.error("[/videos/unpublish/now]", e), Promise.reject(e);
2920
+ }
2921
+ };
2922
+ getYoutubeThumbnails = async (e) => {
2923
+ try {
2924
+ return (await this.props.axiosApi.post("/videos/youtube/getThumbnails", {
2925
+ authentication: this.authentication,
2926
+ youtubeId: e
2927
+ })).data;
2928
+ } catch (e) {
2929
+ return console.error("[/videos/youtube/getThumbnails]", e), Promise.reject(e);
2930
+ }
2931
+ };
2932
+ uploadYoutube = async (e) => {
2933
+ try {
2934
+ return (await this.props.axiosApi.post("/videos/youtube/upload", {
2935
+ authentication: this.authentication,
2936
+ video: e
2937
+ })).data;
2938
+ } catch (e) {
2939
+ return console.error("[/videos/youtube/upload]", e), Promise.reject(e);
2940
+ }
2941
+ };
2942
+ getConvertStatus = async (e) => {
2943
+ try {
2944
+ return (await this.props.axiosApi.post("/videos/nativos/convertStatus", {
2945
+ authentication: this.authentication,
2946
+ path: e
2947
+ })).data;
2948
+ } catch (e) {
2949
+ return console.error("[/videos/nativos/convertStatus]", e), Promise.reject(e);
2950
+ }
2951
+ };
2952
+ cancelUploadS3 = async (e) => {
2953
+ try {
2954
+ return (await this.props.axiosApi.post("/videos/nativos/uploadS3Cancel", {
2955
+ authentication: this.authentication,
2956
+ path: e
2957
+ })).data;
2958
+ } catch (e) {
2959
+ return console.error("[/videos/nativos/uploadS3Cancel]", e), Promise.reject(e);
2960
+ }
2961
+ };
2962
+ getUploadS3Progress = async (e) => {
2963
+ try {
2964
+ return (await this.props.axiosApi.post("/videos/nativos/uploadS3Progress", {
2965
+ authentication: this.authentication,
2966
+ path: e
2967
+ })).data;
2968
+ } catch (e) {
2969
+ return console.error("[/videos/nativos/uploadS3Progress]", e), Promise.reject(e);
2970
+ }
2971
+ };
2972
+ updateVideoProcessing = async (e) => {
2973
+ try {
2974
+ return (await this.props.axiosApi.post("/videos/nativos/updateVideoProcessing", {
2975
+ authentication: this.authentication,
2976
+ video: e
2977
+ })).data;
2978
+ } catch (e) {
2979
+ return console.error("[/videos/nativos/updateVideoProcessing]", e), Promise.reject(e);
2980
+ }
2981
+ };
2982
+ createVideoProcessing = async (e, t) => {
2983
+ try {
2984
+ return (await this.props.axiosApi.post("/videos/nativos/createVideoProcessing", {
2985
+ authentication: this.authentication,
2986
+ videoName: e,
2987
+ moduleConfig: t
2988
+ })).data;
2989
+ } catch (e) {
2990
+ return console.error("[/videos/nativos/createVideoProcessing]", e), Promise.reject(e);
2991
+ }
2992
+ };
2993
+ preUploadAMZ = async (e) => {
2994
+ try {
2995
+ return (await this.props.axiosApi.post("/videos/nativos/preUploadAMZ", {
2996
+ authentication: this.authentication,
2997
+ fileName: e
2998
+ })).data;
2999
+ } catch (e) {
3000
+ return console.error("[/videos/nativos/preUploadAMZ]", e), Promise.reject(e);
3001
+ }
3002
+ };
3003
+ preMultiUploadAMZ = async (e, t, n) => {
3004
+ try {
3005
+ return (await this.props.axiosApi.post("/videos/nativos/preMultiUploadAMZ", {
3006
+ authentication: this.authentication,
3007
+ fileName: e,
3008
+ size: t,
3009
+ contentType: n
3010
+ })).data;
3011
+ } catch (e) {
3012
+ return console.error("[/videos/nativos/preMultiUploadAMZ]", e), Promise.reject(e);
3013
+ }
3014
+ };
3015
+ preMultiCompleteAMZ = async (e, t) => {
3016
+ try {
3017
+ return (await this.props.axiosApi.post("/videos/nativos/preMultiCompleteAMZ", {
3018
+ authentication: this.authentication,
3019
+ vfspath: e,
3020
+ uploadId: t
3021
+ })).data;
3022
+ } catch (e) {
3023
+ return console.error("[/videos/nativos/preMultiCompleteAMZ]", e), Promise.reject(e);
3024
+ }
3025
+ };
3026
+ preMultiAbortAMZ = async (e, t) => {
3027
+ try {
3028
+ return (await this.props.axiosApi.post("/videos/nativos/preMultiAbortAMZ", {
3029
+ authentication: this.authentication,
3030
+ vfspath: e,
3031
+ uploadId: t
3032
+ })).data;
3033
+ } catch (e) {
3034
+ return console.error("[/videos/nativos/preMultiAbortAMZ]", e), Promise.reject(e);
3035
+ }
3036
+ };
3037
+ preMultiResignAMZ = async (e, t, n) => {
3038
+ try {
3039
+ return (await this.props.axiosApi.post("/videos/nativos/preMultiResignAMZ", {
3040
+ authentication: this.authentication,
3041
+ vfspath: e,
3042
+ uploadId: t,
3043
+ numberOfParts: n
3044
+ })).data;
3045
+ } catch (e) {
3046
+ return console.error("[/videos/nativos/preMultiResignAMZ]", e), Promise.reject(e);
3047
+ }
3048
+ };
3049
+ converter = async (e) => {
3050
+ try {
3051
+ return (await this.props.axiosApi.post("/videos/nativos/converter", {
3052
+ authentication: this.authentication,
3053
+ path: e
3054
+ })).data;
3055
+ } catch (e) {
3056
+ return console.error("[/videos/nativos/converter]", e), Promise.reject(e);
3057
+ }
3058
+ };
3059
+ downloadNative = async (e) => {
3060
+ try {
3061
+ return (await this.props.axiosApi.post("/videos/nativos/download", {
3062
+ authentication: this.authentication,
3063
+ path: e
3064
+ }, { responseType: "blob" })).data;
3065
+ } catch (e) {
3066
+ return console.error("[/videos/nativos/download]", e), Promise.reject(e);
3067
+ }
3068
+ };
3069
+ }, W = class {
3070
+ props;
3071
+ authentication;
3072
+ constructor(e) {
3073
+ this.props = e, this.authentication = e.authentication;
3074
+ }
3075
+ getTrivias = async (e = {}) => {
3076
+ try {
3077
+ return (await this.props.axiosApi.post("/trivias/get", {
3078
+ authentication: this.authentication,
3079
+ filters: e
3080
+ })).data;
3081
+ } catch (e) {
3082
+ return console.error("[/trivias/get]", e), Promise.reject(e);
3083
+ }
3084
+ };
3085
+ readTrivia = async (e) => {
3086
+ try {
3087
+ return (await this.props.axiosApi.post("/trivias/read", {
3088
+ authentication: this.authentication,
3089
+ path: e
3090
+ })).data;
3091
+ } catch (e) {
3092
+ return console.error("[/trivias/read]", e), Promise.reject(e);
3093
+ }
3094
+ };
3095
+ createTrivia = async () => {
3096
+ try {
3097
+ return (await this.props.axiosApi.post("/trivias/create", { authentication: this.authentication })).data;
3098
+ } catch (e) {
3099
+ return console.error("[/trivias/create]", e), Promise.reject(e);
3100
+ }
3101
+ };
3102
+ publishTrivia = async (e) => {
3103
+ try {
3104
+ return (await this.props.axiosApi.post("/trivias/publish", {
3105
+ authentication: this.authentication,
3106
+ path: e
3107
+ })).data;
3108
+ } catch (e) {
3109
+ return console.error("[/trivias/publish]", e), Promise.reject(e);
3110
+ }
3111
+ };
3112
+ publishOnlyTrivias = async (e) => {
3113
+ try {
3114
+ let t = e.map((e) => ({ path: e }));
3115
+ return (await this.props.axiosApi.post("/trivias/publishOnly", {
3116
+ authentication: this.authentication,
3117
+ trivias: { trivia: t }
3118
+ })).data;
3119
+ } catch (e) {
3120
+ return console.error("[/trivias/publishOnly]", e), Promise.reject(e);
3121
+ }
3122
+ };
3123
+ despublishTrivia = async (e) => {
3124
+ try {
3125
+ return (await this.props.axiosApi.post("/trivias/despublish", {
3126
+ authentication: this.authentication,
3127
+ path: e
3128
+ })).data;
3129
+ } catch (e) {
3130
+ return console.error("[/trivias/despublish]", e), Promise.reject(e);
3131
+ }
3132
+ };
3133
+ publishMassive = async (e) => {
3134
+ try {
3135
+ let t = e.map((e) => ({ path: e }));
3136
+ return (await this.props.axiosApi.post("/trivias/massive", {
3137
+ authentication: this.authentication,
3138
+ trivias: { trivia: t }
3139
+ })).data;
3140
+ } catch (e) {
3141
+ return console.error("[/trivias/massive]", e), Promise.reject(e);
3142
+ }
3143
+ };
3144
+ getAdminConfiguration = async (e) => {
3145
+ try {
3146
+ return (await this.props.axiosApi.post("/trivias/adminConfiguration", {
3147
+ authentication: this.authentication,
3148
+ path: e
3149
+ })).data;
3150
+ } catch (e) {
3151
+ return console.error("[/trivias/adminConfiguration]", e), Promise.reject(e);
3152
+ }
3153
+ };
3154
+ saveTrivia = async (e, t) => {
3155
+ try {
3156
+ return (await this.props.axiosApi.post("/trivias/edit/save", {
3157
+ authentication: this.authentication,
3158
+ path: e,
3159
+ content: t
3160
+ })).data;
3161
+ } catch (e) {
3162
+ return console.error("[/trivias/edit/save]", e), Promise.reject(e);
3163
+ }
3164
+ };
3165
+ exitEdit = async (e, t) => {
3166
+ try {
3167
+ return (await this.props.axiosApi.post("/trivias/edit/exit", {
3168
+ authentication: this.authentication,
3169
+ path: e,
3170
+ discardDraft: t
3171
+ })).data;
3172
+ } catch (e) {
3173
+ return console.error("[/trivias/edit/exit]", e), Promise.reject(e);
3174
+ }
3175
+ };
3176
+ editInline = async (e) => {
3177
+ try {
3178
+ return (await this.props.axiosApi.post("/trivias/edit/inline", {
3179
+ authentication: this.authentication,
3180
+ ...e
3181
+ })).data;
3182
+ } catch (e) {
3183
+ return console.error("[/trivias/edit/inline]", e), Promise.reject(e);
3184
+ }
3185
+ };
3186
+ }, G = class {
3187
+ props;
3188
+ authentication;
3189
+ constructor(e) {
3190
+ this.props = e, this.authentication = e.authentication;
3191
+ }
3192
+ getTranscription = async (e) => {
3193
+ try {
3194
+ return (await this.props.axiosApi.post("/transcribe/get", {
3195
+ authentication: this.authentication,
3196
+ path: e
3197
+ })).data;
3198
+ } catch (e) {
3199
+ return console.error("[/transcribe/get]", e), Promise.reject(e);
3200
+ }
3201
+ };
3202
+ }, K = class {
3203
+ props;
3204
+ authentication;
3205
+ constructor(e) {
3206
+ this.props = e, this.authentication = e.authentication;
3207
+ }
3208
+ getTags = async (e = {}) => {
3209
+ try {
3210
+ return (await this.props.axiosApi.post("/tags/get", {
3211
+ authentication: this.authentication,
3212
+ filters: e
3213
+ })).data;
3214
+ } catch (e) {
3215
+ return console.error("[/tags/get]", e), Promise.reject(e);
3216
+ }
3217
+ };
3218
+ getTagsInNews = async (e) => {
3219
+ try {
3220
+ return (await this.props.axiosApi.post("/tags/getInNews", {
3221
+ authentication: this.authentication,
3222
+ filters: e
3223
+ })).data;
3224
+ } catch (e) {
3225
+ return console.error("[/tags/getInNews]", e), Promise.reject(e);
3226
+ }
3227
+ };
3228
+ isExist = async (e = {}) => {
3229
+ try {
3230
+ return (await this.props.axiosApi.post("/tags/isExist", {
3231
+ authentication: this.authentication,
3232
+ filters: e
3233
+ })).data;
3234
+ } catch (e) {
3235
+ return console.error("[/tags/isExist]", e), Promise.reject(e);
3236
+ }
3237
+ };
3238
+ readTag = async (e, t) => {
3239
+ try {
3240
+ return (await this.props.axiosApi.post("/tags/read", {
3241
+ authentication: this.authentication,
3242
+ tag: {
3243
+ id_term: e,
3244
+ type: t
3245
+ }
3246
+ })).data;
3247
+ } catch (e) {
3248
+ return console.error("[/tags/read]", e), Promise.reject(e);
3249
+ }
3250
+ };
3251
+ getTypes = async () => {
3252
+ try {
3253
+ return (await this.props.axiosApi.post("/tags/types", { authentication: this.authentication })).data;
3254
+ } catch (e) {
3255
+ return console.error("[/tags/types]", e), Promise.reject(e);
3256
+ }
3257
+ };
3258
+ getAdminConfiguration = async () => {
3259
+ try {
3260
+ return (await this.props.axiosApi.post("/tags/adminConfiguration", { authentication: this.authentication })).data;
3261
+ } catch (e) {
3262
+ return console.error("[/tags/adminConfiguration]", e), Promise.reject(e);
3263
+ }
3264
+ };
3265
+ addTag = async (e, t) => {
3266
+ try {
3267
+ return (await this.props.axiosApi.post("/tags/add", {
3268
+ authentication: t ? {
3269
+ ...this.authentication,
3270
+ url: t
3271
+ } : this.authentication,
3272
+ tag: e
3273
+ })).data;
3274
+ } catch (e) {
3275
+ return console.error("[/tags/add]", e), Promise.reject(e);
3276
+ }
3277
+ };
3278
+ updateTag = async (e) => {
3279
+ try {
3280
+ return (await this.props.axiosApi.post("/tags/update", {
3281
+ authentication: this.authentication,
3282
+ tag: e
3283
+ })).data;
3284
+ } catch (e) {
3285
+ return console.error("[/tags/update]", e), Promise.reject(e);
3286
+ }
3287
+ };
3288
+ deleteTags = async (e) => {
3289
+ try {
3290
+ return (await this.props.axiosApi.post("/tags/delete", {
3291
+ authentication: this.authentication,
3292
+ tag: e
3293
+ })).data;
3294
+ } catch (e) {
3295
+ return console.error("[/tags/delete]", e), Promise.reject(e);
3296
+ }
3297
+ };
3298
+ changeStatus = async (e) => {
3299
+ try {
3300
+ return (await this.props.axiosApi.post("/tags/changeStatus", {
3301
+ authentication: this.authentication,
3302
+ tag: e
3303
+ })).data;
3304
+ } catch (e) {
3305
+ return console.error("[/tags/changeStatus]", e), Promise.reject(e);
3306
+ }
3307
+ };
3308
+ }, q = class {
3309
+ props;
3310
+ authentication;
3311
+ publications;
3312
+ profileServices;
3313
+ dashboard;
3314
+ sites;
3315
+ auth;
3316
+ constructor(e) {
3317
+ this.props = e, this.authentication = e.authentication, this.publications = new g(e), this.profileServices = new h(e), this.dashboard = new m(e), this.sites = new _(e), this.auth = new p(e);
3318
+ }
3319
+ getDefaultPublication = () => this.publications.getDefaultPublication();
3320
+ getProfile = () => this.profileServices.getProfile();
3321
+ getCountNotifications = async () => await this.dashboard.countNotifications();
3322
+ getNotifications = async () => await this.dashboard.getNotifications();
3323
+ getSitesAndPublications = async () => {
3324
+ try {
3325
+ let [e, t, n] = await Promise.all([
3326
+ this.sites.getSites(),
3327
+ this.publications.getPublications(),
3328
+ this.auth.getModulesAvailable(),
3329
+ this.auth.getPermissions()
3330
+ ]);
3331
+ return {
3332
+ sites: e.sites.map((e) => ({
3333
+ title: e.title,
3334
+ publications: t.publications.filter((t) => t.site === e.name)
3335
+ })).filter((e) => e.publications.length > 0),
3336
+ modules: n.modules
3337
+ };
3338
+ } catch (e) {
3339
+ return console.error(e), {
3340
+ sites: [],
3341
+ modules: []
3342
+ };
3343
+ }
3344
+ };
3345
+ };
3346
+ //#endregion
3347
+ export { _ as A, u as B, T as C, x as D, S as E, s as F, t as G, d as H, o as I, n as K, a as L, h as M, m as N, b as O, p as P, i as R, E as S, C as T, f as U, c as V, e as W, j as _, U as a, O as b, B as c, L as d, I as f, M as g, N as h, W as i, g as j, v as k, z as l, P as m, K as n, H as o, F as p, r as q, G as r, V as s, q as t, R as u, A as v, w, D as x, k as y, l as z };
3348
+
3349
+ //# sourceMappingURL=services-BqEo-2mI.js.map