@beam3_dev/api_module 0.0.278 → 0.0.280
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/wb3Api.js +505 -490
- package/dist/wb3Api.js.map +1 -1
- package/dist/wb3Api.umd.cjs +7 -7
- package/dist/wb3Api.umd.cjs.map +1 -1
- package/package.json +1 -1
package/dist/wb3Api.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { v4 as K } from "uuid";
|
|
2
2
|
import { DateTime as O } from "luxon";
|
|
3
|
-
import { requirejs as $, widget as
|
|
3
|
+
import { requirejs as $, widget as A } from "@widget-lab/3ddashboard-utils";
|
|
4
4
|
function B() {
|
|
5
5
|
return K();
|
|
6
6
|
}
|
|
@@ -34,10 +34,10 @@ const W = {
|
|
|
34
34
|
b3Edit8: "#616161",
|
|
35
35
|
b3Edit9: "#795548"
|
|
36
36
|
};
|
|
37
|
-
async function
|
|
38
|
-
const
|
|
37
|
+
async function ye(e, t = void 0, n = void 0) {
|
|
38
|
+
const s = parseInt(e);
|
|
39
39
|
await fetch(
|
|
40
|
-
"https://apicarto.ign.fr/api/codes-postaux/communes/" +
|
|
40
|
+
"https://apicarto.ign.fr/api/codes-postaux/communes/" + s,
|
|
41
41
|
{
|
|
42
42
|
method: "GET",
|
|
43
43
|
headers: {
|
|
@@ -47,10 +47,10 @@ async function _e(e, t = void 0, s = void 0) {
|
|
|
47
47
|
).then((i) => i.json()).then((i) => {
|
|
48
48
|
t && t(i);
|
|
49
49
|
}).catch((i) => {
|
|
50
|
-
|
|
50
|
+
n && n(i), console.error("Erreur : " + i);
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
|
-
async function Se(e, t = void 0,
|
|
53
|
+
async function Se(e, t = void 0, n = void 0) {
|
|
54
54
|
e = encodeURIComponent(e), await fetch(
|
|
55
55
|
"https://api-adresse.data.gouv.fr/search/?q=" + e + "&limit=15",
|
|
56
56
|
{
|
|
@@ -59,19 +59,19 @@ async function Se(e, t = void 0, s = void 0) {
|
|
|
59
59
|
Accept: "application/json"
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
).then((
|
|
63
|
-
t && t(
|
|
64
|
-
}).catch((
|
|
65
|
-
|
|
62
|
+
).then((s) => s.json()).then((s) => {
|
|
63
|
+
t && t(s);
|
|
64
|
+
}).catch((s) => {
|
|
65
|
+
n && n(s), console.error("Erreur : " + s);
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
68
|
async function we(e, t = W) {
|
|
69
|
-
let
|
|
70
|
-
const
|
|
69
|
+
let n = O.now().year;
|
|
70
|
+
const s = e, i = [], r = (a) => {
|
|
71
71
|
for (let c in a)
|
|
72
72
|
i.push({ date: c, comment: a[c] });
|
|
73
73
|
};
|
|
74
|
-
for (let a =
|
|
74
|
+
for (let a = n; a <= n + 1; a++)
|
|
75
75
|
await fetch(
|
|
76
76
|
"https://calendrier.api.gouv.fr/jours-feries/metropole/" + a + ".json",
|
|
77
77
|
{
|
|
@@ -84,9 +84,9 @@ async function we(e, t = W) {
|
|
|
84
84
|
r(c);
|
|
85
85
|
}).catch((c) => console.error("Erreur : " + c));
|
|
86
86
|
return (() => {
|
|
87
|
-
const a =
|
|
87
|
+
const a = s.length === 0 ? {
|
|
88
88
|
events: []
|
|
89
|
-
} :
|
|
89
|
+
} : s;
|
|
90
90
|
for (let c of i)
|
|
91
91
|
a.events.findIndex(
|
|
92
92
|
(p) => p.start === O.fromISO(c.date).toISODate() && p.name === "Férié : " + c.comment
|
|
@@ -100,26 +100,26 @@ async function we(e, t = W) {
|
|
|
100
100
|
return a;
|
|
101
101
|
})();
|
|
102
102
|
}
|
|
103
|
-
function X(e, t,
|
|
104
|
-
const { credentials:
|
|
103
|
+
function X(e, t, n) {
|
|
104
|
+
const { credentials: s, myArray: i, chunk: r, fn_to_call: o } = e, a = [];
|
|
105
105
|
for (let c = 0; c < i.length; c += r) {
|
|
106
106
|
const d = i.slice(c, c + r);
|
|
107
107
|
a.push(d);
|
|
108
108
|
}
|
|
109
|
-
|
|
110
|
-
{ credentials:
|
|
109
|
+
q(
|
|
110
|
+
{ credentials: s, chunks: a, initLoop: 0, fn: o },
|
|
111
111
|
(c) => {
|
|
112
112
|
t && t(c);
|
|
113
113
|
},
|
|
114
114
|
(c) => {
|
|
115
|
-
|
|
115
|
+
n && n(c);
|
|
116
116
|
}
|
|
117
117
|
);
|
|
118
118
|
}
|
|
119
|
-
function
|
|
120
|
-
const { credentials:
|
|
119
|
+
function q(e, t, n) {
|
|
120
|
+
const { credentials: s, chunks: i, initLoop: r, fn: o } = e, a = (c) => {
|
|
121
121
|
o(
|
|
122
|
-
|
|
122
|
+
s,
|
|
123
123
|
i[c],
|
|
124
124
|
() => {
|
|
125
125
|
c++, c < i.length && a(c);
|
|
@@ -128,97 +128,111 @@ function V(e, t, s) {
|
|
|
128
128
|
t && t(d);
|
|
129
129
|
},
|
|
130
130
|
(d) => {
|
|
131
|
-
|
|
131
|
+
n && n(d);
|
|
132
132
|
}
|
|
133
133
|
);
|
|
134
134
|
};
|
|
135
135
|
a(r);
|
|
136
136
|
}
|
|
137
|
-
async function Ce(e, t,
|
|
138
|
-
const
|
|
139
|
-
return
|
|
137
|
+
async function Ce(e, t, n = !0) {
|
|
138
|
+
const s = e.events.findIndex((i) => i.uuid === t.uuid);
|
|
139
|
+
return s === -1 ? e.events.push(t) : n ? e.events[s] = t : e.events.splice(s, 1), e.length > 0 && e.sort((i, r) => i.start - r.start), e;
|
|
140
140
|
}
|
|
141
141
|
function m(e, t) {
|
|
142
|
-
$(["DS/WAFData/WAFData"], (
|
|
143
|
-
|
|
142
|
+
$(["DS/WAFData/WAFData"], (n) => {
|
|
143
|
+
n.authenticatedRequest(e, t);
|
|
144
144
|
});
|
|
145
145
|
}
|
|
146
|
-
function Te(e, t,
|
|
147
|
-
$(["DS/DataDragAndDrop/DataDragAndDrop"], (
|
|
148
|
-
|
|
146
|
+
function Te(e, t, n) {
|
|
147
|
+
$(["DS/DataDragAndDrop/DataDragAndDrop"], (s) => {
|
|
148
|
+
s.draggable(e, {
|
|
149
149
|
data: t,
|
|
150
|
-
start:
|
|
150
|
+
start: n
|
|
151
151
|
});
|
|
152
152
|
});
|
|
153
153
|
}
|
|
154
154
|
function be(e, t = void 0) {
|
|
155
|
-
$(["DS/TagNavigatorProxy/TagNavigatorProxy"], (
|
|
156
|
-
let
|
|
157
|
-
|
|
158
|
-
widgetId:
|
|
155
|
+
$(["DS/TagNavigatorProxy/TagNavigatorProxy"], (n) => {
|
|
156
|
+
let s;
|
|
157
|
+
s === void 0 && (s = n.createProxy({
|
|
158
|
+
widgetId: A.id,
|
|
159
159
|
filteringMode: "WithFilteringServices"
|
|
160
|
-
}), t !== void 0 &&
|
|
160
|
+
}), t !== void 0 && s.addEvent("onFilterSubjectsChange", t)), s.setSubjectsTags(e);
|
|
161
161
|
});
|
|
162
162
|
}
|
|
163
163
|
function Oe(e, t) {
|
|
164
|
-
$(["DS/DataDragAndDrop/DataDragAndDrop"], (
|
|
165
|
-
|
|
164
|
+
$(["DS/DataDragAndDrop/DataDragAndDrop"], (n) => {
|
|
165
|
+
n.droppable(e, {
|
|
166
166
|
drop: t
|
|
167
167
|
});
|
|
168
168
|
});
|
|
169
169
|
}
|
|
170
|
-
async function $e(e, t = void 0,
|
|
170
|
+
async function $e(e, t = void 0, n = void 0) {
|
|
171
171
|
await $(
|
|
172
172
|
["DS/i3DXCompassServices/i3DXCompassServices"],
|
|
173
|
-
(
|
|
174
|
-
(!e || e === "") && (e =
|
|
175
|
-
|
|
173
|
+
(s) => {
|
|
174
|
+
(!e || e === "") && (e = A.getValue("PlatFormInstanceId")), (!e || e === "") && (e = void 0), t && t(
|
|
175
|
+
s.getPlatformServices({
|
|
176
176
|
platformId: e,
|
|
177
177
|
onComplete: t,
|
|
178
|
-
onFailure:
|
|
178
|
+
onFailure: n
|
|
179
179
|
})
|
|
180
180
|
);
|
|
181
181
|
}
|
|
182
182
|
);
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function V() {
|
|
185
185
|
let e = {};
|
|
186
186
|
return $(["DS/PlatformAPI/PlatformAPI"], (t) => {
|
|
187
|
-
const
|
|
187
|
+
const n = t.getTenant(), s = t.getUser(), i = t.getAllApplicationConfigurations(), r = t.getApplicationConfiguration(
|
|
188
188
|
"com.3ds.wp.passport.cors"
|
|
189
189
|
);
|
|
190
190
|
e = {
|
|
191
|
-
tenant:
|
|
192
|
-
user:
|
|
191
|
+
tenant: n,
|
|
192
|
+
user: s,
|
|
193
193
|
appsConfiguration: i,
|
|
194
194
|
appConf: r
|
|
195
195
|
};
|
|
196
196
|
}), console.log("%cRETOUR API :", "color:blue", e), e;
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function Ne(e, t = void 0, n = void 0) {
|
|
199
|
+
if (e.tenant) {
|
|
200
|
+
const s = `https://${e.tenant}-eu1.iam.3dexperience.3ds.com/api/authenticated/user/me?xrequestedwith=xmlhttprequest`;
|
|
201
|
+
m(s, {
|
|
202
|
+
onComplete(i) {
|
|
203
|
+
const r = typeof i == "string" ? JSON.parse(i) : i;
|
|
204
|
+
r && "fields" in r ? t && t(r.fields) : n && n("_getMe return not find properties fields");
|
|
205
|
+
},
|
|
206
|
+
onFailure(i) {
|
|
207
|
+
n && n("_getMe return error", i);
|
|
208
|
+
}
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
function v(e, t = void 0, n = void 0) {
|
|
199
213
|
if (e.tenant) {
|
|
200
|
-
const
|
|
201
|
-
m(
|
|
214
|
+
const s = `https://${e.tenant}-eu1-apps.3dexperience.3ds.com/enovia/resources/AppsMngt/api/v1/services?tenant=${e.tenant}&cors=true&xrequestedwith=xmlhttprequest`;
|
|
215
|
+
m(s, {
|
|
202
216
|
onComplete(i) {
|
|
203
217
|
const r = typeof i == "string" ? JSON.parse(i) : i;
|
|
204
218
|
if (r && "platforms" in r) {
|
|
205
219
|
const o = r.platforms.find(
|
|
206
220
|
(a) => a.id === e.tenant.toUpperCase()
|
|
207
221
|
);
|
|
208
|
-
t && o ? t(o) :
|
|
222
|
+
t && o ? t(o) : n && n("_getServiceUrl return listServiceUrl = undefined");
|
|
209
223
|
} else
|
|
210
|
-
|
|
224
|
+
n && n("_getServiceUrl return oResponse = undefined");
|
|
211
225
|
},
|
|
212
226
|
onFailure(i) {
|
|
213
|
-
|
|
227
|
+
n && n(i);
|
|
214
228
|
}
|
|
215
229
|
});
|
|
216
230
|
}
|
|
217
231
|
}
|
|
218
|
-
function
|
|
232
|
+
function Ie(e, t = void 0, n = void 0) {
|
|
219
233
|
if (e.tenant) {
|
|
220
|
-
const
|
|
221
|
-
m(
|
|
234
|
+
const s = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dpassport&platformId=${e.tenant}`;
|
|
235
|
+
m(s, {
|
|
222
236
|
onComplete(i) {
|
|
223
237
|
const r = JSON.parse(i);
|
|
224
238
|
if (console.log("serviceId=3dpassport", r), Array.isArray(r) && r.length > 0) {
|
|
@@ -227,18 +241,18 @@ function Ne(e, t = void 0, s = void 0) {
|
|
|
227
241
|
}
|
|
228
242
|
},
|
|
229
243
|
onFailure(i) {
|
|
230
|
-
|
|
244
|
+
n && n(i);
|
|
231
245
|
}
|
|
232
246
|
});
|
|
233
247
|
}
|
|
234
248
|
}
|
|
235
|
-
function
|
|
236
|
-
const
|
|
249
|
+
function Re(e, t, n) {
|
|
250
|
+
const s = {
|
|
237
251
|
base: `${e.space}`,
|
|
238
252
|
uri: "/resources/AppsMngt/api/custom/applications",
|
|
239
253
|
option: `?filter=${e.tenant}`
|
|
240
254
|
// facultatif
|
|
241
|
-
}, i = `${
|
|
255
|
+
}, i = `${s.base}${s.uri}${s.option}`;
|
|
242
256
|
m(i, {
|
|
243
257
|
method: "GET",
|
|
244
258
|
headers: {
|
|
@@ -254,33 +268,33 @@ function Ie(e, t, s) {
|
|
|
254
268
|
},
|
|
255
269
|
onFailure(r, o) {
|
|
256
270
|
const a = r;
|
|
257
|
-
a.msg = o.errormsg, a.errCode = o.errorcode,
|
|
271
|
+
a.msg = o.errormsg, a.errCode = o.errorcode, n && n(a);
|
|
258
272
|
}
|
|
259
273
|
});
|
|
260
274
|
}
|
|
261
|
-
function
|
|
262
|
-
let
|
|
263
|
-
m(
|
|
275
|
+
function Ue(e, t = void 0, n = void 0) {
|
|
276
|
+
let s = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&limit=-1`;
|
|
277
|
+
m(s, {
|
|
264
278
|
onComplete(i, r, o) {
|
|
265
279
|
const a = JSON.parse(i);
|
|
266
280
|
console.log("_AppMngt_get_users => ", a), t && t(a);
|
|
267
281
|
},
|
|
268
282
|
onFailure(i, r) {
|
|
269
283
|
const o = i;
|
|
270
|
-
o.msg = r.errormsg, o.errCode = r.errorcode,
|
|
284
|
+
o.msg = r.errormsg, o.errCode = r.errorcode, n && n(o);
|
|
271
285
|
}
|
|
272
286
|
});
|
|
273
287
|
}
|
|
274
|
-
function
|
|
288
|
+
function Fe(e, t, n = void 0, s = void 0) {
|
|
275
289
|
let i = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&id=${t}`;
|
|
276
290
|
m(i, {
|
|
277
291
|
onComplete(r, o, a) {
|
|
278
292
|
const c = JSON.parse(r);
|
|
279
|
-
|
|
293
|
+
n && n(c);
|
|
280
294
|
},
|
|
281
295
|
onFailure(r, o) {
|
|
282
296
|
const a = r;
|
|
283
|
-
a.msg = o.errormsg, a.errCode = o.errorcode,
|
|
297
|
+
a.msg = o.errormsg, a.errCode = o.errorcode, s && s(a);
|
|
284
298
|
}
|
|
285
299
|
});
|
|
286
300
|
}
|
|
@@ -288,7 +302,7 @@ const F = {
|
|
|
288
302
|
"Content-Type": "application/json",
|
|
289
303
|
Accept: "application/json,text/javascript,*/*"
|
|
290
304
|
};
|
|
291
|
-
function
|
|
305
|
+
function ke(e, t, n = void 0, s = void 0) {
|
|
292
306
|
const { space: i, currentUser: r } = e, a = `${i}${{
|
|
293
307
|
URIUGr: "/3drdfpersist/resources/v1/usersgroup"
|
|
294
308
|
}.URIUGr}`, c = {
|
|
@@ -308,16 +322,16 @@ function Fe(e, t, s = void 0, n = void 0) {
|
|
|
308
322
|
headers: F,
|
|
309
323
|
data: JSON.stringify(c),
|
|
310
324
|
onComplete(d) {
|
|
311
|
-
|
|
325
|
+
n && n(JSON.parse(d));
|
|
312
326
|
},
|
|
313
327
|
onFailure(d, p) {
|
|
314
328
|
console.log(d);
|
|
315
329
|
const u = d;
|
|
316
|
-
u.msg = p.errormsg, u.errCode = p.errorcode, console.log("❌ sendDirectMessage => ", u),
|
|
330
|
+
u.msg = p.errormsg, u.errCode = p.errorcode, console.log("❌ sendDirectMessage => ", u), s && s(u);
|
|
317
331
|
}
|
|
318
332
|
});
|
|
319
333
|
}
|
|
320
|
-
function
|
|
334
|
+
function je(e, t, n = void 0, s = void 0) {
|
|
321
335
|
const { space: i, tenant: r } = e, o = i, a = `/3drdfpersist/v1/resources/${t}`, c = `?$mask=dsaccess:Mask.GroupUI.Properties&tenant=dstenant:${r}`, d = `${o}${a}${c}`;
|
|
322
336
|
m(d, {
|
|
323
337
|
opts: {
|
|
@@ -328,16 +342,16 @@ function ke(e, t, s = void 0, n = void 0) {
|
|
|
328
342
|
}
|
|
329
343
|
},
|
|
330
344
|
onComplete(f) {
|
|
331
|
-
|
|
345
|
+
n && n(JSON.parse(f));
|
|
332
346
|
},
|
|
333
347
|
onFailure(f, l) {
|
|
334
348
|
const g = f;
|
|
335
|
-
g.msg = l.errormsg, g.errCode = l.errorcode,
|
|
349
|
+
g.msg = l.errormsg, g.errCode = l.errorcode, s && s(g);
|
|
336
350
|
}
|
|
337
351
|
});
|
|
338
352
|
}
|
|
339
|
-
function Y(e, t = void 0,
|
|
340
|
-
const { space:
|
|
353
|
+
function Y(e, t = void 0, n = void 0) {
|
|
354
|
+
const { space: s, tenant: i } = e, r = s, o = "/3drdfpersist/resources/v1/option-sets/dsusergroup:ListOfGroupResponsibilities/options", a = `?tenant=dstenant:${i}`, c = {
|
|
341
355
|
method: "GET",
|
|
342
356
|
Accept: "application/json,*/*,test/javascript"
|
|
343
357
|
}, d = `${r}${o}${a}`;
|
|
@@ -348,12 +362,12 @@ function Y(e, t = void 0, s = void 0) {
|
|
|
348
362
|
},
|
|
349
363
|
onFailure(p, u) {
|
|
350
364
|
const f = p;
|
|
351
|
-
f.msg = u.errormsg, f.errCode = u.errorcode,
|
|
365
|
+
f.msg = u.errormsg, f.errCode = u.errorcode, n && n(f);
|
|
352
366
|
}
|
|
353
367
|
});
|
|
354
368
|
}
|
|
355
|
-
function
|
|
356
|
-
const { space:
|
|
369
|
+
function xe(e, t = void 0, n = void 0) {
|
|
370
|
+
const { space: s, currentUser: i } = e, a = `${s}/3drdfpersist/resources/v1/usersgroup?select=uri,title,description,owner,members,pending_members,creation_date,modification_date,visibility`, d = { method: "GET", headers: {
|
|
357
371
|
"Content-Type": "application/json",
|
|
358
372
|
Accept: "application/json,text/javascript,*/*"
|
|
359
373
|
} };
|
|
@@ -363,20 +377,20 @@ function je(e, t = void 0, s = void 0) {
|
|
|
363
377
|
onComplete(p) {
|
|
364
378
|
const u = JSON.parse(p), f = {}, l = u.groups.filter((g) => g.uri.startsWith("uuid:"));
|
|
365
379
|
if (i && Object.keys(i).length > 0) {
|
|
366
|
-
const g = l.filter((
|
|
367
|
-
f.iam =
|
|
380
|
+
const g = l.filter((y) => y.owner === i.email), h = l.filter((y) => y.members.includes(i.email)), _ = g.concat(h);
|
|
381
|
+
f.iam = _, f.UG = l, f.iamMember = h, Y(
|
|
368
382
|
e,
|
|
369
|
-
(
|
|
370
|
-
f.rules =
|
|
383
|
+
(y) => {
|
|
384
|
+
f.rules = y, t && t(f);
|
|
371
385
|
},
|
|
372
|
-
(
|
|
373
|
-
|
|
386
|
+
(y) => {
|
|
387
|
+
n && n(y);
|
|
374
388
|
}
|
|
375
389
|
);
|
|
376
390
|
}
|
|
377
391
|
},
|
|
378
392
|
onFailure(p) {
|
|
379
|
-
|
|
393
|
+
n && n(p);
|
|
380
394
|
}
|
|
381
395
|
});
|
|
382
396
|
} catch (p) {
|
|
@@ -384,12 +398,12 @@ function je(e, t = void 0, s = void 0) {
|
|
|
384
398
|
}
|
|
385
399
|
}
|
|
386
400
|
function Ae(e, t) {
|
|
387
|
-
const { space:
|
|
401
|
+
const { space: n } = e, i = `${n}/3drdfpersist/resources/v1/usersgroup/${t}`;
|
|
388
402
|
m(i, {
|
|
389
403
|
method: "DELETE"
|
|
390
404
|
});
|
|
391
405
|
}
|
|
392
|
-
function
|
|
406
|
+
function ve(e, t, n, s = void 0, i = void 0) {
|
|
393
407
|
const { space: r, tenant: o } = e, a = {
|
|
394
408
|
URITI: "/3drdfpersist/resources/v1/template-instances",
|
|
395
409
|
URIUGr: "/3drdfpersist/resources/v1/usersgroup",
|
|
@@ -398,36 +412,36 @@ function De(e, t, s, n = void 0, i = void 0) {
|
|
|
398
412
|
nexURImem: "/members",
|
|
399
413
|
OPTsTI: "?$mask=dsaccess:Mask.GroupUI.Properties",
|
|
400
414
|
OPTsTenant: `tenant=dstenant:${o}`
|
|
401
|
-
}, c =
|
|
415
|
+
}, c = n, d = `${r}${a.URIUGr}/${t}`, p = JSON.stringify(c);
|
|
402
416
|
m(d, {
|
|
403
417
|
headers: F,
|
|
404
418
|
method: "PATCH",
|
|
405
419
|
data: p,
|
|
406
420
|
type: "json",
|
|
407
421
|
onComplete(u) {
|
|
408
|
-
|
|
422
|
+
s && s(u);
|
|
409
423
|
},
|
|
410
424
|
onFailure(u) {
|
|
411
425
|
i && i(u);
|
|
412
426
|
}
|
|
413
427
|
});
|
|
414
428
|
}
|
|
415
|
-
function
|
|
429
|
+
function De(e, t, n, s = void 0, i = void 0) {
|
|
416
430
|
const { space: r } = e, a = `${r}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
|
|
417
431
|
m(a, {
|
|
418
432
|
method: "PATCH",
|
|
419
433
|
headers: F,
|
|
420
|
-
data: JSON.stringify(
|
|
434
|
+
data: JSON.stringify(n),
|
|
421
435
|
type: "json",
|
|
422
436
|
onComplete(d) {
|
|
423
|
-
|
|
437
|
+
s && s(d);
|
|
424
438
|
},
|
|
425
439
|
onFailure(d) {
|
|
426
440
|
i && i(d);
|
|
427
441
|
}
|
|
428
442
|
});
|
|
429
443
|
}
|
|
430
|
-
function
|
|
444
|
+
function Pe(e, t, n = void 0, s = void 0) {
|
|
431
445
|
const { space: i } = e, o = `${i}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
|
|
432
446
|
m(o, {
|
|
433
447
|
opts: {
|
|
@@ -438,22 +452,22 @@ function xe(e, t, s = void 0, n = void 0) {
|
|
|
438
452
|
}
|
|
439
453
|
},
|
|
440
454
|
onComplete(d) {
|
|
441
|
-
|
|
455
|
+
n && n(JSON.parse(d));
|
|
442
456
|
},
|
|
443
457
|
onFailure(d) {
|
|
444
|
-
|
|
458
|
+
s && s(d);
|
|
445
459
|
}
|
|
446
460
|
});
|
|
447
461
|
}
|
|
448
|
-
async function H(e, t,
|
|
462
|
+
async function H(e, t, n) {
|
|
449
463
|
if (e.space) {
|
|
450
|
-
const
|
|
451
|
-
m(
|
|
464
|
+
const s = `${e.space}/resources/v1/application/CSRF`;
|
|
465
|
+
m(s, {
|
|
452
466
|
onComplete(i) {
|
|
453
467
|
i = JSON.parse(i), t && t(i.csrf);
|
|
454
468
|
},
|
|
455
469
|
onFailure(i, r, o) {
|
|
456
|
-
|
|
470
|
+
n && n({ error: i, headers: r, xhr: o });
|
|
457
471
|
}
|
|
458
472
|
});
|
|
459
473
|
}
|
|
@@ -462,19 +476,19 @@ var I = {};
|
|
|
462
476
|
function z(e, t) {
|
|
463
477
|
return Object.prototype.hasOwnProperty.call(e, t);
|
|
464
478
|
}
|
|
465
|
-
var Q = function(e, t,
|
|
466
|
-
t = t || "&",
|
|
479
|
+
var Q = function(e, t, n, s) {
|
|
480
|
+
t = t || "&", n = n || "=";
|
|
467
481
|
var i = {};
|
|
468
482
|
if (typeof e != "string" || e.length === 0)
|
|
469
483
|
return i;
|
|
470
484
|
var r = /\+/g;
|
|
471
485
|
e = e.split(t);
|
|
472
486
|
var o = 1e3;
|
|
473
|
-
|
|
487
|
+
s && typeof s.maxKeys == "number" && (o = s.maxKeys);
|
|
474
488
|
var a = e.length;
|
|
475
489
|
o > 0 && a > o && (a = o);
|
|
476
490
|
for (var c = 0; c < a; ++c) {
|
|
477
|
-
var d = e[c].replace(r, "%20"), p = d.indexOf(
|
|
491
|
+
var d = e[c].replace(r, "%20"), p = d.indexOf(n), u, f, l, g;
|
|
478
492
|
p >= 0 ? (u = d.substr(0, p), f = d.substr(p + 1)) : (u = d, f = ""), l = decodeURIComponent(u), g = decodeURIComponent(f), z(i, l) ? Array.isArray(i[l]) ? i[l].push(g) : i[l] = [i[l], g] : i[l] = g;
|
|
479
493
|
}
|
|
480
494
|
return i;
|
|
@@ -489,17 +503,17 @@ var Q = function(e, t, s, n) {
|
|
|
489
503
|
default:
|
|
490
504
|
return "";
|
|
491
505
|
}
|
|
492
|
-
}, Z = function(e, t,
|
|
493
|
-
return t = t || "&",
|
|
494
|
-
var r = encodeURIComponent(N(i)) +
|
|
506
|
+
}, Z = function(e, t, n, s) {
|
|
507
|
+
return t = t || "&", n = n || "=", e === null && (e = void 0), typeof e == "object" ? Object.keys(e).map(function(i) {
|
|
508
|
+
var r = encodeURIComponent(N(i)) + n;
|
|
495
509
|
return Array.isArray(e[i]) ? e[i].map(function(o) {
|
|
496
510
|
return r + encodeURIComponent(N(o));
|
|
497
511
|
}).join(t) : r + encodeURIComponent(N(e[i]));
|
|
498
|
-
}).filter(Boolean).join(t) :
|
|
512
|
+
}).filter(Boolean).join(t) : s ? encodeURIComponent(N(s)) + n + encodeURIComponent(N(e)) : "";
|
|
499
513
|
};
|
|
500
514
|
I.decode = I.parse = Q;
|
|
501
515
|
I.encode = I.stringify = Z;
|
|
502
|
-
async function
|
|
516
|
+
async function D(e, t = void 0, n = void 0, s = void 0) {
|
|
503
517
|
const i = e.space;
|
|
504
518
|
if (t === void 0) {
|
|
505
519
|
console.log("Le paramètre docid est obligatoire");
|
|
@@ -509,14 +523,14 @@ async function x(e, t = void 0, s = void 0, n = void 0) {
|
|
|
509
523
|
m(r, {
|
|
510
524
|
onComplete(o, a, c) {
|
|
511
525
|
const d = JSON.parse(o);
|
|
512
|
-
|
|
526
|
+
n && n(d);
|
|
513
527
|
},
|
|
514
528
|
onFailure(o) {
|
|
515
|
-
|
|
529
|
+
s && s(o);
|
|
516
530
|
}
|
|
517
531
|
});
|
|
518
532
|
}
|
|
519
|
-
async function
|
|
533
|
+
async function Le(e, t = void 0, n = void 0, s = void 0) {
|
|
520
534
|
const i = e.space;
|
|
521
535
|
if (t === void 0) {
|
|
522
536
|
console.log("Le paramètre docids est obligatoire");
|
|
@@ -533,46 +547,46 @@ async function Pe(e, t = void 0, s = void 0, n = void 0) {
|
|
|
533
547
|
data: o,
|
|
534
548
|
onComplete(a, c, d) {
|
|
535
549
|
const p = JSON.parse(a);
|
|
536
|
-
|
|
550
|
+
n && n(p);
|
|
537
551
|
},
|
|
538
552
|
onFailure(a) {
|
|
539
|
-
|
|
553
|
+
s && s(a);
|
|
540
554
|
}
|
|
541
555
|
});
|
|
542
556
|
}
|
|
543
|
-
function R(e, t = void 0,
|
|
557
|
+
function R(e, t = void 0, n = void 0) {
|
|
544
558
|
if (e.objID && e.objID !== "") {
|
|
545
|
-
let
|
|
546
|
-
m(
|
|
559
|
+
let s = `${e.space}/resources/v1/modeler/documents/${e.objID}`;
|
|
560
|
+
m(s, {
|
|
547
561
|
onComplete(i, r, o) {
|
|
548
562
|
const a = JSON.parse(i);
|
|
549
563
|
e.success = !0, e.token = a?.csrf?.value, e.datas = a?.data[0], t && t(e);
|
|
550
564
|
},
|
|
551
565
|
onFailure(i) {
|
|
552
|
-
|
|
566
|
+
n && n(i);
|
|
553
567
|
}
|
|
554
568
|
});
|
|
555
569
|
} else
|
|
556
570
|
b(
|
|
557
571
|
e,
|
|
558
|
-
(
|
|
559
|
-
console.log("_3DSpace_get_csrf / _3DSpace_csrf",
|
|
572
|
+
(s) => {
|
|
573
|
+
console.log("_3DSpace_get_csrf / _3DSpace_csrf", s), t && t(s);
|
|
560
574
|
},
|
|
561
|
-
(
|
|
562
|
-
|
|
575
|
+
(s) => {
|
|
576
|
+
n && n(s);
|
|
563
577
|
}
|
|
564
578
|
);
|
|
565
579
|
}
|
|
566
|
-
function b(e, t = void 0,
|
|
580
|
+
function b(e, t = void 0, n = void 0) {
|
|
567
581
|
if (e.space) {
|
|
568
|
-
const
|
|
569
|
-
m(
|
|
582
|
+
const s = e.space + "/resources/v1/application/CSRF";
|
|
583
|
+
m(s, {
|
|
570
584
|
onComplete(i, r, o) {
|
|
571
585
|
const a = JSON.parse(i);
|
|
572
586
|
t && t(a.csrf.value);
|
|
573
587
|
},
|
|
574
588
|
onFailure(i, r, o) {
|
|
575
|
-
|
|
589
|
+
n && n({
|
|
576
590
|
response: i,
|
|
577
591
|
headers: r,
|
|
578
592
|
xhr: o
|
|
@@ -580,14 +594,14 @@ function b(e, t = void 0, s = void 0) {
|
|
|
580
594
|
}
|
|
581
595
|
});
|
|
582
596
|
} else
|
|
583
|
-
|
|
597
|
+
n && n("ERROR : url du 3DSpace non défini.");
|
|
584
598
|
}
|
|
585
|
-
function k(e, t = void 0,
|
|
586
|
-
let
|
|
599
|
+
function k(e, t = void 0, n = void 0) {
|
|
600
|
+
let s = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
|
|
587
601
|
R(
|
|
588
602
|
e,
|
|
589
603
|
(i) => {
|
|
590
|
-
m(
|
|
604
|
+
m(s, {
|
|
591
605
|
method: "PUT",
|
|
592
606
|
headers: {
|
|
593
607
|
ENO_CSRF_TOKEN: e.token
|
|
@@ -597,28 +611,28 @@ function k(e, t = void 0, s = void 0) {
|
|
|
597
611
|
t && t(c, o);
|
|
598
612
|
},
|
|
599
613
|
onFailure(r, o) {
|
|
600
|
-
console.warn("☠️ error => ", r, o),
|
|
614
|
+
console.warn("☠️ error => ", r, o), n && n(r, o);
|
|
601
615
|
}
|
|
602
616
|
});
|
|
603
617
|
},
|
|
604
618
|
(i) => {
|
|
605
|
-
console.warn("_3DSpace_get_ticket / error => ", i),
|
|
619
|
+
console.warn("_3DSpace_get_ticket / error => ", i), n && n(i);
|
|
606
620
|
}
|
|
607
621
|
);
|
|
608
622
|
}
|
|
609
|
-
function
|
|
623
|
+
function Me(e, t, n = void 0, s = void 0, i = void 0) {
|
|
610
624
|
const r = `${e.space}/resources/v1/modeler/documents/${t}/files/DownloadTicket`;
|
|
611
|
-
|
|
625
|
+
n || (n = e.token), m(r, {
|
|
612
626
|
method: "PUT",
|
|
613
627
|
headers: {
|
|
614
|
-
ENO_CSRF_TOKEN:
|
|
628
|
+
ENO_CSRF_TOKEN: n
|
|
615
629
|
},
|
|
616
630
|
onComplete(o) {
|
|
617
631
|
let a = JSON.parse(o);
|
|
618
632
|
if (console.log("☠️ info => ", a), a.success === !0)
|
|
619
633
|
try {
|
|
620
634
|
const c = a.data[0].dataelements.ticketURL;
|
|
621
|
-
|
|
635
|
+
s && s(c);
|
|
622
636
|
} catch (c) {
|
|
623
637
|
i && i(c);
|
|
624
638
|
}
|
|
@@ -628,12 +642,12 @@ function Le(e, t, s = void 0, n = void 0, i = void 0) {
|
|
|
628
642
|
}
|
|
629
643
|
});
|
|
630
644
|
}
|
|
631
|
-
function P(e, t,
|
|
645
|
+
function P(e, t, n, s, i, r = void 0, o = void 0) {
|
|
632
646
|
const a = () => ee(
|
|
633
647
|
e,
|
|
634
648
|
t,
|
|
635
|
-
s,
|
|
636
649
|
n,
|
|
650
|
+
s,
|
|
637
651
|
i,
|
|
638
652
|
e.token,
|
|
639
653
|
r,
|
|
@@ -647,7 +661,7 @@ function P(e, t, s, n, i, r = void 0, o = void 0) {
|
|
|
647
661
|
}
|
|
648
662
|
);
|
|
649
663
|
}
|
|
650
|
-
function ee(e, t,
|
|
664
|
+
function ee(e, t, n, s, i, r, o = void 0, a = void 0) {
|
|
651
665
|
const c = e.space + `/resources/v1/modeler/documents/${t}/files/CheckinTicket`;
|
|
652
666
|
m(c, {
|
|
653
667
|
method: "PUT",
|
|
@@ -657,11 +671,11 @@ function ee(e, t, s, n, i, r, o = void 0, a = void 0) {
|
|
|
657
671
|
onComplete(d, p, u) {
|
|
658
672
|
const f = JSON.parse(d).csrf, l = JSON.parse(d).data[0].dataelements, g = new FormData();
|
|
659
673
|
let h;
|
|
660
|
-
|
|
674
|
+
s instanceof Blob ? h = s : h = new Blob([s], {
|
|
661
675
|
type: "text/plain"
|
|
662
676
|
}), g.append("__fcs__jobTicket", l.ticket), g.append("file_0", h, i);
|
|
663
|
-
const
|
|
664
|
-
|
|
677
|
+
const _ = {};
|
|
678
|
+
_.method = "POST", _.data = g, _.onComplete = function(y) {
|
|
665
679
|
let S = {
|
|
666
680
|
method: "PUT",
|
|
667
681
|
headers: {
|
|
@@ -676,7 +690,7 @@ function ee(e, t, s, n, i, r, o = void 0, a = void 0) {
|
|
|
676
690
|
{
|
|
677
691
|
dataelements: {
|
|
678
692
|
title: i,
|
|
679
|
-
receipt:
|
|
693
|
+
receipt: y
|
|
680
694
|
},
|
|
681
695
|
updateAction: "REVISE"
|
|
682
696
|
}
|
|
@@ -699,13 +713,13 @@ function ee(e, t, s, n, i, r, o = void 0, a = void 0) {
|
|
|
699
713
|
e.space + `/resources/v1/modeler/documents/?$include=versions&tenant=${w}&e6w-lang=en&e6w-timezone=-120&xrequestedwith=xmlhttprequest`,
|
|
700
714
|
S
|
|
701
715
|
);
|
|
702
|
-
},
|
|
703
|
-
a && a(
|
|
704
|
-
},
|
|
716
|
+
}, _.onFailure = function(y) {
|
|
717
|
+
a && a(y);
|
|
718
|
+
}, _.timeout = 0, m(l.ticketURL, _);
|
|
705
719
|
}
|
|
706
720
|
});
|
|
707
721
|
}
|
|
708
|
-
async function
|
|
722
|
+
async function Je(e, t, n = void 0, s = void 0) {
|
|
709
723
|
e.space, e.token, e.ctx;
|
|
710
724
|
const i = e?.description, r = e?.title;
|
|
711
725
|
let o = `${e.space}/resources/v1/modeler/documents/${t}`;
|
|
@@ -727,15 +741,15 @@ async function Me(e, t, s = void 0, n = void 0) {
|
|
|
727
741
|
data: a,
|
|
728
742
|
type: "json",
|
|
729
743
|
onComplete(c) {
|
|
730
|
-
|
|
744
|
+
n && n(c);
|
|
731
745
|
},
|
|
732
746
|
onFailure(c) {
|
|
733
|
-
|
|
747
|
+
s && s(c);
|
|
734
748
|
}
|
|
735
749
|
});
|
|
736
750
|
}
|
|
737
|
-
async function
|
|
738
|
-
e.space, e.token, e.ctx,
|
|
751
|
+
async function Ge(e, t, n, s = void 0, i = void 0) {
|
|
752
|
+
e.space, e.token, e.ctx, D(
|
|
739
753
|
e,
|
|
740
754
|
t,
|
|
741
755
|
(r) => {
|
|
@@ -744,10 +758,10 @@ async function Je(e, t, s, n = void 0, i = void 0) {
|
|
|
744
758
|
e,
|
|
745
759
|
t,
|
|
746
760
|
o,
|
|
747
|
-
|
|
761
|
+
n,
|
|
748
762
|
a,
|
|
749
763
|
(c) => {
|
|
750
|
-
|
|
764
|
+
s && s(c);
|
|
751
765
|
},
|
|
752
766
|
(c) => {
|
|
753
767
|
i && i(c);
|
|
@@ -759,7 +773,7 @@ async function Je(e, t, s, n = void 0, i = void 0) {
|
|
|
759
773
|
}
|
|
760
774
|
);
|
|
761
775
|
}
|
|
762
|
-
async function
|
|
776
|
+
async function Ee(e, t, n, s, i = void 0, r = void 0) {
|
|
763
777
|
te(
|
|
764
778
|
e,
|
|
765
779
|
(o) => {
|
|
@@ -767,13 +781,13 @@ async function Ge(e, t, s, n, i = void 0, r = void 0) {
|
|
|
767
781
|
ne(
|
|
768
782
|
a,
|
|
769
783
|
t,
|
|
770
|
-
|
|
784
|
+
n,
|
|
771
785
|
(c) => {
|
|
772
786
|
se(
|
|
773
787
|
e,
|
|
774
788
|
c,
|
|
775
|
-
s,
|
|
776
789
|
n,
|
|
790
|
+
s,
|
|
777
791
|
(d) => {
|
|
778
792
|
d?.data.length ? i && i(d) : r && r({
|
|
779
793
|
success: !1,
|
|
@@ -790,10 +804,10 @@ async function Ge(e, t, s, n, i = void 0, r = void 0) {
|
|
|
790
804
|
(o) => console.warn(o)
|
|
791
805
|
);
|
|
792
806
|
}
|
|
793
|
-
function te(e, t = void 0,
|
|
807
|
+
function te(e, t = void 0, n = void 0) {
|
|
794
808
|
if (e?.space && e.token && e.ctx) {
|
|
795
|
-
let
|
|
796
|
-
m(
|
|
809
|
+
let s = `${e.space}/resources/v1/modeler/documents/files/CheckinTicket`;
|
|
810
|
+
m(s, {
|
|
797
811
|
method: "PUT",
|
|
798
812
|
headers: {
|
|
799
813
|
ENO_CSRF_TOKEN: e.token,
|
|
@@ -809,31 +823,31 @@ function te(e, t = void 0, s = void 0) {
|
|
|
809
823
|
t && t(i);
|
|
810
824
|
},
|
|
811
825
|
onFailure(i) {
|
|
812
|
-
|
|
826
|
+
n && n(i);
|
|
813
827
|
}
|
|
814
828
|
});
|
|
815
829
|
} else
|
|
816
830
|
console.log("Error de credentials", e);
|
|
817
831
|
}
|
|
818
|
-
function ne(e, t,
|
|
832
|
+
function ne(e, t, n, s = void 0, i = void 0) {
|
|
819
833
|
let r = new FormData();
|
|
820
834
|
t instanceof Blob || (t = new Blob([t], {
|
|
821
835
|
type: "text/plain"
|
|
822
|
-
})), r.append("__fcs__jobTicket", e.dataelements.ticket), r.append("file_0", t,
|
|
836
|
+
})), r.append("__fcs__jobTicket", e.dataelements.ticket), r.append("file_0", t, n);
|
|
823
837
|
let o = e.dataelements.ticketURL;
|
|
824
838
|
m(o, {
|
|
825
839
|
method: "POST",
|
|
826
840
|
data: r,
|
|
827
841
|
onComplete(a) {
|
|
828
|
-
|
|
842
|
+
s && s(a.replace(/[\n\r]/g, ""));
|
|
829
843
|
},
|
|
830
844
|
onFailure(a) {
|
|
831
845
|
i && i(a);
|
|
832
846
|
}
|
|
833
847
|
});
|
|
834
848
|
}
|
|
835
|
-
function se(e, t,
|
|
836
|
-
console.log("relatedDocAndFile", { credentials: e, receipt: t, filename:
|
|
849
|
+
function se(e, t, n, s = void 0, i = void 0, r = void 0) {
|
|
850
|
+
console.log("relatedDocAndFile", { credentials: e, receipt: t, filename: n });
|
|
837
851
|
const o = (d) => d.indexOf(".") === -1 ? d : d.split(".").slice(0, -1).join(".");
|
|
838
852
|
let a = "temp_" + O.now().ts, c = e.space + "/resources/v1/modeler/documents/?e6w-lang=fr&e6w-timezone=-120&xrequestedwith=xmlhttprequest";
|
|
839
853
|
m(c, {
|
|
@@ -849,14 +863,14 @@ function se(e, t, s, n = void 0, i = void 0, r = void 0) {
|
|
|
849
863
|
{
|
|
850
864
|
type: "Document",
|
|
851
865
|
dataelements: {
|
|
852
|
-
title: o(
|
|
853
|
-
description:
|
|
866
|
+
title: o(n),
|
|
867
|
+
description: s
|
|
854
868
|
},
|
|
855
869
|
relateddata: {
|
|
856
870
|
files: [
|
|
857
871
|
{
|
|
858
872
|
dataelements: {
|
|
859
|
-
title:
|
|
873
|
+
title: n,
|
|
860
874
|
receipt: `${t}
|
|
861
875
|
`
|
|
862
876
|
}
|
|
@@ -879,7 +893,7 @@ function se(e, t, s, n = void 0, i = void 0, r = void 0) {
|
|
|
879
893
|
}
|
|
880
894
|
});
|
|
881
895
|
}
|
|
882
|
-
function U(e, t = void 0,
|
|
896
|
+
function U(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0, o = !1) {
|
|
883
897
|
const a = `${e.space}/resources/modeler/pno/person?current=true&select=preferredcredentials&select=collabspaces`;
|
|
884
898
|
m(a, {
|
|
885
899
|
method: "GET",
|
|
@@ -892,28 +906,28 @@ function U(e, t = void 0, s = void 0, n = void 0, i = void 0, r = void 0, o = !1
|
|
|
892
906
|
u = t;
|
|
893
907
|
let h = g.couples;
|
|
894
908
|
h = h.filter(
|
|
895
|
-
(
|
|
896
|
-
(w) => w.organization.pid ===
|
|
909
|
+
(_, y, S) => y === S.findIndex(
|
|
910
|
+
(w) => w.organization.pid === _.organization.pid && w.role.pid === _.role.pid
|
|
897
911
|
)
|
|
898
|
-
),
|
|
899
|
-
l || h.forEach((
|
|
900
|
-
if (
|
|
901
|
-
l =
|
|
902
|
-
else if (
|
|
912
|
+
), n && (Array.isArray(n) ? n.forEach((_) => {
|
|
913
|
+
l || h.forEach((y) => {
|
|
914
|
+
if (_ === y.role.name && s === y.organization.title)
|
|
915
|
+
l = _, f = s;
|
|
916
|
+
else if (_ === y.role.name) {
|
|
903
917
|
let S = h.filter(
|
|
904
|
-
(w) => w.role.name ===
|
|
918
|
+
(w) => w.role.name === _
|
|
905
919
|
);
|
|
906
920
|
S.length === 1 ? (l = S[0].role.name, f = S[0].organization.title) : r(S);
|
|
907
921
|
}
|
|
908
922
|
});
|
|
909
|
-
}) : h.forEach((
|
|
910
|
-
if (
|
|
911
|
-
l =
|
|
912
|
-
else if (
|
|
913
|
-
let
|
|
914
|
-
(S) => S.role.name ===
|
|
923
|
+
}) : h.forEach((_) => {
|
|
924
|
+
if (n === _.role.name && s === _.organization.title)
|
|
925
|
+
l = n, f = s;
|
|
926
|
+
else if (n === _.role.name) {
|
|
927
|
+
let y = h.filter(
|
|
928
|
+
(S) => S.role.name === n
|
|
915
929
|
);
|
|
916
|
-
|
|
930
|
+
y.length === 1 ? (l = y[0].role.name, f = y[0].organization.title) : r(y);
|
|
917
931
|
}
|
|
918
932
|
}));
|
|
919
933
|
}
|
|
@@ -928,29 +942,29 @@ function U(e, t = void 0, s = void 0, n = void 0, i = void 0, r = void 0, o = !1
|
|
|
928
942
|
}
|
|
929
943
|
});
|
|
930
944
|
}
|
|
931
|
-
async function L(e, t = void 0,
|
|
945
|
+
async function L(e, t = void 0, n = void 0) {
|
|
932
946
|
return (!e.objID || e.objID === "") && (console.warn(
|
|
933
947
|
"_3DSpace_download_doc() / Le paramètre objectId est obligatoire"
|
|
934
|
-
),
|
|
948
|
+
), n && n(
|
|
935
949
|
"_3DSpace_download_doc() / Le paramètre objectId est obligatoire"
|
|
936
950
|
)), (e.space === "" || !e.space) && (console.warn(
|
|
937
951
|
"_3DSpace_download_doc() / Le paramètre space est obligatoire"
|
|
938
|
-
),
|
|
952
|
+
), n && n("_3DSpace_download_doc() / Le paramètre space est obligatoire")), (e.token === "" || !e.token) && H(
|
|
939
953
|
e,
|
|
940
|
-
(
|
|
941
|
-
e.token =
|
|
954
|
+
(s) => {
|
|
955
|
+
e.token = s;
|
|
942
956
|
},
|
|
943
|
-
(
|
|
944
|
-
console.log("☠️ error => ",
|
|
957
|
+
(s) => {
|
|
958
|
+
console.log("☠️ error => ", s);
|
|
945
959
|
}
|
|
946
|
-
), new Promise((
|
|
960
|
+
), new Promise((s, i) => {
|
|
947
961
|
k(
|
|
948
962
|
e,
|
|
949
963
|
(r) => {
|
|
950
964
|
e?.returnType === "blob" ? (console.log("ticketURL blob", r), fetch(r).then((o) => o.blob()).then((o) => {
|
|
951
965
|
t && t(o);
|
|
952
966
|
}).catch((o) => {
|
|
953
|
-
|
|
967
|
+
n && n(o);
|
|
954
968
|
})) : m(r, {
|
|
955
969
|
onComplete(o) {
|
|
956
970
|
let a;
|
|
@@ -959,10 +973,10 @@ async function L(e, t = void 0, s = void 0) {
|
|
|
959
973
|
} catch {
|
|
960
974
|
a = o;
|
|
961
975
|
}
|
|
962
|
-
t && typeof t == "function" && t(a),
|
|
976
|
+
t && typeof t == "function" && t(a), s(a);
|
|
963
977
|
},
|
|
964
978
|
onFailure(o, a, c) {
|
|
965
|
-
|
|
979
|
+
n && (console.log("error http", o), n({
|
|
966
980
|
msg: JSON.parse(o),
|
|
967
981
|
headers: a,
|
|
968
982
|
xhr: c
|
|
@@ -975,26 +989,26 @@ async function L(e, t = void 0, s = void 0) {
|
|
|
975
989
|
});
|
|
976
990
|
},
|
|
977
991
|
(r) => {
|
|
978
|
-
|
|
992
|
+
n && n(r), console.log("*_3dspace_download_doc / error file URL *", r), i(r);
|
|
979
993
|
}
|
|
980
994
|
);
|
|
981
995
|
});
|
|
982
996
|
}
|
|
983
|
-
async function ie(e, t,
|
|
997
|
+
async function ie(e, t, n = void 0, s = void 0) {
|
|
984
998
|
typeof t < "u" && Array.isArray(t) && t?.length > 0 ? X({
|
|
985
999
|
credentials: e,
|
|
986
1000
|
myArray: t,
|
|
987
1001
|
chunk: 80,
|
|
988
1002
|
fn_to_call: ae
|
|
989
1003
|
}, (r) => {
|
|
990
|
-
|
|
1004
|
+
n && n(r);
|
|
991
1005
|
}) : (console.warn(
|
|
992
1006
|
"La liste d'objects dans la fonction _3DSpace_download_multidoc est vide ou non défini."
|
|
993
|
-
),
|
|
1007
|
+
), s && s(
|
|
994
1008
|
"La liste d'objects dans la fonction _3DSpace_download_multidoc est vide ou non défini."
|
|
995
1009
|
));
|
|
996
1010
|
}
|
|
997
|
-
function ae(e, t,
|
|
1011
|
+
function ae(e, t, n = void 0, s = void 0, i = void 0) {
|
|
998
1012
|
const r = [];
|
|
999
1013
|
t.forEach((c) => {
|
|
1000
1014
|
r.push({
|
|
@@ -1015,7 +1029,7 @@ function ae(e, t, s = void 0, n = void 0, i = void 0) {
|
|
|
1015
1029
|
type: "json",
|
|
1016
1030
|
onComplete(c) {
|
|
1017
1031
|
const d = c.data;
|
|
1018
|
-
c.success === !0 && (
|
|
1032
|
+
c.success === !0 && (n && n(), d.forEach((p) => {
|
|
1019
1033
|
try {
|
|
1020
1034
|
const u = p.dataelements.fileName, f = p.dataelements.ticketURL;
|
|
1021
1035
|
m(f, {
|
|
@@ -1026,7 +1040,7 @@ function ae(e, t, s = void 0, n = void 0, i = void 0) {
|
|
|
1026
1040
|
} catch {
|
|
1027
1041
|
h = l.blob();
|
|
1028
1042
|
}
|
|
1029
|
-
|
|
1043
|
+
s && s({
|
|
1030
1044
|
objectId: p.id,
|
|
1031
1045
|
headers: g,
|
|
1032
1046
|
fileName: u,
|
|
@@ -1047,7 +1061,7 @@ function ae(e, t, s = void 0, n = void 0, i = void 0) {
|
|
|
1047
1061
|
}
|
|
1048
1062
|
});
|
|
1049
1063
|
}
|
|
1050
|
-
function
|
|
1064
|
+
function Ke(e, t, n = void 0, s = void 0) {
|
|
1051
1065
|
return new Promise((i) => {
|
|
1052
1066
|
if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
|
|
1053
1067
|
const r = `${e.space}/resources/v1/modeler/dslc/maturity/getNextStates`;
|
|
@@ -1068,17 +1082,17 @@ function Ee(e, t, s = void 0, n = void 0) {
|
|
|
1068
1082
|
}),
|
|
1069
1083
|
type: "json",
|
|
1070
1084
|
onComplete(a) {
|
|
1071
|
-
|
|
1085
|
+
n && n(a);
|
|
1072
1086
|
},
|
|
1073
1087
|
onFailure(a) {
|
|
1074
|
-
|
|
1088
|
+
s && s(a);
|
|
1075
1089
|
}
|
|
1076
1090
|
};
|
|
1077
1091
|
m(r, o);
|
|
1078
1092
|
}
|
|
1079
1093
|
});
|
|
1080
1094
|
}
|
|
1081
|
-
function
|
|
1095
|
+
function Be(e, t, n, s = void 0, i = void 0) {
|
|
1082
1096
|
return new Promise((r) => {
|
|
1083
1097
|
if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
|
|
1084
1098
|
const o = `${e.space}/resources/v1/modeler/dslc/maturity/changeState`;
|
|
@@ -1094,13 +1108,13 @@ function Ke(e, t, s, n = void 0, i = void 0) {
|
|
|
1094
1108
|
data: [
|
|
1095
1109
|
{
|
|
1096
1110
|
id: t,
|
|
1097
|
-
nextState:
|
|
1111
|
+
nextState: n
|
|
1098
1112
|
}
|
|
1099
1113
|
]
|
|
1100
1114
|
}),
|
|
1101
1115
|
type: "json",
|
|
1102
1116
|
onComplete(c) {
|
|
1103
|
-
|
|
1117
|
+
s && s(c);
|
|
1104
1118
|
},
|
|
1105
1119
|
onFailure(c) {
|
|
1106
1120
|
i && i(c);
|
|
@@ -1110,7 +1124,7 @@ function Ke(e, t, s, n = void 0, i = void 0) {
|
|
|
1110
1124
|
}
|
|
1111
1125
|
});
|
|
1112
1126
|
}
|
|
1113
|
-
function
|
|
1127
|
+
function We(e, t, n = void 0, s = void 0) {
|
|
1114
1128
|
return new Promise((i) => {
|
|
1115
1129
|
if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
|
|
1116
1130
|
const r = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
|
|
@@ -1141,17 +1155,17 @@ function Be(e, t, s = void 0, n = void 0) {
|
|
|
1141
1155
|
}),
|
|
1142
1156
|
type: "json",
|
|
1143
1157
|
onComplete(a) {
|
|
1144
|
-
|
|
1158
|
+
n && n(a);
|
|
1145
1159
|
},
|
|
1146
1160
|
onFailure(a) {
|
|
1147
|
-
|
|
1161
|
+
s && s(a);
|
|
1148
1162
|
}
|
|
1149
1163
|
};
|
|
1150
1164
|
m(r, o);
|
|
1151
1165
|
}
|
|
1152
1166
|
});
|
|
1153
1167
|
}
|
|
1154
|
-
function
|
|
1168
|
+
function Xe(e, t, n = void 0, s = void 0) {
|
|
1155
1169
|
return new Promise((i) => {
|
|
1156
1170
|
if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
|
|
1157
1171
|
const r = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
|
|
@@ -1188,17 +1202,17 @@ function We(e, t, s = void 0, n = void 0) {
|
|
|
1188
1202
|
}),
|
|
1189
1203
|
type: "json",
|
|
1190
1204
|
onComplete(a) {
|
|
1191
|
-
|
|
1205
|
+
n && n(a);
|
|
1192
1206
|
},
|
|
1193
1207
|
onFailure(a) {
|
|
1194
|
-
|
|
1208
|
+
s && s(a);
|
|
1195
1209
|
}
|
|
1196
1210
|
};
|
|
1197
1211
|
m(r, o);
|
|
1198
1212
|
}
|
|
1199
1213
|
});
|
|
1200
1214
|
}
|
|
1201
|
-
function
|
|
1215
|
+
function qe(e, t, n, s = void 0, i = void 0) {
|
|
1202
1216
|
return new Promise((r) => {
|
|
1203
1217
|
if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
|
|
1204
1218
|
const o = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
|
|
@@ -1224,9 +1238,9 @@ function Xe(e, t, s, n = void 0, i = void 0) {
|
|
|
1224
1238
|
data: [
|
|
1225
1239
|
{
|
|
1226
1240
|
physicalid: t,
|
|
1227
|
-
proposedRevision:
|
|
1241
|
+
proposedRevision: n,
|
|
1228
1242
|
modifiedAttributes: {
|
|
1229
|
-
revision:
|
|
1243
|
+
revision: n
|
|
1230
1244
|
}
|
|
1231
1245
|
}
|
|
1232
1246
|
],
|
|
@@ -1235,7 +1249,7 @@ function Xe(e, t, s, n = void 0, i = void 0) {
|
|
|
1235
1249
|
}),
|
|
1236
1250
|
type: "json",
|
|
1237
1251
|
onComplete(c) {
|
|
1238
|
-
|
|
1252
|
+
s && s(c);
|
|
1239
1253
|
},
|
|
1240
1254
|
onFailure(c) {
|
|
1241
1255
|
i && i(c);
|
|
@@ -1245,13 +1259,13 @@ function Xe(e, t, s, n = void 0, i = void 0) {
|
|
|
1245
1259
|
}
|
|
1246
1260
|
});
|
|
1247
1261
|
}
|
|
1248
|
-
function Ve(e, t,
|
|
1262
|
+
function Ve(e, t, n, s, i = void 0, r = void 0) {
|
|
1249
1263
|
return new Promise((o) => {
|
|
1250
1264
|
const a = `${e.space}/resources/v1/modeler/dsbks/dsbks:Bookmark`;
|
|
1251
1265
|
let c = {
|
|
1252
1266
|
attributes: {
|
|
1253
|
-
title:
|
|
1254
|
-
description:
|
|
1267
|
+
title: n,
|
|
1268
|
+
description: s,
|
|
1255
1269
|
inheritedAccess: "no"
|
|
1256
1270
|
}
|
|
1257
1271
|
}, d = {
|
|
@@ -1278,7 +1292,7 @@ function Ve(e, t, s, n, i = void 0, r = void 0) {
|
|
|
1278
1292
|
m(a, p);
|
|
1279
1293
|
});
|
|
1280
1294
|
}
|
|
1281
|
-
function
|
|
1295
|
+
function Ye(e, t, n, s, i = void 0, r = void 0) {
|
|
1282
1296
|
return console.log("credentials", e), new Promise((o) => {
|
|
1283
1297
|
`${e.space}`, JSON.stringify({
|
|
1284
1298
|
csrf: {
|
|
@@ -1292,8 +1306,8 @@ function qe(e, t, s, n, i = void 0, r = void 0) {
|
|
|
1292
1306
|
relId: t,
|
|
1293
1307
|
id: t,
|
|
1294
1308
|
dataelements: {
|
|
1295
|
-
personList:
|
|
1296
|
-
eventsList:
|
|
1309
|
+
personList: n,
|
|
1310
|
+
eventsList: s
|
|
1297
1311
|
},
|
|
1298
1312
|
tenant: e.tenant
|
|
1299
1313
|
}
|
|
@@ -1302,12 +1316,12 @@ function qe(e, t, s, n, i = void 0, r = void 0) {
|
|
|
1302
1316
|
});
|
|
1303
1317
|
}
|
|
1304
1318
|
//!SECTION
|
|
1305
|
-
function
|
|
1306
|
-
const
|
|
1319
|
+
function He(e, t = void 0, n = void 0) {
|
|
1320
|
+
const s = {
|
|
1307
1321
|
base: `${e.space}`,
|
|
1308
1322
|
uri: "/resources/bps/cspaces",
|
|
1309
1323
|
optTenant: `tenant=${e.tenant}`
|
|
1310
|
-
}, i = `${
|
|
1324
|
+
}, i = `${s.base}${s.uri}?${s.optTenant}`;
|
|
1311
1325
|
m(i, {
|
|
1312
1326
|
method: "GET",
|
|
1313
1327
|
headers: {
|
|
@@ -1319,11 +1333,11 @@ function Ye(e, t = void 0, s = void 0) {
|
|
|
1319
1333
|
t && t(a, o);
|
|
1320
1334
|
},
|
|
1321
1335
|
onFailure(r, o, a) {
|
|
1322
|
-
|
|
1336
|
+
n && n({ response: r, headers: o, xhr: a });
|
|
1323
1337
|
}
|
|
1324
1338
|
});
|
|
1325
1339
|
}
|
|
1326
|
-
function
|
|
1340
|
+
function ze(e, t, n, s) {
|
|
1327
1341
|
k(
|
|
1328
1342
|
e.space,
|
|
1329
1343
|
t,
|
|
@@ -1331,42 +1345,42 @@ function He(e, t, s, n) {
|
|
|
1331
1345
|
m(i, {
|
|
1332
1346
|
header: { ENO_CSRF_TOKEN: e.token },
|
|
1333
1347
|
onComplete: (r) => {
|
|
1334
|
-
|
|
1348
|
+
n && n(r);
|
|
1335
1349
|
},
|
|
1336
1350
|
onFailure: (r) => {
|
|
1337
|
-
console.log("error http", r),
|
|
1351
|
+
console.log("error http", r), s && s(r);
|
|
1338
1352
|
}
|
|
1339
1353
|
});
|
|
1340
1354
|
}
|
|
1341
1355
|
);
|
|
1342
1356
|
}
|
|
1343
|
-
async function
|
|
1357
|
+
async function Qe(e, t, n = void 0, s = void 0) {
|
|
1344
1358
|
return new Promise((i) => {
|
|
1345
1359
|
k(e, t, (r) => {
|
|
1346
1360
|
m(r, {
|
|
1347
|
-
onComplete: (o, a, c) => (i(JSON.parse(o)),
|
|
1361
|
+
onComplete: (o, a, c) => (i(JSON.parse(o)), n && n(JSON.parse(o), a, c), i),
|
|
1348
1362
|
onFailure: (o, a, c) => {
|
|
1349
|
-
|
|
1363
|
+
s && s(o, a, c), console.log(o, a?.errormsg);
|
|
1350
1364
|
}
|
|
1351
1365
|
});
|
|
1352
1366
|
});
|
|
1353
1367
|
});
|
|
1354
1368
|
}
|
|
1355
|
-
function
|
|
1369
|
+
function Ze(e, t, n, s = void 0, i = void 0) {
|
|
1356
1370
|
const r = new Blob([JSON.stringify(t)], { type: "text/plain" });
|
|
1357
1371
|
R(
|
|
1358
1372
|
e,
|
|
1359
|
-
|
|
1373
|
+
n,
|
|
1360
1374
|
(o) => {
|
|
1361
1375
|
const a = o.data[0].relateddata.files[0].id, c = o.data[0].dataelements.secondaryTitle !== "" ? o.data[0].dataelements.secondaryTitle : o.data[0].dataelements.title;
|
|
1362
1376
|
P(
|
|
1363
1377
|
e,
|
|
1364
|
-
|
|
1378
|
+
n,
|
|
1365
1379
|
a,
|
|
1366
1380
|
r,
|
|
1367
1381
|
c,
|
|
1368
1382
|
(d) => {
|
|
1369
|
-
|
|
1383
|
+
s && s(d);
|
|
1370
1384
|
},
|
|
1371
1385
|
(d) => {
|
|
1372
1386
|
i && i(d);
|
|
@@ -1377,39 +1391,39 @@ function Qe(e, t, s, n = void 0, i = void 0) {
|
|
|
1377
1391
|
}
|
|
1378
1392
|
let M, J;
|
|
1379
1393
|
const j = [];
|
|
1380
|
-
async function
|
|
1394
|
+
async function et(e, t = void 0, n = void 0) {
|
|
1381
1395
|
e.objID && e.objID !== "" ? R(
|
|
1382
1396
|
e,
|
|
1383
|
-
(
|
|
1384
|
-
t && t(
|
|
1397
|
+
(s) => {
|
|
1398
|
+
t && t(s);
|
|
1385
1399
|
},
|
|
1386
|
-
(
|
|
1387
|
-
|
|
1400
|
+
(s) => {
|
|
1401
|
+
n && n(s);
|
|
1388
1402
|
}
|
|
1389
1403
|
) : (e.objID === null || e.objID === "") && b(
|
|
1390
1404
|
e,
|
|
1391
|
-
(
|
|
1392
|
-
t && t({ rep:
|
|
1405
|
+
(s) => {
|
|
1406
|
+
t && t({ rep: s, msg: "Pas d'objID, ou invalide" });
|
|
1393
1407
|
},
|
|
1394
|
-
(
|
|
1395
|
-
|
|
1408
|
+
(s) => {
|
|
1409
|
+
n && n({ msg: "Pas d'objID et erreur sur le Space", err: s });
|
|
1396
1410
|
}
|
|
1397
1411
|
);
|
|
1398
1412
|
}
|
|
1399
|
-
async function
|
|
1413
|
+
async function tt(e, t = void 0, n = void 0) {
|
|
1400
1414
|
console.log("getDatasByTenant (getDocuments)", e), await L(
|
|
1401
1415
|
e,
|
|
1402
|
-
(
|
|
1416
|
+
(s) => {
|
|
1403
1417
|
const i = {};
|
|
1404
|
-
i.obj =
|
|
1418
|
+
i.obj = s, console.log("getDatasByTenant (getDocuments) _datas", i), t && t?.(i);
|
|
1405
1419
|
},
|
|
1406
|
-
(
|
|
1407
|
-
|
|
1420
|
+
(s) => {
|
|
1421
|
+
n && n?.(s);
|
|
1408
1422
|
}
|
|
1409
1423
|
);
|
|
1410
1424
|
}
|
|
1411
|
-
function
|
|
1412
|
-
const
|
|
1425
|
+
function nt(e, t = void 0, n = void 0) {
|
|
1426
|
+
const s = [];
|
|
1413
1427
|
if (!e.objIds && !Array.isArray(e.objIds) && e.objIds.length === 0) {
|
|
1414
1428
|
console.warn("la liste est vide ou n'est pas un tableau");
|
|
1415
1429
|
return;
|
|
@@ -1419,21 +1433,21 @@ function tt(e, t = void 0, s = void 0) {
|
|
|
1419
1433
|
e,
|
|
1420
1434
|
i.objID,
|
|
1421
1435
|
(o) => {
|
|
1422
|
-
|
|
1436
|
+
s.push({ [i.name]: o }), i.name === "dbProjets" && (M = o.affaires.map((a) => a.objectID), oe(e, J)), r === e.objIds.length - 1 && (t && t(s), delete e.objIds, delete e.datas);
|
|
1423
1437
|
}
|
|
1424
1438
|
);
|
|
1425
1439
|
});
|
|
1426
1440
|
}
|
|
1427
|
-
function oe(e, t,
|
|
1441
|
+
function oe(e, t, n = void 0, s = void 0) {
|
|
1428
1442
|
ie(
|
|
1429
1443
|
e,
|
|
1430
1444
|
M,
|
|
1431
1445
|
(i) => {
|
|
1432
1446
|
const r = [...t];
|
|
1433
|
-
r.find((o) => o.objectID === i.objectId).data = i.data, J = r, j.push(i.data),
|
|
1447
|
+
r.find((o) => o.objectID === i.objectId).data = i.data, J = r, j.push(i.data), n && n(j);
|
|
1434
1448
|
},
|
|
1435
1449
|
(i) => {
|
|
1436
|
-
|
|
1450
|
+
s && (s(i), console.log(i));
|
|
1437
1451
|
}
|
|
1438
1452
|
);
|
|
1439
1453
|
}
|
|
@@ -1457,7 +1471,7 @@ const re = "FA35FB9B177A280065800EA0000F599C", ce = [
|
|
|
1457
1471
|
order_by: "desc",
|
|
1458
1472
|
tag: "testTag"
|
|
1459
1473
|
};
|
|
1460
|
-
function
|
|
1474
|
+
function st(e, t, n = void 0, s = void 0) {
|
|
1461
1475
|
const { space: i, tenant: r } = e, { objId: o, pred: a, tag: c } = t, d = {
|
|
1462
1476
|
uri: "/resources/6w/tags",
|
|
1463
1477
|
otpCTX: "SecurityContext=preferred",
|
|
@@ -1488,36 +1502,36 @@ function nt(e, t, s = void 0, n = void 0) {
|
|
|
1488
1502
|
JSON.parse(f);
|
|
1489
1503
|
const l = {};
|
|
1490
1504
|
setTimeout(() => {
|
|
1491
|
-
|
|
1505
|
+
D(
|
|
1492
1506
|
e,
|
|
1493
1507
|
o,
|
|
1494
1508
|
(g) => {
|
|
1495
|
-
const h = g.data[0].dataelements.title,
|
|
1496
|
-
l.name = h, l.ext =
|
|
1509
|
+
const h = g.data[0].dataelements.title, _ = g.data[0].dataelements.fileExtension !== void 0 ? g.data[0].dataelements.fileExtension : "", y = g.data[0].relateddata.ownerInfo[0].dataelements.name;
|
|
1510
|
+
l.name = h, l.ext = _, l.createBy = y, t.info = { ...l }, ue(
|
|
1497
1511
|
e,
|
|
1498
1512
|
t,
|
|
1499
1513
|
(S) => {
|
|
1500
|
-
|
|
1514
|
+
n && n(S);
|
|
1501
1515
|
},
|
|
1502
1516
|
(S) => {
|
|
1503
|
-
|
|
1517
|
+
s && s(S);
|
|
1504
1518
|
}
|
|
1505
1519
|
);
|
|
1506
1520
|
},
|
|
1507
1521
|
(g, h) => {
|
|
1508
|
-
const
|
|
1509
|
-
|
|
1522
|
+
const _ = g;
|
|
1523
|
+
_.msg = h.errormsg, _.errCode = h.errorcode, console.log("❌ sendDirectMessage => ", _), s && s(_);
|
|
1510
1524
|
}
|
|
1511
1525
|
);
|
|
1512
1526
|
}, 2e3);
|
|
1513
1527
|
},
|
|
1514
1528
|
onFailure(f, l) {
|
|
1515
1529
|
const g = f;
|
|
1516
|
-
g.msg = l.errormsg, g.errCode = l.errorcode, console.log("❌ sendDirectMessage => ", g),
|
|
1530
|
+
g.msg = l.errormsg, g.errCode = l.errorcode, console.log("❌ sendDirectMessage => ", g), s && s(g);
|
|
1517
1531
|
}
|
|
1518
1532
|
});
|
|
1519
1533
|
}
|
|
1520
|
-
function ue(e, t,
|
|
1534
|
+
function ue(e, t, n = void 0, s = void 0) {
|
|
1521
1535
|
console.log("obj ", t);
|
|
1522
1536
|
const i = t.info.name, r = {
|
|
1523
1537
|
baseUrl: `https://${e.tenant.toLowerCase()}-eu1-fedsearch.3dexperience.3ds.com`,
|
|
@@ -1592,15 +1606,15 @@ function ue(e, t, s = void 0, n = void 0) {
|
|
|
1592
1606
|
data: JSON.stringify(d),
|
|
1593
1607
|
onComplete(p) {
|
|
1594
1608
|
const u = JSON.parse(p);
|
|
1595
|
-
|
|
1609
|
+
n(u);
|
|
1596
1610
|
},
|
|
1597
1611
|
onFailure(p, u) {
|
|
1598
1612
|
const f = p;
|
|
1599
|
-
f.msg = u.errormsg, f.errCode = u.errorcode, console.log("❌ sendDirectMessage => ", f),
|
|
1613
|
+
f.msg = u.errormsg, f.errCode = u.errorcode, console.log("❌ sendDirectMessage => ", f), s && s(f), console.log("Erreur de recuperation d'id du doc et des tags", p);
|
|
1600
1614
|
}
|
|
1601
1615
|
});
|
|
1602
1616
|
}
|
|
1603
|
-
function
|
|
1617
|
+
function it(e, t, n = void 0, s = void 0) {
|
|
1604
1618
|
const { objId: i, pred: r, tag: o } = t, a = {
|
|
1605
1619
|
uri: "/resources/6w/tags",
|
|
1606
1620
|
otpCTX: "SecurityContext=preferred",
|
|
@@ -1628,15 +1642,15 @@ function st(e, t, s = void 0, n = void 0) {
|
|
|
1628
1642
|
Accept: "application/json,text/javascript,*/*"
|
|
1629
1643
|
},
|
|
1630
1644
|
onComplete(p) {
|
|
1631
|
-
|
|
1645
|
+
n && n(p);
|
|
1632
1646
|
},
|
|
1633
1647
|
onFailure(p, u) {
|
|
1634
1648
|
const f = p;
|
|
1635
|
-
f.msg = u.errormsg, f.errCode = u.errorcode, console.log("❌ sendDirectMessage => ", f),
|
|
1649
|
+
f.msg = u.errormsg, f.errCode = u.errorcode, console.log("❌ sendDirectMessage => ", f), s && s(f);
|
|
1636
1650
|
}
|
|
1637
1651
|
});
|
|
1638
1652
|
}
|
|
1639
|
-
function
|
|
1653
|
+
function at(e, t = "", n = void 0, s = void 0) {
|
|
1640
1654
|
const { space: i } = e;
|
|
1641
1655
|
if (t === "")
|
|
1642
1656
|
return;
|
|
@@ -1651,29 +1665,29 @@ function it(e, t = "", s = void 0, n = void 0) {
|
|
|
1651
1665
|
headers: o,
|
|
1652
1666
|
data: c,
|
|
1653
1667
|
onComplete(d) {
|
|
1654
|
-
|
|
1668
|
+
n && n(JSON.parse(d));
|
|
1655
1669
|
},
|
|
1656
1670
|
onFailure(d, p) {
|
|
1657
1671
|
const u = d;
|
|
1658
|
-
u.msg = p.error,
|
|
1672
|
+
u.msg = p.error, s && s(u);
|
|
1659
1673
|
}
|
|
1660
1674
|
});
|
|
1661
1675
|
}
|
|
1662
|
-
async function C(e, t = void 0,
|
|
1663
|
-
const
|
|
1664
|
-
return m(
|
|
1676
|
+
async function C(e, t = void 0, n = void 0) {
|
|
1677
|
+
const s = e._3DSwym + "/api/index/tk";
|
|
1678
|
+
return m(s, {
|
|
1665
1679
|
onComplete(i, r, o) {
|
|
1666
1680
|
const a = JSON.parse(i);
|
|
1667
1681
|
if (t)
|
|
1668
1682
|
return t(a), e.token = a?.result?.ServerToken;
|
|
1669
1683
|
},
|
|
1670
1684
|
onFailure(i) {
|
|
1671
|
-
|
|
1685
|
+
n && n(i);
|
|
1672
1686
|
}
|
|
1673
1687
|
});
|
|
1674
1688
|
}
|
|
1675
|
-
function
|
|
1676
|
-
const
|
|
1689
|
+
function ot(e, t = void 0, n = void 0) {
|
|
1690
|
+
const s = `${e._3DSwym}/api/exalead/whatsnew`, i = {
|
|
1677
1691
|
params: {
|
|
1678
1692
|
community_id: null,
|
|
1679
1693
|
hash_key: null,
|
|
@@ -1684,7 +1698,7 @@ function at(e, t = void 0, s = void 0) {
|
|
|
1684
1698
|
}
|
|
1685
1699
|
};
|
|
1686
1700
|
C(e, (r) => {
|
|
1687
|
-
m(
|
|
1701
|
+
m(s, {
|
|
1688
1702
|
method: "POST",
|
|
1689
1703
|
headers: {
|
|
1690
1704
|
"X-DS-SWYM-CSRFTOKEN": r.result.ServerToken,
|
|
@@ -1697,13 +1711,13 @@ function at(e, t = void 0, s = void 0) {
|
|
|
1697
1711
|
t && t(o, a);
|
|
1698
1712
|
},
|
|
1699
1713
|
onFailure(o, a) {
|
|
1700
|
-
|
|
1714
|
+
n && n(o, a);
|
|
1701
1715
|
}
|
|
1702
1716
|
});
|
|
1703
1717
|
});
|
|
1704
1718
|
}
|
|
1705
|
-
function
|
|
1706
|
-
const
|
|
1719
|
+
function rt(e, t = void 0, n = void 0) {
|
|
1720
|
+
const s = `${e._3DSwym}/api/Recommendation/getpeoplefamiliartocurrentuser`, i = {
|
|
1707
1721
|
params: {
|
|
1708
1722
|
idsToFilterArr: [],
|
|
1709
1723
|
mode: "offline",
|
|
@@ -1713,7 +1727,7 @@ function ot(e, t = void 0, s = void 0) {
|
|
|
1713
1727
|
}
|
|
1714
1728
|
};
|
|
1715
1729
|
C(e, (r) => {
|
|
1716
|
-
m(
|
|
1730
|
+
m(s, {
|
|
1717
1731
|
method: "POST",
|
|
1718
1732
|
headers: {
|
|
1719
1733
|
"X-DS-SWYM-CSRFTOKEN": r.result.ServerToken,
|
|
@@ -1727,18 +1741,18 @@ function ot(e, t = void 0, s = void 0) {
|
|
|
1727
1741
|
t && t(c, o);
|
|
1728
1742
|
},
|
|
1729
1743
|
onFailure(o, a) {
|
|
1730
|
-
|
|
1744
|
+
n && n(o, a);
|
|
1731
1745
|
}
|
|
1732
1746
|
});
|
|
1733
1747
|
});
|
|
1734
1748
|
}
|
|
1735
|
-
function
|
|
1736
|
-
const
|
|
1749
|
+
function ct(e, t = void 0, n = void 0) {
|
|
1750
|
+
const s = {
|
|
1737
1751
|
base: e._3DSwym,
|
|
1738
1752
|
uri: "/api/community/listmycommunities",
|
|
1739
1753
|
limit: `/limit/${e.limit ? e.limit : 500}`,
|
|
1740
1754
|
page: `/page/${e.page ? e.page : "1"}`
|
|
1741
|
-
}, i = `${
|
|
1755
|
+
}, i = `${s.base}${s.uri}${s.limit}${s.page}`, r = [];
|
|
1742
1756
|
C(e, (o) => {
|
|
1743
1757
|
m(i, {
|
|
1744
1758
|
method: "GET",
|
|
@@ -1763,18 +1777,18 @@ function rt(e, t = void 0, s = void 0) {
|
|
|
1763
1777
|
(h) => {
|
|
1764
1778
|
f++, g.members = h, r.push(g), f === u.length && t && t(r);
|
|
1765
1779
|
},
|
|
1766
|
-
(h) =>
|
|
1780
|
+
(h) => n(h)
|
|
1767
1781
|
);
|
|
1768
1782
|
});
|
|
1769
1783
|
},
|
|
1770
1784
|
onFailure(a, c) {
|
|
1771
1785
|
const d = a;
|
|
1772
|
-
d.status = c.status, d.response = c.errormsg,
|
|
1786
|
+
d.status = c.status, d.response = c.errormsg, n && n(d);
|
|
1773
1787
|
}
|
|
1774
1788
|
});
|
|
1775
1789
|
});
|
|
1776
1790
|
}
|
|
1777
|
-
function pe(e, t,
|
|
1791
|
+
function pe(e, t, n, s) {
|
|
1778
1792
|
const i = `${e._3DSwym}/api/community/listmembers`, r = {
|
|
1779
1793
|
params: {
|
|
1780
1794
|
page: e.page ? e.page : 1,
|
|
@@ -1793,18 +1807,18 @@ function pe(e, t, s, n) {
|
|
|
1793
1807
|
data: JSON.stringify(r),
|
|
1794
1808
|
type: "json",
|
|
1795
1809
|
onComplete(a, c, d) {
|
|
1796
|
-
|
|
1810
|
+
n && n(a);
|
|
1797
1811
|
},
|
|
1798
1812
|
onFailure(a, c) {
|
|
1799
1813
|
const d = a;
|
|
1800
|
-
d.status = c.status, d.response = c.errormsg,
|
|
1814
|
+
d.status = c.status, d.response = c.errormsg, s && s(d);
|
|
1801
1815
|
}
|
|
1802
1816
|
});
|
|
1803
1817
|
});
|
|
1804
1818
|
}
|
|
1805
|
-
function
|
|
1806
|
-
const
|
|
1807
|
-
e.commu_id || (e.commu_id =
|
|
1819
|
+
function dt(e, t = void 0, n = void 0) {
|
|
1820
|
+
const s = "YXdA5x4DSUKtlAi2wmnyTA";
|
|
1821
|
+
e.commu_id || (e.commu_id = s);
|
|
1808
1822
|
const i = `${e._3DSwym}/api/v2/communities/${e.commu_id}/ideas/statuses`;
|
|
1809
1823
|
C(e, (r) => {
|
|
1810
1824
|
m(i, {
|
|
@@ -1820,12 +1834,12 @@ function ct(e, t = void 0, s = void 0) {
|
|
|
1820
1834
|
},
|
|
1821
1835
|
onFailure(o, a) {
|
|
1822
1836
|
const c = o;
|
|
1823
|
-
c.status = a.status, c.response = a.errormsg,
|
|
1837
|
+
c.status = a.status, c.response = a.errormsg, n && n(c);
|
|
1824
1838
|
}
|
|
1825
1839
|
});
|
|
1826
1840
|
});
|
|
1827
1841
|
}
|
|
1828
|
-
function
|
|
1842
|
+
function ut(e, t, n = void 0, s = void 0) {
|
|
1829
1843
|
const { listAllContacts: i, currentUser: r, _3DSwym: o } = e;
|
|
1830
1844
|
console.log("__listAllContacts", i.hits);
|
|
1831
1845
|
const a = `${o}/api/directmessages`, c = {
|
|
@@ -1840,10 +1854,10 @@ function dt(e, t, s = void 0, n = void 0) {
|
|
|
1840
1854
|
le(
|
|
1841
1855
|
c.users,
|
|
1842
1856
|
(u) => {
|
|
1843
|
-
u !== void 0 && (d.id_msg = u.id, p = !0,
|
|
1857
|
+
u !== void 0 && (d.id_msg = u.id, p = !0, x(e, d));
|
|
1844
1858
|
},
|
|
1845
1859
|
(u) => {
|
|
1846
|
-
p = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", u),
|
|
1860
|
+
p = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", u), s && s(u), d.id_msg = "";
|
|
1847
1861
|
}
|
|
1848
1862
|
), p === !1 && setTimeout(() => {
|
|
1849
1863
|
p === !1 && C(e, (u) => {
|
|
@@ -1858,17 +1872,17 @@ function dt(e, t, s = void 0, n = void 0) {
|
|
|
1858
1872
|
type: "json",
|
|
1859
1873
|
onComplete(f, l, g) {
|
|
1860
1874
|
const h = f;
|
|
1861
|
-
h.reponse = JSON.parse(g.response), h.status = g.status,
|
|
1875
|
+
h.reponse = JSON.parse(g.response), h.status = g.status, n && n(h), d.id_msg = h.result.id, x(e, d);
|
|
1862
1876
|
},
|
|
1863
1877
|
onFailure(f, l, g) {
|
|
1864
1878
|
const h = f;
|
|
1865
|
-
h.msg = l.errormsg, h.status = l.status,
|
|
1879
|
+
h.msg = l.errormsg, h.status = l.status, s && s(h);
|
|
1866
1880
|
}
|
|
1867
1881
|
});
|
|
1868
1882
|
});
|
|
1869
1883
|
}, 500);
|
|
1870
1884
|
}
|
|
1871
|
-
function le(e, t,
|
|
1885
|
+
function le(e, t, n, s) {
|
|
1872
1886
|
const i = `${e._3DSwym}/api/directmessages/lite?with_favorites=false`;
|
|
1873
1887
|
C(e, (r) => {
|
|
1874
1888
|
m(i, {
|
|
@@ -1888,16 +1902,16 @@ function le(e, t, s, n) {
|
|
|
1888
1902
|
f.push(l.login);
|
|
1889
1903
|
}), JSON.stringify(f) === JSON.stringify(d);
|
|
1890
1904
|
});
|
|
1891
|
-
|
|
1905
|
+
n && p !== void 0 ? n(p) : (s || p === void 0) && s(p);
|
|
1892
1906
|
},
|
|
1893
1907
|
onFailure(o) {
|
|
1894
1908
|
const a = o;
|
|
1895
|
-
a.msg = headers.errormsg, a.errCode = headers.errorcode, console.log("❌ sendDirectMessageLite => ", a),
|
|
1909
|
+
a.msg = headers.errormsg, a.errCode = headers.errorcode, console.log("❌ sendDirectMessageLite => ", a), s && s(a);
|
|
1896
1910
|
}
|
|
1897
1911
|
});
|
|
1898
1912
|
});
|
|
1899
1913
|
}
|
|
1900
|
-
function
|
|
1914
|
+
function x(e, t, n = void 0, s = void 0) {
|
|
1901
1915
|
const i = {
|
|
1902
1916
|
base: e._3DSwym,
|
|
1903
1917
|
uri: "/api/community",
|
|
@@ -1925,23 +1939,23 @@ function A(e, t, s = void 0, n = void 0) {
|
|
|
1925
1939
|
type: "json",
|
|
1926
1940
|
onComplete(c, d, p) {
|
|
1927
1941
|
const u = c;
|
|
1928
|
-
u.status = p.status, u.response = JSON.parse(p.response), console.log("✅ _3dSwym_sendDirectMessageData => ", u),
|
|
1942
|
+
u.status = p.status, u.response = JSON.parse(p.response), console.log("✅ _3dSwym_sendDirectMessageData => ", u), n && n(u);
|
|
1929
1943
|
},
|
|
1930
1944
|
onFailure(c, d) {
|
|
1931
1945
|
const p = c;
|
|
1932
|
-
p.msg = d.errormsg, p.errCode = d.errorcode, console.log("❌ sendDirectMessage => ", p),
|
|
1946
|
+
p.msg = d.errormsg, p.errCode = d.errorcode, console.log("❌ sendDirectMessage => ", p), s && s(p);
|
|
1933
1947
|
}
|
|
1934
1948
|
});
|
|
1935
1949
|
});
|
|
1936
1950
|
}
|
|
1937
1951
|
function fe(e) {
|
|
1938
|
-
const t = (/* @__PURE__ */ new Date()).toLocaleDateString(),
|
|
1952
|
+
const t = (/* @__PURE__ */ new Date()).toLocaleDateString(), n = (/* @__PURE__ */ new Date()).toLocaleTimeString();
|
|
1939
1953
|
return `<p>${e} </p>
|
|
1940
1954
|
<br/>
|
|
1941
1955
|
<hr/>
|
|
1942
|
-
<p><u>envoyer :</u>Le <b>${t} à ${
|
|
1956
|
+
<p><u>envoyer :</u>Le <b>${t} à ${n}</b></p>`;
|
|
1943
1957
|
}
|
|
1944
|
-
function
|
|
1958
|
+
function pt(e, t, n = void 0, s = void 0) {
|
|
1945
1959
|
const i = `${e.space}/api/idea/add`, r = e.swymCommunities.find(
|
|
1946
1960
|
(c) => c.id === t.community_id
|
|
1947
1961
|
), o = e.swymCommunities.find(
|
|
@@ -1971,20 +1985,20 @@ function ut(e, t, s = void 0, n = void 0) {
|
|
|
1971
1985
|
type: "json",
|
|
1972
1986
|
onComplete(p, u, f) {
|
|
1973
1987
|
const l = JSON.parse(p);
|
|
1974
|
-
l.status = f.status, l.response = f.response,
|
|
1988
|
+
l.status = f.status, l.response = f.response, n && n(l);
|
|
1975
1989
|
},
|
|
1976
1990
|
onFailure(p, u, f) {
|
|
1977
1991
|
const l = p;
|
|
1978
|
-
l.status = u.status, l.response = u.errormsg,
|
|
1992
|
+
l.status = u.status, l.response = u.errormsg, s && s(l);
|
|
1979
1993
|
}
|
|
1980
1994
|
});
|
|
1981
1995
|
});
|
|
1982
1996
|
}
|
|
1983
|
-
function
|
|
1984
|
-
const
|
|
1997
|
+
function lt(e, t = void 0, n = void 0) {
|
|
1998
|
+
const s = { base: e.space, uri: "/api/idea/add" };
|
|
1985
1999
|
if (!Array.isArray(e.swymCommunities)) {
|
|
1986
2000
|
const o = "☠️ swymCommunities doit être un tableau d'objets de communautés";
|
|
1987
|
-
throw new Error(`Erreur sur cette requête : ${
|
|
2001
|
+
throw new Error(`Erreur sur cette requête : ${s.base + s.uri}`, {
|
|
1988
2002
|
cause: o
|
|
1989
2003
|
});
|
|
1990
2004
|
}
|
|
@@ -1992,19 +2006,19 @@ function pt(e, t = void 0, s = void 0) {
|
|
|
1992
2006
|
(o) => o.id === e.community_id
|
|
1993
2007
|
) === -1) {
|
|
1994
2008
|
const o = "la communauté n'existe pas dans la liste des communautés du Swym";
|
|
1995
|
-
throw new Error(`Erreur sur cette requête : ${
|
|
2009
|
+
throw new Error(`Erreur sur cette requête : ${s.base + s.uri}`, {
|
|
1996
2010
|
cause: o
|
|
1997
2011
|
});
|
|
1998
2012
|
}
|
|
1999
2013
|
if (e.community_id && e.community_id === "") {
|
|
2000
2014
|
const o = "☠️ community_id doit être un String qui contient l'id de la communauté dans laquelle on souhaite publier l'idée.";
|
|
2001
|
-
throw new Error(`Erreur sur cette requête : ${
|
|
2015
|
+
throw new Error(`Erreur sur cette requête : ${s.base + s.uri}`, {
|
|
2002
2016
|
cause: o
|
|
2003
2017
|
});
|
|
2004
2018
|
}
|
|
2005
2019
|
if (e.title && e.title === "") {
|
|
2006
2020
|
const o = "☠️ title doit être un String.";
|
|
2007
|
-
throw new Error(`Erreur sur cette requête : ${
|
|
2021
|
+
throw new Error(`Erreur sur cette requête : ${s.base + s.uri}`, {
|
|
2008
2022
|
cause: o
|
|
2009
2023
|
});
|
|
2010
2024
|
}
|
|
@@ -2023,7 +2037,7 @@ function pt(e, t = void 0, s = void 0) {
|
|
|
2023
2037
|
C(e, (o) => {
|
|
2024
2038
|
if (!o)
|
|
2025
2039
|
throw new Error(
|
|
2026
|
-
`☠️ token n'est pas disponible pour cette requête : ${
|
|
2040
|
+
`☠️ token n'est pas disponible pour cette requête : ${s.base + s.uri}`,
|
|
2027
2041
|
{
|
|
2028
2042
|
cause: o
|
|
2029
2043
|
}
|
|
@@ -2042,18 +2056,18 @@ function pt(e, t = void 0, s = void 0) {
|
|
|
2042
2056
|
},
|
|
2043
2057
|
onFailure(c, d, p) {
|
|
2044
2058
|
const u = JSON.parse(d), f = JSON.parse(c), l = new Error(
|
|
2045
|
-
`Erreur sur cette requête : ${
|
|
2059
|
+
`Erreur sur cette requête : ${s.base + s.uri}`,
|
|
2046
2060
|
{
|
|
2047
2061
|
cause: { head: u, rep: f }
|
|
2048
2062
|
}
|
|
2049
2063
|
);
|
|
2050
|
-
|
|
2064
|
+
n && n(l);
|
|
2051
2065
|
}
|
|
2052
2066
|
};
|
|
2053
|
-
m(
|
|
2067
|
+
m(s.base + s.uri, a);
|
|
2054
2068
|
});
|
|
2055
2069
|
}
|
|
2056
|
-
function
|
|
2070
|
+
function ft(e, t, n = void 0, s = void 0) {
|
|
2057
2071
|
const i = `${e.space}/api/idea/delete`, r = {
|
|
2058
2072
|
params: {
|
|
2059
2073
|
community_id: t.community_id,
|
|
@@ -2071,17 +2085,17 @@ function lt(e, t, s = void 0, n = void 0) {
|
|
|
2071
2085
|
data: JSON.stringify(r),
|
|
2072
2086
|
type: "json",
|
|
2073
2087
|
onComplete(a, c, d) {
|
|
2074
|
-
|
|
2088
|
+
n && n(a);
|
|
2075
2089
|
},
|
|
2076
2090
|
onFailure(a, c, d) {
|
|
2077
2091
|
const p = a;
|
|
2078
|
-
p.status = c.status, p.response = c.errormsg,
|
|
2092
|
+
p.status = c.status, p.response = c.errormsg, s && s(p);
|
|
2079
2093
|
}
|
|
2080
2094
|
});
|
|
2081
2095
|
});
|
|
2082
2096
|
}
|
|
2083
|
-
function
|
|
2084
|
-
const { _3DSwym:
|
|
2097
|
+
function mt(e, t = void 0, n = void 0) {
|
|
2098
|
+
const { _3DSwym: s, _3DSwym_token: i } = e, r = `${s}/api/idea/get`;
|
|
2085
2099
|
if (e.idPost === "") {
|
|
2086
2100
|
const a = "☠️ idPost est vide, vous devez renseigner un identifiant de post";
|
|
2087
2101
|
throw new Error(`Erreur sur cette requête : ${r}`, { cause: a });
|
|
@@ -2104,13 +2118,13 @@ function ft(e, t = void 0, s = void 0) {
|
|
|
2104
2118
|
},
|
|
2105
2119
|
onFailure(a) {
|
|
2106
2120
|
const c = a;
|
|
2107
|
-
c.status = headers.status, c.response = headers.errormsg,
|
|
2121
|
+
c.status = headers.status, c.response = headers.errormsg, n && n(c);
|
|
2108
2122
|
}
|
|
2109
2123
|
});
|
|
2110
2124
|
}
|
|
2111
|
-
function
|
|
2125
|
+
function gt(e, t, n) {
|
|
2112
2126
|
const {
|
|
2113
|
-
_3DSwym:
|
|
2127
|
+
_3DSwym: s,
|
|
2114
2128
|
_3DSwym_token: i,
|
|
2115
2129
|
idPost: r,
|
|
2116
2130
|
title: o,
|
|
@@ -2119,7 +2133,7 @@ function mt(e, t, s) {
|
|
|
2119
2133
|
status_id: d,
|
|
2120
2134
|
message: p
|
|
2121
2135
|
} = e, u = {
|
|
2122
|
-
base: `${
|
|
2136
|
+
base: `${s}`,
|
|
2123
2137
|
uri: "/api/idea/edit"
|
|
2124
2138
|
}, l = {
|
|
2125
2139
|
method: "POST",
|
|
@@ -2141,19 +2155,19 @@ function mt(e, t, s) {
|
|
|
2141
2155
|
}
|
|
2142
2156
|
}),
|
|
2143
2157
|
type: "json",
|
|
2144
|
-
onComplete(g, h,
|
|
2145
|
-
const
|
|
2158
|
+
onComplete(g, h, _) {
|
|
2159
|
+
const y = {
|
|
2146
2160
|
response: typeof g == "string" ? JSON.parse(g) : g
|
|
2147
2161
|
};
|
|
2148
|
-
|
|
2162
|
+
y.status = _.status, t && t(y);
|
|
2149
2163
|
},
|
|
2150
2164
|
onFailure(g) {
|
|
2151
|
-
|
|
2165
|
+
n && n(g);
|
|
2152
2166
|
}
|
|
2153
2167
|
};
|
|
2154
2168
|
m(u.base + u.uri, l);
|
|
2155
2169
|
}
|
|
2156
|
-
function
|
|
2170
|
+
function ht(e, t, n = void 0, s = void 0) {
|
|
2157
2171
|
const { _3DSwym: i } = e;
|
|
2158
2172
|
let { community_id: r, limit: o, page: a, search: c } = t;
|
|
2159
2173
|
const d = [], p = 1;
|
|
@@ -2167,8 +2181,8 @@ function gt(e, t, s = void 0, n = void 0) {
|
|
|
2167
2181
|
};
|
|
2168
2182
|
let g = `${i}${l.uri}${l.comId}${l.limit}${l.page}`;
|
|
2169
2183
|
C(e, (h) => {
|
|
2170
|
-
const
|
|
2171
|
-
m(
|
|
2184
|
+
const _ = (y) => {
|
|
2185
|
+
m(y, {
|
|
2172
2186
|
method: "GET",
|
|
2173
2187
|
headers: {
|
|
2174
2188
|
"X-DS-SWYM-CSRFTOKEN": h.result.ServerToken
|
|
@@ -2176,31 +2190,31 @@ function gt(e, t, s = void 0, n = void 0) {
|
|
|
2176
2190
|
onComplete(S) {
|
|
2177
2191
|
const w = { response: JSON.parse(S) };
|
|
2178
2192
|
if (f = Math.ceil(Number(w.response.nb_result) / 100), S && f >= a) {
|
|
2179
|
-
if (a++, l.page = `/page/${a}`,
|
|
2193
|
+
if (a++, l.page = `/page/${a}`, y = `${i}${l.uri}${l.comId}${l.limit}${l.page}`, !c)
|
|
2180
2194
|
d.push(w.response.result);
|
|
2181
2195
|
else {
|
|
2182
2196
|
const T = w.response.result.find(
|
|
2183
2197
|
(E) => E.title.includes(c)
|
|
2184
2198
|
);
|
|
2185
2199
|
if (T) {
|
|
2186
|
-
|
|
2200
|
+
n(T);
|
|
2187
2201
|
return;
|
|
2188
2202
|
}
|
|
2189
2203
|
}
|
|
2190
|
-
if (
|
|
2191
|
-
u = !0,
|
|
2204
|
+
if (n && f < a && !c) {
|
|
2205
|
+
u = !0, n(d);
|
|
2192
2206
|
return;
|
|
2193
2207
|
}
|
|
2194
|
-
y
|
|
2208
|
+
_(y);
|
|
2195
2209
|
}
|
|
2196
2210
|
},
|
|
2197
2211
|
onFailure(S, w) {
|
|
2198
2212
|
const T = S;
|
|
2199
|
-
T.status = w.status, T.response = w.errormsg,
|
|
2213
|
+
T.status = w.status, T.response = w.errormsg, s && s(T);
|
|
2200
2214
|
}
|
|
2201
2215
|
});
|
|
2202
2216
|
};
|
|
2203
|
-
u ||
|
|
2217
|
+
u || _(g);
|
|
2204
2218
|
});
|
|
2205
2219
|
}
|
|
2206
2220
|
function me(e) {
|
|
@@ -2278,9 +2292,9 @@ function me(e) {
|
|
|
2278
2292
|
<p>
|
|
2279
2293
|
</p>` : e;
|
|
2280
2294
|
}
|
|
2281
|
-
function
|
|
2282
|
-
const { tenant:
|
|
2283
|
-
if (
|
|
2295
|
+
function _t(e, t = void 0, n = void 0) {
|
|
2296
|
+
const { tenant: s, _3DSwym: i, _3DSwym_token: r, community_id: o, idea_id: a } = e;
|
|
2297
|
+
if (s && i && r && o && a) {
|
|
2284
2298
|
const c = `${i}/api/idea/forward`;
|
|
2285
2299
|
m(c, {
|
|
2286
2300
|
method: "POST",
|
|
@@ -2290,8 +2304,8 @@ function ht(e, t = void 0, s = void 0) {
|
|
|
2290
2304
|
"X-DS-SWYM-CSRFTOKEN": r
|
|
2291
2305
|
},
|
|
2292
2306
|
data: JSON.stringify({
|
|
2293
|
-
community_uri: `swym:prd:${
|
|
2294
|
-
content_uri: `swym:prd:${
|
|
2307
|
+
community_uri: `swym:prd:${s.toUpperCase()}:community:${o}`,
|
|
2308
|
+
content_uri: `swym:prd:${s.toUpperCase()}:idea:${a}`,
|
|
2295
2309
|
timeout: 3e4
|
|
2296
2310
|
}),
|
|
2297
2311
|
type: "json",
|
|
@@ -2300,19 +2314,19 @@ function ht(e, t = void 0, s = void 0) {
|
|
|
2300
2314
|
},
|
|
2301
2315
|
onFailure(d, p) {
|
|
2302
2316
|
const u = d;
|
|
2303
|
-
u.status = p.status, u.response = p.errormsg,
|
|
2317
|
+
u.status = p.status, u.response = p.errormsg, n && n(u);
|
|
2304
2318
|
}
|
|
2305
2319
|
});
|
|
2306
2320
|
} else
|
|
2307
|
-
|
|
2321
|
+
n && n({
|
|
2308
2322
|
status: "error",
|
|
2309
2323
|
msg: "Credentials incomplet !",
|
|
2310
2324
|
attend: "tenant, _3DSwym , _3DSwym_token, community_id, idea_id",
|
|
2311
2325
|
credentials: e
|
|
2312
2326
|
});
|
|
2313
2327
|
}
|
|
2314
|
-
function yt(e, t = void 0,
|
|
2315
|
-
return new Promise((
|
|
2328
|
+
function yt(e, t = void 0, n = void 0) {
|
|
2329
|
+
return new Promise((s, i) => {
|
|
2316
2330
|
try {
|
|
2317
2331
|
let r;
|
|
2318
2332
|
if (e._3DDashboard) {
|
|
@@ -2320,28 +2334,28 @@ function yt(e, t = void 0, s = void 0) {
|
|
|
2320
2334
|
console.log("_3DSwym_get_currentUser | url", o), m(o, {
|
|
2321
2335
|
method: "GET",
|
|
2322
2336
|
onComplete(a, c, d) {
|
|
2323
|
-
let p = a.replace(
|
|
2324
|
-
p = p.replace(
|
|
2337
|
+
let p = a.replace(/\"\[/g, "[").replace(/\]\"/g, "]").replace(/\"{/g, "{").replace(/}\"/g, "}").replace(/\\/g, "");
|
|
2338
|
+
p = p.replace(/\"\[/g, "[").replace(/\]\"/g, "]").replace(/\"{/g, "{").replace(/}\"/g, "}").replace(/\\/g, ""), console.log("result", p);
|
|
2325
2339
|
let u = {};
|
|
2326
2340
|
try {
|
|
2327
2341
|
u = JSON.parse(p);
|
|
2328
2342
|
} catch (f) {
|
|
2329
2343
|
i("ERROR | _3DSwym_get_currentUser => JSON.Parse()", f);
|
|
2330
2344
|
}
|
|
2331
|
-
console.log(u), u.first_name = u?.firstName ? u.firstName : "", u.last_name = u?.lastName ? u.lastName : "", console.log("_3DSwym_get_currentUser | info", u), r = u,
|
|
2345
|
+
console.log(u), u.first_name = u?.firstName ? u.firstName : "", u.last_name = u?.lastName ? u.lastName : "", console.log("_3DSwym_get_currentUser | info", u), r = u, s(u);
|
|
2332
2346
|
},
|
|
2333
2347
|
onFailure(a) {
|
|
2334
2348
|
i("ERROR | _3DSwym_get_currentUser => _3DDashboard + /api/users/current", a);
|
|
2335
2349
|
}
|
|
2336
2350
|
});
|
|
2337
2351
|
}
|
|
2338
|
-
r ?
|
|
2352
|
+
r ? s(r) : i("ERROR | _3DSwym_get_currentUser => CURRENT_USER is null");
|
|
2339
2353
|
} catch (r) {
|
|
2340
2354
|
i("ERROR | _3DSwym_get_currentUser => ", r);
|
|
2341
2355
|
}
|
|
2342
2356
|
});
|
|
2343
2357
|
}
|
|
2344
|
-
function
|
|
2358
|
+
function St(e, t, n = void 0, s = void 0) {
|
|
2345
2359
|
const i = e.space + "/api/user/find/login/" + t;
|
|
2346
2360
|
C(
|
|
2347
2361
|
e,
|
|
@@ -2351,23 +2365,23 @@ function _t(e, t, s = void 0, n = void 0) {
|
|
|
2351
2365
|
headers: { "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken },
|
|
2352
2366
|
onComplete(o, a, c) {
|
|
2353
2367
|
const d = JSON.parse(o);
|
|
2354
|
-
|
|
2368
|
+
n && n(d);
|
|
2355
2369
|
},
|
|
2356
2370
|
onFailure(o) {
|
|
2357
|
-
|
|
2371
|
+
s && s(o);
|
|
2358
2372
|
}
|
|
2359
2373
|
});
|
|
2360
2374
|
},
|
|
2361
|
-
|
|
2375
|
+
s
|
|
2362
2376
|
);
|
|
2363
2377
|
}
|
|
2364
|
-
function
|
|
2378
|
+
function wt(e, t = void 0, n = void 0) {
|
|
2365
2379
|
const {
|
|
2366
|
-
_3DSwym:
|
|
2380
|
+
_3DSwym: s,
|
|
2367
2381
|
_3DSwym_token: i,
|
|
2368
2382
|
subjectUri: r,
|
|
2369
2383
|
richMessage: o
|
|
2370
|
-
} = e, a = `${
|
|
2384
|
+
} = e, a = `${s}/commentproxy/subjects/${r}/comments`, d = {
|
|
2371
2385
|
method: "POST",
|
|
2372
2386
|
headers: {
|
|
2373
2387
|
"Content-type": "application/json;charset=UTF-8",
|
|
@@ -2383,22 +2397,22 @@ function St(e, t = void 0, s = void 0) {
|
|
|
2383
2397
|
l.status = f.status, t && t(l);
|
|
2384
2398
|
},
|
|
2385
2399
|
onFailure(p) {
|
|
2386
|
-
|
|
2400
|
+
n && n(p);
|
|
2387
2401
|
}
|
|
2388
2402
|
};
|
|
2389
2403
|
m(a, d);
|
|
2390
2404
|
}
|
|
2391
|
-
function
|
|
2392
|
-
e.tenant && v(e, (
|
|
2393
|
-
const i =
|
|
2405
|
+
function Ct(e, t = void 0, n = void 0) {
|
|
2406
|
+
e.tenant && v(e, (s) => {
|
|
2407
|
+
const i = s.services.find((r) => r.id === "businessprocess")?.url + "/api/v2";
|
|
2394
2408
|
return t && t(i), i;
|
|
2395
2409
|
});
|
|
2396
2410
|
}
|
|
2397
|
-
function
|
|
2398
|
-
e.tenant && v(e, (
|
|
2399
|
-
const i =
|
|
2411
|
+
function Tt(e, t = void 0, n = void 0) {
|
|
2412
|
+
e.tenant && v(e, (s) => {
|
|
2413
|
+
const i = s.services.find(
|
|
2400
2414
|
(a) => a.id === "3dpassport"
|
|
2401
|
-
)?.url, r =
|
|
2415
|
+
)?.url, r = s.services.find((a) => a.id === "businessprocess")?.url + "/api/v2", o = `${i}/login/?service=${r}/auth/cas`;
|
|
2402
2416
|
m(o, {
|
|
2403
2417
|
async onComplete(a) {
|
|
2404
2418
|
const c = typeof a == "string" ? JSON.parse(a)?.x3ds_service_redirect_url : a?.x3ds_service_redirect_url;
|
|
@@ -2409,24 +2423,24 @@ function Ct(e, t = void 0, s = void 0) {
|
|
|
2409
2423
|
});
|
|
2410
2424
|
},
|
|
2411
2425
|
onFailure(a) {
|
|
2412
|
-
|
|
2426
|
+
n && n(a);
|
|
2413
2427
|
}
|
|
2414
2428
|
});
|
|
2415
2429
|
});
|
|
2416
2430
|
}
|
|
2417
|
-
function
|
|
2431
|
+
function bt(e, t = void 0, n = void 0) {
|
|
2418
2432
|
if (e.tenant) {
|
|
2419
|
-
const
|
|
2420
|
-
fetch(`https://api.uixhome.fr/${
|
|
2433
|
+
const s = e.tenant.toLowerCase();
|
|
2434
|
+
fetch(`https://api.uixhome.fr/${s}/iterop/jwtuser`, {
|
|
2421
2435
|
method: "POST"
|
|
2422
2436
|
}).then((i) => i.json()).then((i) => {
|
|
2423
2437
|
t && t(i);
|
|
2424
2438
|
}).catch((i) => {
|
|
2425
|
-
|
|
2439
|
+
n && n(i);
|
|
2426
2440
|
});
|
|
2427
2441
|
}
|
|
2428
2442
|
}
|
|
2429
|
-
async function
|
|
2443
|
+
async function Ot(e, t, n = void 0, s = void 0) {
|
|
2430
2444
|
if (e.tenant) {
|
|
2431
2445
|
const i = e.tenant.toLowerCase();
|
|
2432
2446
|
fetch(
|
|
@@ -2435,61 +2449,61 @@ async function bt(e, t, s = void 0, n = void 0) {
|
|
|
2435
2449
|
method: "GET"
|
|
2436
2450
|
}
|
|
2437
2451
|
).then((r) => r.json()).then((r) => {
|
|
2438
|
-
s && s(r);
|
|
2439
|
-
}).catch((r) => {
|
|
2440
2452
|
n && n(r);
|
|
2453
|
+
}).catch((r) => {
|
|
2454
|
+
s && s(r);
|
|
2441
2455
|
});
|
|
2442
2456
|
}
|
|
2443
2457
|
}
|
|
2444
|
-
async function
|
|
2458
|
+
async function $t(e, t, n, s = void 0, i = void 0) {
|
|
2445
2459
|
if (e.tenant) {
|
|
2446
2460
|
const r = e.tenant.toLowerCase();
|
|
2447
2461
|
fetch(
|
|
2448
|
-
`https://api.uixhome.fr/${r}/iterop/businesstable/one/${
|
|
2462
|
+
`https://api.uixhome.fr/${r}/iterop/businesstable/one/${n}?t=${t}`,
|
|
2449
2463
|
{
|
|
2450
2464
|
method: "POST"
|
|
2451
2465
|
}
|
|
2452
2466
|
).then((o) => o.json()).then((o) => {
|
|
2453
|
-
|
|
2467
|
+
s && s(o);
|
|
2454
2468
|
}).catch((o) => {
|
|
2455
2469
|
i && i(o);
|
|
2456
2470
|
});
|
|
2457
2471
|
}
|
|
2458
2472
|
}
|
|
2459
|
-
async function
|
|
2473
|
+
async function Nt(e, t, n, s = void 0, i = void 0) {
|
|
2460
2474
|
if (e.tenant) {
|
|
2461
2475
|
const r = e.tenant.toLowerCase();
|
|
2462
2476
|
fetch(
|
|
2463
|
-
`https://api.uixhome.fr/${r}/iterop/businesstable/rows/${
|
|
2477
|
+
`https://api.uixhome.fr/${r}/iterop/businesstable/rows/${n}/?t=${t}`,
|
|
2464
2478
|
{
|
|
2465
2479
|
method: "POST"
|
|
2466
2480
|
}
|
|
2467
2481
|
).then((o) => o.json()).then((o) => {
|
|
2468
|
-
|
|
2482
|
+
s && s(o);
|
|
2469
2483
|
}).catch((o) => {
|
|
2470
2484
|
i && i(o);
|
|
2471
2485
|
});
|
|
2472
2486
|
}
|
|
2473
2487
|
}
|
|
2474
|
-
async function
|
|
2488
|
+
async function It(e, t, n, s, i = void 0, r = void 0) {
|
|
2475
2489
|
if (e.tenant) {
|
|
2476
2490
|
const o = e.tenant.toLowerCase();
|
|
2477
2491
|
fetch(
|
|
2478
|
-
`https://api.uixhome.fr/${o}/iterop/businesstable/patch/rows/${
|
|
2492
|
+
`https://api.uixhome.fr/${o}/iterop/businesstable/patch/rows/${n}/?t=${t}&b=${s}`,
|
|
2479
2493
|
{
|
|
2480
2494
|
method: "POST"
|
|
2481
2495
|
}
|
|
2482
2496
|
).then((a) => a.json()).then((a) => {
|
|
2483
2497
|
i && i(a);
|
|
2484
2498
|
}).catch((a) => {
|
|
2485
|
-
r && r(a,
|
|
2499
|
+
r && r(a, n, s);
|
|
2486
2500
|
});
|
|
2487
2501
|
}
|
|
2488
2502
|
}
|
|
2489
|
-
async function
|
|
2503
|
+
async function Rt(e, t, n, s, i, r = void 0, o = void 0) {
|
|
2490
2504
|
if (e.tenant) {
|
|
2491
|
-
const a = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/search/rows/${
|
|
2492
|
-
|
|
2505
|
+
const a = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/search/rows/${n}?t=${t}&c=${encodeURIComponent(
|
|
2506
|
+
s
|
|
2493
2507
|
)}&b=${encodeURIComponent(i)}`;
|
|
2494
2508
|
fetch(a, {
|
|
2495
2509
|
method: "POST"
|
|
@@ -2498,17 +2512,17 @@ async function It(e, t, s, n, i, r = void 0, o = void 0) {
|
|
|
2498
2512
|
}).catch((c) => {
|
|
2499
2513
|
o && o({
|
|
2500
2514
|
error: c,
|
|
2501
|
-
tableId:
|
|
2502
|
-
columns:
|
|
2515
|
+
tableId: n,
|
|
2516
|
+
columns: s,
|
|
2503
2517
|
body: i
|
|
2504
2518
|
});
|
|
2505
2519
|
});
|
|
2506
2520
|
}
|
|
2507
2521
|
}
|
|
2508
|
-
async function
|
|
2522
|
+
async function Ut(e, t, n, s, i = void 0, r = void 0) {
|
|
2509
2523
|
if (e.tenant) {
|
|
2510
|
-
const o = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/post/update/${
|
|
2511
|
-
|
|
2524
|
+
const o = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/post/update/${n}?t=${t}&b=${encodeURIComponent(
|
|
2525
|
+
s
|
|
2512
2526
|
)}`;
|
|
2513
2527
|
fetch(o, {
|
|
2514
2528
|
method: "POST"
|
|
@@ -2522,15 +2536,15 @@ async function Rt(e, t, s, n, i = void 0, r = void 0) {
|
|
|
2522
2536
|
});
|
|
2523
2537
|
}
|
|
2524
2538
|
}
|
|
2525
|
-
async function
|
|
2539
|
+
async function Ft(e, t, n, s = void 0, i = void 0) {
|
|
2526
2540
|
if (e.tenant) {
|
|
2527
2541
|
const r = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/post/create/?t=${t}&b=${encodeURIComponent(
|
|
2528
|
-
|
|
2542
|
+
n
|
|
2529
2543
|
)}`;
|
|
2530
2544
|
fetch(r, {
|
|
2531
2545
|
method: "POST"
|
|
2532
2546
|
}).then((o) => o.json()).then((o) => {
|
|
2533
|
-
|
|
2547
|
+
s && s(o);
|
|
2534
2548
|
}).catch((o) => {
|
|
2535
2549
|
i && i({
|
|
2536
2550
|
error: o,
|
|
@@ -2539,11 +2553,11 @@ async function Ut(e, t, s, n = void 0, i = void 0) {
|
|
|
2539
2553
|
});
|
|
2540
2554
|
}
|
|
2541
2555
|
}
|
|
2542
|
-
async function
|
|
2556
|
+
async function kt(e, t, n, s, i = void 0, r = void 0) {
|
|
2543
2557
|
if (e.tenant) {
|
|
2544
2558
|
const o = e.tenant.toLowerCase();
|
|
2545
2559
|
fetch(
|
|
2546
|
-
`https://api.uixhome.fr/${o}/iterop/runtime/processes/${
|
|
2560
|
+
`https://api.uixhome.fr/${o}/iterop/runtime/processes/${n}?t=${t}&b=${s}`,
|
|
2547
2561
|
{
|
|
2548
2562
|
method: "POST"
|
|
2549
2563
|
}
|
|
@@ -2554,26 +2568,26 @@ async function Ft(e, t, s, n, i = void 0, r = void 0) {
|
|
|
2554
2568
|
});
|
|
2555
2569
|
}
|
|
2556
2570
|
}
|
|
2557
|
-
async function
|
|
2571
|
+
async function jt(e, t, n, s = void 0, i = void 0) {
|
|
2558
2572
|
if (console.log("_Iterop_GetOneDependencyTable | Run"), e.tenant) {
|
|
2559
2573
|
const r = e.tenant.toLowerCase();
|
|
2560
2574
|
fetch(
|
|
2561
|
-
`https://api.uixhome.fr/${r}/iterop/dependencytable/one/${
|
|
2575
|
+
`https://api.uixhome.fr/${r}/iterop/dependencytable/one/${n}/?t=${t}`,
|
|
2562
2576
|
{
|
|
2563
2577
|
method: "POST"
|
|
2564
2578
|
}
|
|
2565
2579
|
).then((o) => o.json()).then((o) => {
|
|
2566
|
-
|
|
2580
|
+
s && s(o);
|
|
2567
2581
|
}).catch((o) => {
|
|
2568
2582
|
i && i(o);
|
|
2569
2583
|
});
|
|
2570
2584
|
}
|
|
2571
2585
|
}
|
|
2572
|
-
async function
|
|
2586
|
+
async function xt(e, t, n, s, i, r = void 0, o = void 0) {
|
|
2573
2587
|
if (e.tenant) {
|
|
2574
2588
|
const a = e.tenant.toLowerCase();
|
|
2575
2589
|
fetch(
|
|
2576
|
-
`https://api.uixhome.fr/${a}/iterop/dependencytable/patch/${
|
|
2590
|
+
`https://api.uixhome.fr/${a}/iterop/dependencytable/patch/${n}/?t=${t}&cli=${s}&b=${i}`,
|
|
2577
2591
|
{
|
|
2578
2592
|
method: "POST"
|
|
2579
2593
|
}
|
|
@@ -2584,11 +2598,11 @@ async function jt(e, t, s, n, i, r = void 0, o = void 0) {
|
|
|
2584
2598
|
});
|
|
2585
2599
|
}
|
|
2586
2600
|
}
|
|
2587
|
-
async function At(e, t,
|
|
2601
|
+
async function At(e, t, n, s, i = void 0, r = void 0) {
|
|
2588
2602
|
if (e.tenant) {
|
|
2589
2603
|
const o = e.tenant.toLowerCase();
|
|
2590
2604
|
fetch(
|
|
2591
|
-
`https://api.uixhome.fr/${o}/iterop/dependencytable/put/${
|
|
2605
|
+
`https://api.uixhome.fr/${o}/iterop/dependencytable/put/${n}/?t=${t}&b=${s}`,
|
|
2592
2606
|
{
|
|
2593
2607
|
method: "POST"
|
|
2594
2608
|
}
|
|
@@ -2600,30 +2614,30 @@ async function At(e, t, s, n, i = void 0, r = void 0) {
|
|
|
2600
2614
|
}
|
|
2601
2615
|
}
|
|
2602
2616
|
//!SECTION
|
|
2603
|
-
async function
|
|
2617
|
+
async function vt(e, t, n, s = void 0, i = void 0) {
|
|
2604
2618
|
if (e.tenant) {
|
|
2605
2619
|
const r = e.tenant.toLowerCase();
|
|
2606
2620
|
fetch(
|
|
2607
|
-
`https://api.uixhome.fr/${r}/iterop/list/one/${
|
|
2621
|
+
`https://api.uixhome.fr/${r}/iterop/list/one/${n}/?t=${t}`,
|
|
2608
2622
|
{
|
|
2609
2623
|
method: "POST"
|
|
2610
2624
|
}
|
|
2611
2625
|
).then((o) => o.json()).then((o) => {
|
|
2612
|
-
|
|
2626
|
+
s && s(o);
|
|
2613
2627
|
}).catch((o) => {
|
|
2614
2628
|
i && i(o);
|
|
2615
2629
|
});
|
|
2616
2630
|
}
|
|
2617
2631
|
}
|
|
2618
2632
|
//!SECTION
|
|
2619
|
-
function
|
|
2633
|
+
function Dt(e) {
|
|
2620
2634
|
const t = "Hello " + e;
|
|
2621
2635
|
return console.log(t), t;
|
|
2622
2636
|
}
|
|
2623
|
-
function
|
|
2624
|
-
return console.log("credentials", e), new Promise((
|
|
2637
|
+
function Pt(e, t = void 0, n = void 0) {
|
|
2638
|
+
return console.log("credentials", e), new Promise((s) => {
|
|
2625
2639
|
if (e.token === "" && b(e), !e.space || e.space === "") {
|
|
2626
|
-
const o =
|
|
2640
|
+
const o = V();
|
|
2627
2641
|
console.log("platformeInfo", o);
|
|
2628
2642
|
}
|
|
2629
2643
|
U(
|
|
@@ -2688,113 +2702,114 @@ function xt(e, t = void 0, s = void 0) {
|
|
|
2688
2702
|
t && t(d);
|
|
2689
2703
|
},
|
|
2690
2704
|
onFailure(d) {
|
|
2691
|
-
|
|
2705
|
+
n && n(d);
|
|
2692
2706
|
}
|
|
2693
2707
|
});
|
|
2694
2708
|
}
|
|
2695
2709
|
},
|
|
2696
2710
|
onFailure(o) {
|
|
2697
|
-
|
|
2711
|
+
n && n(o);
|
|
2698
2712
|
}
|
|
2699
2713
|
});
|
|
2700
2714
|
});
|
|
2701
2715
|
}
|
|
2702
2716
|
export {
|
|
2703
2717
|
B as UUID,
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2718
|
+
Pt as _3DSearch_usersGroup,
|
|
2719
|
+
Ee as _3DSpace_Create_Doc,
|
|
2720
|
+
Ge as _3DSpace_Update_Doc,
|
|
2721
|
+
Ye as _3DSpace_bookmark_addSubsciptions,
|
|
2708
2722
|
Ve as _3DSpace_bookmark_newWorkspace,
|
|
2709
2723
|
b as _3DSpace_csrf,
|
|
2710
2724
|
L as _3DSpace_download_doc,
|
|
2711
2725
|
ie as _3DSpace_download_multidoc,
|
|
2712
2726
|
P as _3DSpace_file_update,
|
|
2713
2727
|
ee as _3DSpace_file_update_csr,
|
|
2714
|
-
|
|
2728
|
+
Me as _3DSpace_file_url_csr,
|
|
2715
2729
|
R as _3DSpace_get_csrf,
|
|
2716
|
-
|
|
2730
|
+
D as _3DSpace_get_docInfo,
|
|
2717
2731
|
ae as _3DSpace_get_downloadTicket_multidoc,
|
|
2718
|
-
|
|
2732
|
+
Le as _3DSpace_get_multiDocInfo,
|
|
2719
2733
|
U as _3DSpace_get_securityContexts,
|
|
2720
2734
|
k as _3DSpace_get_ticket,
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2735
|
+
qe as _3DSpace_lifecycle_changeRevision,
|
|
2736
|
+
Be as _3DSpace_lifecycle_changeState,
|
|
2737
|
+
We as _3DSpace_lifecycle_getGraph,
|
|
2738
|
+
Xe as _3DSpace_lifecycle_getNextRevision,
|
|
2739
|
+
Ke as _3DSpace_lifecycle_getNextStates,
|
|
2740
|
+
Je as _3DSpace_put_docInfo,
|
|
2741
|
+
_t as _3DSwym_ForwardIdea,
|
|
2742
|
+
wt as _3DSwym_addComment,
|
|
2743
|
+
ut as _3DSwym_buildDirectMessage,
|
|
2744
|
+
ft as _3DSwym_deleteIdea,
|
|
2745
|
+
gt as _3DSwym_editIdea,
|
|
2732
2746
|
le as _3DSwym_findCommunityToInstantMSG,
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2747
|
+
ct as _3DSwym_getAllCommunities,
|
|
2748
|
+
ht as _3DSwym_getAllListIdeas,
|
|
2749
|
+
ot as _3DSwym_getAllNews,
|
|
2750
|
+
rt as _3DSwym_getFamiliarPeople,
|
|
2751
|
+
dt as _3DSwym_getIdeaStatusMaturity,
|
|
2738
2752
|
pe as _3DSwym_getMembersCommunity,
|
|
2739
|
-
|
|
2753
|
+
mt as _3DSwym_getOneIdea,
|
|
2740
2754
|
C as _3DSwym_get_Token,
|
|
2741
2755
|
yt as _3DSwym_get_currentUser,
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2756
|
+
St as _3DSwym_get_findUser,
|
|
2757
|
+
lt as _3DSwym_postIdea,
|
|
2758
|
+
pt as _3DSwym_postIdeaTemplate,
|
|
2759
|
+
x as _3DSwym_sendMessageData,
|
|
2760
|
+
Fe as _AppMngt_get_info_user,
|
|
2761
|
+
Ue as _AppMngt_get_users,
|
|
2762
|
+
It as _Iterop_AddOrRemoveRows,
|
|
2763
|
+
Tt as _Iterop_Auth_CAS,
|
|
2764
|
+
jt as _Iterop_GetOneDependencyTable,
|
|
2765
|
+
vt as _Iterop_GetOneList,
|
|
2766
|
+
xt as _Iterop_PatchDependencyTable,
|
|
2753
2767
|
At as _Iterop_PutDependencyTable,
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2768
|
+
Rt as _Iterop_businessTableSearchInRows,
|
|
2769
|
+
Ft as _Iterop_createBusinessTable,
|
|
2770
|
+
Ot as _Iterop_getAllBusinessTables,
|
|
2771
|
+
$t as _Iterop_getOneBusinessTable,
|
|
2772
|
+
Nt as _Iterop_getOneBusinessTableRows,
|
|
2773
|
+
bt as _Iterop_jwtUser,
|
|
2774
|
+
kt as _Iterop_runProcess,
|
|
2775
|
+
Ut as _Iterop_updateBusinessTable,
|
|
2776
|
+
Ne as _getMe,
|
|
2777
|
+
V as _getPlateformInfos,
|
|
2763
2778
|
$e as _getPlatformServices,
|
|
2764
2779
|
v as _getServiceUrl,
|
|
2765
|
-
|
|
2766
|
-
|
|
2780
|
+
Ie as _getServiceUrl_3DPassport,
|
|
2781
|
+
Ct as _getServiceUrl_Iterop,
|
|
2767
2782
|
m as _httpCallAuthenticated,
|
|
2768
2783
|
Te as _setDraggable,
|
|
2769
2784
|
Oe as _setDroppable,
|
|
2770
2785
|
be as _setupTagger,
|
|
2771
|
-
|
|
2786
|
+
st as addTagToDoc,
|
|
2772
2787
|
X as chunkArray,
|
|
2773
|
-
|
|
2788
|
+
Re as compass_getListAdditionalApps,
|
|
2774
2789
|
W as couleurs,
|
|
2775
|
-
|
|
2790
|
+
ke as createUserGroups,
|
|
2776
2791
|
oe as dataMixing,
|
|
2777
2792
|
Ae as deleteUserGroups,
|
|
2778
2793
|
Se as findAdresse,
|
|
2779
|
-
|
|
2794
|
+
He as getAllContextSecurity,
|
|
2780
2795
|
H as getCSRFToken,
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2796
|
+
ye as getCommunes,
|
|
2797
|
+
je as getComplementUG,
|
|
2798
|
+
ze as getDataFrom3DSpace,
|
|
2784
2799
|
we as getDataFromGouvFr,
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2800
|
+
tt as getDatasByTenant,
|
|
2801
|
+
nt as getDatasFrom3DSpace,
|
|
2802
|
+
Qe as getDownloadDocument,
|
|
2803
|
+
at as getInfoDocTags,
|
|
2804
|
+
xe as getUserGroupsList,
|
|
2790
2805
|
Y as getUsersGroupRules,
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2806
|
+
et as get_3DSpace_csrf,
|
|
2807
|
+
ve as patchUserGroups,
|
|
2808
|
+
De as patchUserGroupsControl,
|
|
2809
|
+
Ze as pushDataIn3DSpace,
|
|
2810
|
+
Pe as readUserGroupControl,
|
|
2811
|
+
it as removeTagToDoc,
|
|
2812
|
+
Dt as sayHello,
|
|
2798
2813
|
Ce as updateEvent
|
|
2799
2814
|
};
|
|
2800
2815
|
//# sourceMappingURL=wb3Api.js.map
|