@beam3_dev/api_module 0.0.303 → 0.0.305
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 +427 -428
- 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
|
@@ -34,10 +34,10 @@ const z = {
|
|
|
34
34
|
b3Edit8: "#616161",
|
|
35
35
|
b3Edit9: "#795548"
|
|
36
36
|
};
|
|
37
|
-
async function xe(e, t = void 0,
|
|
38
|
-
const
|
|
37
|
+
async function xe(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 xe(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
|
|
53
|
+
async function Ie(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 Ne(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
|
-
async function
|
|
69
|
-
let
|
|
70
|
-
const
|
|
68
|
+
async function Ne(e, t = z) {
|
|
69
|
+
let n = O.now().year;
|
|
70
|
+
const s = e, i = [], r = (o) => {
|
|
71
71
|
for (let c in o)
|
|
72
72
|
i.push({ date: c, comment: o[c] });
|
|
73
73
|
};
|
|
74
|
-
for (let o =
|
|
74
|
+
for (let o = n; o <= n + 1; o++)
|
|
75
75
|
await fetch(
|
|
76
76
|
"https://calendrier.api.gouv.fr/jours-feries/metropole/" + o + ".json",
|
|
77
77
|
{
|
|
@@ -84,9 +84,9 @@ async function Ie(e, t = z) {
|
|
|
84
84
|
r(c);
|
|
85
85
|
}).catch((c) => console.error("Erreur : " + c));
|
|
86
86
|
return (() => {
|
|
87
|
-
const o =
|
|
87
|
+
const o = s.length === 0 ? {
|
|
88
88
|
events: []
|
|
89
|
-
} :
|
|
89
|
+
} : s;
|
|
90
90
|
for (let c of i)
|
|
91
91
|
o.events.findIndex(
|
|
92
92
|
(u) => u.start === O.fromISO(c.date).toISODate() && u.name === "Férié : " + c.comment
|
|
@@ -100,26 +100,26 @@ async function Ie(e, t = z) {
|
|
|
100
100
|
return o;
|
|
101
101
|
})();
|
|
102
102
|
}
|
|
103
|
-
function H(e, t,
|
|
104
|
-
const { credentials:
|
|
103
|
+
function H(e, t, n) {
|
|
104
|
+
const { credentials: s, myArray: i, chunk: r, fn_to_call: a } = e, o = [];
|
|
105
105
|
for (let c = 0; c < i.length; c += r) {
|
|
106
106
|
const d = i.slice(c, c + r);
|
|
107
107
|
o.push(d);
|
|
108
108
|
}
|
|
109
109
|
Q(
|
|
110
|
-
{ credentials:
|
|
110
|
+
{ credentials: s, chunks: o, initLoop: 0, fn: a },
|
|
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 Q(e, t,
|
|
120
|
-
const { credentials:
|
|
119
|
+
function Q(e, t, n) {
|
|
120
|
+
const { credentials: s, chunks: i, initLoop: r, fn: a } = e, o = (c) => {
|
|
121
121
|
a(
|
|
122
|
-
|
|
122
|
+
s,
|
|
123
123
|
i[c],
|
|
124
124
|
() => {
|
|
125
125
|
c++, c < i.length && o(c);
|
|
@@ -128,54 +128,54 @@ function Q(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
|
o(r);
|
|
136
136
|
}
|
|
137
|
-
async function Ue(e, t,
|
|
138
|
-
const
|
|
139
|
-
return
|
|
137
|
+
async function Ue(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 Fe(e, t,
|
|
147
|
-
$(["DS/DataDragAndDrop/DataDragAndDrop"], (
|
|
148
|
-
|
|
146
|
+
function Fe(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 Re(e, t = void 0) {
|
|
155
|
-
$(["DS/TagNavigatorProxy/TagNavigatorProxy"], (
|
|
156
|
-
let
|
|
157
|
-
|
|
155
|
+
$(["DS/TagNavigatorProxy/TagNavigatorProxy"], (n) => {
|
|
156
|
+
let s;
|
|
157
|
+
s === void 0 && (s = n.createProxy({
|
|
158
158
|
widgetId: L.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 je(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
|
|
170
|
+
async function De(e, t = void 0, n = void 0) {
|
|
171
171
|
await $(
|
|
172
172
|
["DS/i3DXCompassServices/i3DXCompassServices"],
|
|
173
|
-
(
|
|
173
|
+
(s) => {
|
|
174
174
|
(!e || e === "") && (e = L.getValue("PlatFormInstanceId")), (!e || e === "") && (e = void 0), t && t(
|
|
175
|
-
|
|
175
|
+
s.getPlatformServices({
|
|
176
176
|
platformId: e,
|
|
177
177
|
onComplete: t,
|
|
178
|
-
onFailure:
|
|
178
|
+
onFailure: n
|
|
179
179
|
})
|
|
180
180
|
);
|
|
181
181
|
}
|
|
@@ -184,53 +184,53 @@ async function ke(e, t = void 0, s = void 0) {
|
|
|
184
184
|
function Z() {
|
|
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 ke(e, t = void 0, n = void 0) {
|
|
199
199
|
if (e.tenant) {
|
|
200
|
-
const
|
|
201
|
-
m(
|
|
200
|
+
const s = `https://${e.tenant}-eu1.iam.3dexperience.3ds.com/api/authenticated/user/me?xrequestedwith=xmlhttprequest`;
|
|
201
|
+
m(s, {
|
|
202
202
|
onComplete(i) {
|
|
203
203
|
const r = typeof i == "string" ? JSON.parse(i) : i;
|
|
204
|
-
r && "fields" in r ? t && t(r.fields) :
|
|
204
|
+
r && "fields" in r ? t && t(r.fields) : n && n("_getMe return not find properties fields");
|
|
205
205
|
},
|
|
206
206
|
onFailure(i) {
|
|
207
|
-
|
|
207
|
+
n && n("_getMe return error", i);
|
|
208
208
|
}
|
|
209
209
|
});
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
|
-
function M(e, t = void 0,
|
|
212
|
+
function M(e, t = void 0, n = void 0) {
|
|
213
213
|
if (console.log("_getServiceUrl"), e.tenant) {
|
|
214
|
-
const
|
|
215
|
-
m(
|
|
214
|
+
const s = `https://${e.tenant.toLowerCase()}-eu1-compass.3dexperience.3ds.com/enovia/resources/AppsMngt/api/v1/services?platform=${e.tenant.toUpperCase()}&cors=true&xrequestedwith=xmlhttprequest`;
|
|
215
|
+
m(s, {
|
|
216
216
|
onComplete(i) {
|
|
217
217
|
const r = typeof i == "string" ? JSON.parse(i) : i;
|
|
218
218
|
if (r && "platforms" in r) {
|
|
219
219
|
const a = r.platforms.find((o) => o.id === e.tenant.toUpperCase());
|
|
220
|
-
t && a ? t(a) :
|
|
220
|
+
t && a ? t(a) : n && n("_getServiceUrl return listServiceUrl = undefined");
|
|
221
221
|
} else
|
|
222
|
-
|
|
222
|
+
n && n("_getServiceUrl return oResponse = undefined");
|
|
223
223
|
},
|
|
224
224
|
onFailure(i) {
|
|
225
|
-
|
|
225
|
+
n && n(i);
|
|
226
226
|
}
|
|
227
227
|
});
|
|
228
228
|
}
|
|
229
229
|
}
|
|
230
|
-
function ve(e, t = void 0,
|
|
230
|
+
function ve(e, t = void 0, n = void 0) {
|
|
231
231
|
if (e.tenant) {
|
|
232
|
-
const
|
|
233
|
-
m(
|
|
232
|
+
const s = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dpassport&platformId=${e.tenant}`;
|
|
233
|
+
m(s, {
|
|
234
234
|
onComplete(i) {
|
|
235
235
|
const r = JSON.parse(i);
|
|
236
236
|
if (console.log("serviceId=3dpassport", r), Array.isArray(r) && r.length > 0) {
|
|
@@ -239,18 +239,18 @@ function ve(e, t = void 0, s = void 0) {
|
|
|
239
239
|
}
|
|
240
240
|
},
|
|
241
241
|
onFailure(i) {
|
|
242
|
-
|
|
242
|
+
n && n(i);
|
|
243
243
|
}
|
|
244
244
|
});
|
|
245
245
|
}
|
|
246
246
|
}
|
|
247
|
-
function Ae(e, t,
|
|
248
|
-
const
|
|
247
|
+
function Ae(e, t, n) {
|
|
248
|
+
const s = {
|
|
249
249
|
base: `${e.space}`,
|
|
250
250
|
uri: "/resources/AppsMngt/api/custom/applications",
|
|
251
251
|
option: `?filter=${e.tenant}`
|
|
252
252
|
// facultatif
|
|
253
|
-
}, i = `${
|
|
253
|
+
}, i = `${s.base}${s.uri}${s.option}`;
|
|
254
254
|
m(i, {
|
|
255
255
|
method: "GET",
|
|
256
256
|
headers: {
|
|
@@ -266,33 +266,33 @@ function Ae(e, t, s) {
|
|
|
266
266
|
},
|
|
267
267
|
onFailure(r, a) {
|
|
268
268
|
const o = r;
|
|
269
|
-
o.msg = a.errormsg, o.errCode = a.errorcode,
|
|
269
|
+
o.msg = a.errormsg, o.errCode = a.errorcode, n && n(o);
|
|
270
270
|
}
|
|
271
271
|
});
|
|
272
272
|
}
|
|
273
|
-
function Pe(e, t = void 0,
|
|
274
|
-
let
|
|
275
|
-
m(
|
|
273
|
+
function Pe(e, t = void 0, n = void 0) {
|
|
274
|
+
let s = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&limit=-1`;
|
|
275
|
+
m(s, {
|
|
276
276
|
onComplete(i, r, a) {
|
|
277
277
|
const o = JSON.parse(i);
|
|
278
278
|
console.log("_AppMngt_get_users => ", o), t && t(o);
|
|
279
279
|
},
|
|
280
280
|
onFailure(i, r) {
|
|
281
281
|
const a = i;
|
|
282
|
-
a.msg = r.errormsg, a.errCode = r.errorcode,
|
|
282
|
+
a.msg = r.errormsg, a.errCode = r.errorcode, n && n(a);
|
|
283
283
|
}
|
|
284
284
|
});
|
|
285
285
|
}
|
|
286
|
-
function Le(e, t,
|
|
286
|
+
function Le(e, t, n = void 0, s = void 0) {
|
|
287
287
|
let i = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&id=${t}`;
|
|
288
288
|
m(i, {
|
|
289
289
|
onComplete(r, a, o) {
|
|
290
290
|
const c = JSON.parse(r);
|
|
291
|
-
|
|
291
|
+
n && n(c);
|
|
292
292
|
},
|
|
293
293
|
onFailure(r, a) {
|
|
294
294
|
const o = r;
|
|
295
|
-
o.msg = a.errormsg, o.errCode = a.errorcode,
|
|
295
|
+
o.msg = a.errormsg, o.errCode = a.errorcode, s && s(o);
|
|
296
296
|
}
|
|
297
297
|
});
|
|
298
298
|
}
|
|
@@ -300,7 +300,7 @@ const j = {
|
|
|
300
300
|
"Content-Type": "application/json",
|
|
301
301
|
Accept: "application/json,text/javascript,*/*"
|
|
302
302
|
};
|
|
303
|
-
function Me(e, t,
|
|
303
|
+
function Me(e, t, n = void 0, s = void 0) {
|
|
304
304
|
const { space: i, currentUser: r } = e, o = `${i}${{
|
|
305
305
|
URIUGr: "/3drdfpersist/resources/v1/usersgroup"
|
|
306
306
|
}.URIUGr}`, c = {
|
|
@@ -320,16 +320,16 @@ function Me(e, t, s = void 0, n = void 0) {
|
|
|
320
320
|
headers: j,
|
|
321
321
|
data: JSON.stringify(c),
|
|
322
322
|
onComplete(d) {
|
|
323
|
-
|
|
323
|
+
n && n(JSON.parse(d));
|
|
324
324
|
},
|
|
325
325
|
onFailure(d, u) {
|
|
326
326
|
console.log(d);
|
|
327
327
|
const p = d;
|
|
328
|
-
p.msg = u.errormsg, p.errCode = u.errorcode, console.log("❌ sendDirectMessage => ", p),
|
|
328
|
+
p.msg = u.errormsg, p.errCode = u.errorcode, console.log("❌ sendDirectMessage => ", p), s && s(p);
|
|
329
329
|
}
|
|
330
330
|
});
|
|
331
331
|
}
|
|
332
|
-
function Je(e, t,
|
|
332
|
+
function Je(e, t, n = void 0, s = void 0) {
|
|
333
333
|
const { space: i, tenant: r } = e, a = i, o = `/3drdfpersist/v1/resources/${t}`, c = `?$mask=dsaccess:Mask.GroupUI.Properties&tenant=dstenant:${r}`, d = `${a}${o}${c}`;
|
|
334
334
|
m(d, {
|
|
335
335
|
opts: {
|
|
@@ -340,16 +340,16 @@ function Je(e, t, s = void 0, n = void 0) {
|
|
|
340
340
|
}
|
|
341
341
|
},
|
|
342
342
|
onComplete(f) {
|
|
343
|
-
|
|
343
|
+
n && n(JSON.parse(f));
|
|
344
344
|
},
|
|
345
345
|
onFailure(f, l) {
|
|
346
346
|
const h = f;
|
|
347
|
-
h.msg = l.errormsg, h.errCode = l.errorcode,
|
|
347
|
+
h.msg = l.errormsg, h.errCode = l.errorcode, s && s(h);
|
|
348
348
|
}
|
|
349
349
|
});
|
|
350
350
|
}
|
|
351
|
-
function ee(e, t = void 0,
|
|
352
|
-
const { space:
|
|
351
|
+
function ee(e, t = void 0, n = void 0) {
|
|
352
|
+
const { space: s, tenant: i } = e, r = s, a = "/3drdfpersist/resources/v1/option-sets/dsusergroup:ListOfGroupResponsibilities/options", o = `?tenant=dstenant:${i}`, c = {
|
|
353
353
|
method: "GET",
|
|
354
354
|
Accept: "application/json,*/*,test/javascript"
|
|
355
355
|
}, d = `${r}${a}${o}`;
|
|
@@ -360,12 +360,12 @@ function ee(e, t = void 0, s = void 0) {
|
|
|
360
360
|
},
|
|
361
361
|
onFailure(u, p) {
|
|
362
362
|
const f = u;
|
|
363
|
-
f.msg = p.errormsg, f.errCode = p.errorcode,
|
|
363
|
+
f.msg = p.errormsg, f.errCode = p.errorcode, n && n(f);
|
|
364
364
|
}
|
|
365
365
|
});
|
|
366
366
|
}
|
|
367
|
-
function Ge(e, t = void 0,
|
|
368
|
-
const { space:
|
|
367
|
+
function Ge(e, t = void 0, n = void 0) {
|
|
368
|
+
const { space: s, currentUser: i } = e, o = `${s}/3drdfpersist/resources/v1/usersgroup?select=uri,title,description,owner,members,pending_members,creation_date,modification_date,visibility`, d = { method: "GET", headers: {
|
|
369
369
|
"Content-Type": "application/json",
|
|
370
370
|
Accept: "application/json,text/javascript,*/*"
|
|
371
371
|
} };
|
|
@@ -382,13 +382,13 @@ function Ge(e, t = void 0, s = void 0) {
|
|
|
382
382
|
f.rules = y, t && t(f);
|
|
383
383
|
},
|
|
384
384
|
(y) => {
|
|
385
|
-
|
|
385
|
+
n && n(y);
|
|
386
386
|
}
|
|
387
387
|
);
|
|
388
388
|
}
|
|
389
389
|
},
|
|
390
390
|
onFailure(u) {
|
|
391
|
-
|
|
391
|
+
n && n(u);
|
|
392
392
|
}
|
|
393
393
|
});
|
|
394
394
|
} catch (u) {
|
|
@@ -396,12 +396,12 @@ function Ge(e, t = void 0, s = void 0) {
|
|
|
396
396
|
}
|
|
397
397
|
}
|
|
398
398
|
function Ke(e, t) {
|
|
399
|
-
const { space:
|
|
399
|
+
const { space: n } = e, i = `${n}/3drdfpersist/resources/v1/usersgroup/${t}`;
|
|
400
400
|
m(i, {
|
|
401
401
|
method: "DELETE"
|
|
402
402
|
});
|
|
403
403
|
}
|
|
404
|
-
function qe(e, t,
|
|
404
|
+
function qe(e, t, n, s = void 0, i = void 0) {
|
|
405
405
|
const { space: r, tenant: a } = e, o = {
|
|
406
406
|
URITI: "/3drdfpersist/resources/v1/template-instances",
|
|
407
407
|
URIUGr: "/3drdfpersist/resources/v1/usersgroup",
|
|
@@ -410,36 +410,36 @@ function qe(e, t, s, n = void 0, i = void 0) {
|
|
|
410
410
|
nexURImem: "/members",
|
|
411
411
|
OPTsTI: "?$mask=dsaccess:Mask.GroupUI.Properties",
|
|
412
412
|
OPTsTenant: `tenant=dstenant:${a}`
|
|
413
|
-
}, c =
|
|
413
|
+
}, c = n, d = `${r}${o.URIUGr}/${t}`, u = JSON.stringify(c);
|
|
414
414
|
m(d, {
|
|
415
415
|
headers: j,
|
|
416
416
|
method: "PATCH",
|
|
417
417
|
data: u,
|
|
418
418
|
type: "json",
|
|
419
419
|
onComplete(p) {
|
|
420
|
-
|
|
420
|
+
s && s(p);
|
|
421
421
|
},
|
|
422
422
|
onFailure(p) {
|
|
423
423
|
i && i(p);
|
|
424
424
|
}
|
|
425
425
|
});
|
|
426
426
|
}
|
|
427
|
-
function Be(e, t,
|
|
427
|
+
function Be(e, t, n, s = void 0, i = void 0) {
|
|
428
428
|
const { space: r } = e, o = `${r}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
|
|
429
429
|
m(o, {
|
|
430
430
|
method: "PATCH",
|
|
431
431
|
headers: j,
|
|
432
|
-
data: JSON.stringify(
|
|
432
|
+
data: JSON.stringify(n),
|
|
433
433
|
type: "json",
|
|
434
434
|
onComplete(d) {
|
|
435
|
-
|
|
435
|
+
s && s(d);
|
|
436
436
|
},
|
|
437
437
|
onFailure(d) {
|
|
438
438
|
i && i(d);
|
|
439
439
|
}
|
|
440
440
|
});
|
|
441
441
|
}
|
|
442
|
-
function Ee(e, t,
|
|
442
|
+
function Ee(e, t, n = void 0, s = void 0) {
|
|
443
443
|
const { space: i } = e, a = `${i}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
|
|
444
444
|
m(a, {
|
|
445
445
|
opts: {
|
|
@@ -450,43 +450,43 @@ function Ee(e, t, s = void 0, n = void 0) {
|
|
|
450
450
|
}
|
|
451
451
|
},
|
|
452
452
|
onComplete(d) {
|
|
453
|
-
|
|
453
|
+
n && n(JSON.parse(d));
|
|
454
454
|
},
|
|
455
455
|
onFailure(d) {
|
|
456
|
-
|
|
456
|
+
s && s(d);
|
|
457
457
|
}
|
|
458
458
|
});
|
|
459
459
|
}
|
|
460
|
-
async function te(e, t,
|
|
460
|
+
async function te(e, t, n) {
|
|
461
461
|
if (e.space) {
|
|
462
|
-
const
|
|
463
|
-
m(
|
|
462
|
+
const s = `${e.space}/resources/v1/application/CSRF`;
|
|
463
|
+
m(s, {
|
|
464
464
|
onComplete(i) {
|
|
465
465
|
i = JSON.parse(i), t && t(i.csrf);
|
|
466
466
|
},
|
|
467
467
|
onFailure(i, r, a) {
|
|
468
|
-
|
|
468
|
+
n && n({ error: i, headers: r, xhr: a });
|
|
469
469
|
}
|
|
470
470
|
});
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
|
-
var
|
|
473
|
+
var I = {};
|
|
474
474
|
function ne(e, t) {
|
|
475
475
|
return Object.prototype.hasOwnProperty.call(e, t);
|
|
476
476
|
}
|
|
477
|
-
var se = function(e, t,
|
|
478
|
-
t = t || "&",
|
|
477
|
+
var se = function(e, t, n, s) {
|
|
478
|
+
t = t || "&", n = n || "=";
|
|
479
479
|
var i = {};
|
|
480
480
|
if (typeof e != "string" || e.length === 0)
|
|
481
481
|
return i;
|
|
482
482
|
var r = /\+/g;
|
|
483
483
|
e = e.split(t);
|
|
484
484
|
var a = 1e3;
|
|
485
|
-
|
|
485
|
+
s && typeof s.maxKeys == "number" && (a = s.maxKeys);
|
|
486
486
|
var o = e.length;
|
|
487
487
|
a > 0 && o > a && (o = a);
|
|
488
488
|
for (var c = 0; c < o; ++c) {
|
|
489
|
-
var d = e[c].replace(r, "%20"), u = d.indexOf(
|
|
489
|
+
var d = e[c].replace(r, "%20"), u = d.indexOf(n), p, f, l, h;
|
|
490
490
|
u >= 0 ? (p = d.substr(0, u), f = d.substr(u + 1)) : (p = d, f = ""), l = decodeURIComponent(p), h = decodeURIComponent(f), ne(i, l) ? Array.isArray(i[l]) ? i[l].push(h) : i[l] = [i[l], h] : i[l] = h;
|
|
491
491
|
}
|
|
492
492
|
return i;
|
|
@@ -501,17 +501,17 @@ var se = function(e, t, s, n) {
|
|
|
501
501
|
default:
|
|
502
502
|
return "";
|
|
503
503
|
}
|
|
504
|
-
}, ie = function(e, t,
|
|
505
|
-
return t = t || "&",
|
|
506
|
-
var r = encodeURIComponent(x(i)) +
|
|
504
|
+
}, ie = function(e, t, n, s) {
|
|
505
|
+
return t = t || "&", n = n || "=", e === null && (e = void 0), typeof e == "object" ? Object.keys(e).map(function(i) {
|
|
506
|
+
var r = encodeURIComponent(x(i)) + n;
|
|
507
507
|
return Array.isArray(e[i]) ? e[i].map(function(a) {
|
|
508
508
|
return r + encodeURIComponent(x(a));
|
|
509
509
|
}).join(t) : r + encodeURIComponent(x(e[i]));
|
|
510
|
-
}).filter(Boolean).join(t) :
|
|
510
|
+
}).filter(Boolean).join(t) : s ? encodeURIComponent(x(s)) + n + encodeURIComponent(x(e)) : "";
|
|
511
511
|
};
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
async function J(e, t = void 0,
|
|
512
|
+
I.decode = I.parse = se;
|
|
513
|
+
I.encode = I.stringify = ie;
|
|
514
|
+
async function J(e, t = void 0, n = void 0, s = void 0) {
|
|
515
515
|
const i = e.space;
|
|
516
516
|
if (t === void 0) {
|
|
517
517
|
console.log("Le paramètre docid est obligatoire");
|
|
@@ -521,20 +521,20 @@ async function J(e, t = void 0, s = void 0, n = void 0) {
|
|
|
521
521
|
m(r, {
|
|
522
522
|
onComplete(a, o, c) {
|
|
523
523
|
const d = JSON.parse(a);
|
|
524
|
-
|
|
524
|
+
n && n(d);
|
|
525
525
|
},
|
|
526
526
|
onFailure(a) {
|
|
527
|
-
|
|
527
|
+
s && s(a);
|
|
528
528
|
}
|
|
529
529
|
});
|
|
530
530
|
}
|
|
531
|
-
async function Xe(e, t = void 0,
|
|
531
|
+
async function Xe(e, t = void 0, n = void 0, s = void 0) {
|
|
532
532
|
const i = e.space;
|
|
533
533
|
if (t === void 0) {
|
|
534
534
|
console.log("Le paramètre docids est obligatoire");
|
|
535
535
|
return;
|
|
536
536
|
}
|
|
537
|
-
let r = `${i}/resources/v1/modeler/documents/ids?$include=!files,!ownerInfo,!originatorInfo,!relOwnerInfo'`, a =
|
|
537
|
+
let r = `${i}/resources/v1/modeler/documents/ids?$include=!files,!ownerInfo,!originatorInfo,!relOwnerInfo'`, a = I.stringify({
|
|
538
538
|
$ids: t.toString().replace('"', "").replace("[", "").replace("]", "")
|
|
539
539
|
});
|
|
540
540
|
m(r, {
|
|
@@ -545,46 +545,46 @@ async function Xe(e, t = void 0, s = void 0, n = void 0) {
|
|
|
545
545
|
data: a,
|
|
546
546
|
onComplete(o, c, d) {
|
|
547
547
|
const u = JSON.parse(o);
|
|
548
|
-
|
|
548
|
+
n && n(u);
|
|
549
549
|
},
|
|
550
550
|
onFailure(o) {
|
|
551
|
-
|
|
551
|
+
s && s(o);
|
|
552
552
|
}
|
|
553
553
|
});
|
|
554
554
|
}
|
|
555
|
-
function U(e, t = void 0,
|
|
555
|
+
function U(e, t = void 0, n = void 0) {
|
|
556
556
|
if (e.objID && e.objID !== "") {
|
|
557
|
-
let
|
|
558
|
-
m(
|
|
557
|
+
let s = `${e.space}/resources/v1/modeler/documents/${e.objID}`;
|
|
558
|
+
m(s, {
|
|
559
559
|
onComplete(i, r, a) {
|
|
560
560
|
const o = JSON.parse(i);
|
|
561
561
|
e.success = !0, e.token = o?.csrf?.value, e.datas = o?.data[0], t && t(e);
|
|
562
562
|
},
|
|
563
563
|
onFailure(i) {
|
|
564
|
-
|
|
564
|
+
n && n(i);
|
|
565
565
|
}
|
|
566
566
|
});
|
|
567
567
|
} else
|
|
568
568
|
b(
|
|
569
569
|
e,
|
|
570
|
-
(
|
|
571
|
-
console.log("_3DSpace_get_csrf / _3DSpace_csrf",
|
|
570
|
+
(s) => {
|
|
571
|
+
console.log("_3DSpace_get_csrf / _3DSpace_csrf", s), e.token = s, t && t(e);
|
|
572
572
|
},
|
|
573
|
-
(
|
|
574
|
-
|
|
573
|
+
(s) => {
|
|
574
|
+
n && n(s);
|
|
575
575
|
}
|
|
576
576
|
);
|
|
577
577
|
}
|
|
578
|
-
function b(e, t = void 0,
|
|
578
|
+
function b(e, t = void 0, n = void 0) {
|
|
579
579
|
if (e.space) {
|
|
580
|
-
const
|
|
581
|
-
m(
|
|
580
|
+
const s = e.space + "/resources/v1/application/CSRF";
|
|
581
|
+
m(s, {
|
|
582
582
|
onComplete(i, r, a) {
|
|
583
583
|
const o = JSON.parse(i);
|
|
584
584
|
t && t(o.csrf.value);
|
|
585
585
|
},
|
|
586
586
|
onFailure(i, r, a) {
|
|
587
|
-
|
|
587
|
+
n && n({
|
|
588
588
|
response: i,
|
|
589
589
|
headers: r,
|
|
590
590
|
xhr: a
|
|
@@ -592,14 +592,14 @@ function b(e, t = void 0, s = void 0) {
|
|
|
592
592
|
}
|
|
593
593
|
});
|
|
594
594
|
} else
|
|
595
|
-
|
|
595
|
+
n && n("ERROR : url du 3DSpace non défini.");
|
|
596
596
|
}
|
|
597
|
-
function
|
|
598
|
-
let
|
|
597
|
+
function D(e, t = void 0, n = void 0) {
|
|
598
|
+
let s = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
|
|
599
599
|
U(
|
|
600
600
|
e,
|
|
601
601
|
(i) => {
|
|
602
|
-
m(
|
|
602
|
+
m(s, {
|
|
603
603
|
method: "PUT",
|
|
604
604
|
headers: {
|
|
605
605
|
ENO_CSRF_TOKEN: e.token
|
|
@@ -609,28 +609,28 @@ function k(e, t = void 0, s = void 0) {
|
|
|
609
609
|
t && t(c, a);
|
|
610
610
|
},
|
|
611
611
|
onFailure(r, a) {
|
|
612
|
-
console.warn("☠️ error => ", r, a),
|
|
612
|
+
console.warn("☠️ error => ", r, a), n && n(r, a);
|
|
613
613
|
}
|
|
614
614
|
});
|
|
615
615
|
},
|
|
616
616
|
(i) => {
|
|
617
|
-
console.warn("_3DSpace_get_ticket / error => ", i),
|
|
617
|
+
console.warn("_3DSpace_get_ticket / error => ", i), n && n(i);
|
|
618
618
|
}
|
|
619
619
|
);
|
|
620
620
|
}
|
|
621
|
-
function We(e, t,
|
|
621
|
+
function We(e, t, n = void 0, s = void 0, i = void 0) {
|
|
622
622
|
const r = `${e.space}/resources/v1/modeler/documents/${t}/files/DownloadTicket`;
|
|
623
|
-
|
|
623
|
+
n || (n = e.token), m(r, {
|
|
624
624
|
method: "PUT",
|
|
625
625
|
headers: {
|
|
626
|
-
ENO_CSRF_TOKEN:
|
|
626
|
+
ENO_CSRF_TOKEN: n
|
|
627
627
|
},
|
|
628
628
|
onComplete(a) {
|
|
629
629
|
let o = JSON.parse(a);
|
|
630
630
|
if (console.log("☠️ info => ", o), o.success === !0)
|
|
631
631
|
try {
|
|
632
632
|
const c = o.data[0].dataelements.ticketURL;
|
|
633
|
-
|
|
633
|
+
s && s(c);
|
|
634
634
|
} catch (c) {
|
|
635
635
|
i && i(c);
|
|
636
636
|
}
|
|
@@ -640,12 +640,12 @@ function We(e, t, s = void 0, n = void 0, i = void 0) {
|
|
|
640
640
|
}
|
|
641
641
|
});
|
|
642
642
|
}
|
|
643
|
-
function G(e, t,
|
|
643
|
+
function G(e, t, n, s, i, r = void 0, a = void 0) {
|
|
644
644
|
const o = () => ae(
|
|
645
645
|
e,
|
|
646
646
|
t,
|
|
647
|
-
s,
|
|
648
647
|
n,
|
|
648
|
+
s,
|
|
649
649
|
i,
|
|
650
650
|
e.token,
|
|
651
651
|
r,
|
|
@@ -662,7 +662,7 @@ function G(e, t, s, n, i, r = void 0, a = void 0) {
|
|
|
662
662
|
}
|
|
663
663
|
);
|
|
664
664
|
}
|
|
665
|
-
function ae(e, t,
|
|
665
|
+
function ae(e, t, n, s, i, r, a = void 0, o = void 0) {
|
|
666
666
|
const c = e.space + `/resources/v1/modeler/documents/files/CheckinTicket?tenant=${e.tenant.toUpperCase()}&e6w-lang=fr&e6w-timezone=-60&xrequestedwith=xmlhttprequest`;
|
|
667
667
|
m(c, {
|
|
668
668
|
method: "PUT",
|
|
@@ -680,7 +680,7 @@ function ae(e, t, s, n, i, r, a = void 0, o = void 0) {
|
|
|
680
680
|
onComplete(d, u, p) {
|
|
681
681
|
const f = d.csrf, l = d.data[0].dataelements, h = new FormData();
|
|
682
682
|
let g;
|
|
683
|
-
|
|
683
|
+
s instanceof Blob ? g = s : g = new Blob([s], {
|
|
684
684
|
type: "text/plain"
|
|
685
685
|
}), h.append(l.ticketparamname, l.ticket), h.append("file_0", g, i);
|
|
686
686
|
const _ = {};
|
|
@@ -728,11 +728,11 @@ function ae(e, t, s, n, i, r, a = void 0, o = void 0) {
|
|
|
728
728
|
}
|
|
729
729
|
});
|
|
730
730
|
}
|
|
731
|
-
async function Ve(e, t,
|
|
731
|
+
async function Ve(e, t, n = void 0, s = void 0) {
|
|
732
732
|
e.space, e.token, e.ctx;
|
|
733
733
|
const i = e?.description, r = e?.title;
|
|
734
734
|
if (!t) {
|
|
735
|
-
console.warn("Error: docId undefined"),
|
|
735
|
+
console.warn("Error: docId undefined"), s && s("Error: docId undefined");
|
|
736
736
|
return;
|
|
737
737
|
}
|
|
738
738
|
let a = `${e.space}/resources/v1/modeler/documents/${t}`;
|
|
@@ -754,20 +754,20 @@ async function Ve(e, t, s = void 0, n = void 0) {
|
|
|
754
754
|
data: o,
|
|
755
755
|
type: "json",
|
|
756
756
|
onComplete(c) {
|
|
757
|
-
|
|
757
|
+
n && n(c);
|
|
758
758
|
},
|
|
759
759
|
onFailure(c) {
|
|
760
|
-
|
|
760
|
+
s && s(c);
|
|
761
761
|
}
|
|
762
762
|
});
|
|
763
763
|
}
|
|
764
|
-
async function Ye(e, t = void 0,
|
|
764
|
+
async function Ye(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0) {
|
|
765
765
|
let { tenant: a, cs_name: o } = e;
|
|
766
766
|
if (!a && !o) {
|
|
767
767
|
i && i("Credentials undefined");
|
|
768
768
|
return;
|
|
769
769
|
}
|
|
770
|
-
if (!t && !
|
|
770
|
+
if (!t && !n) {
|
|
771
771
|
i && i("Définition du fichier undefined");
|
|
772
772
|
return;
|
|
773
773
|
}
|
|
@@ -786,7 +786,7 @@ async function Ye(e, t = void 0, s = void 0, n = void 0, i = void 0, r = void 0)
|
|
|
786
786
|
p && m(d, {
|
|
787
787
|
method: "GET",
|
|
788
788
|
headers: {
|
|
789
|
-
"x-ds-csrftoken":
|
|
789
|
+
//"x-ds-csrftoken": csrftoken,
|
|
790
790
|
Accept: "application/json"
|
|
791
791
|
},
|
|
792
792
|
onComplete(l, h, g) {
|
|
@@ -795,20 +795,18 @@ async function Ye(e, t = void 0, s = void 0, n = void 0, i = void 0, r = void 0)
|
|
|
795
795
|
const { ticket: _, actionurl: y, jobticket: w } = l;
|
|
796
796
|
K(
|
|
797
797
|
{ dataelements: { ticket: _, ticketURL: y } },
|
|
798
|
-
|
|
798
|
+
n,
|
|
799
799
|
t,
|
|
800
800
|
(S) => {
|
|
801
801
|
const R = new DOMParser().parseFromString(
|
|
802
802
|
S,
|
|
803
803
|
"text/html"
|
|
804
|
-
).body.firstChild.querySelector("input").getAttributeNode("value").value,
|
|
805
|
-
R
|
|
806
|
-
)}`;
|
|
804
|
+
).body.firstChild.querySelector("input").getAttributeNode("value").value, k = `https://${a.toLowerCase()}-eu1-space.3dexperience.3ds.com/enovia/resources/enocsmrest/collabspaces/${encodeURIComponent(o)}/contents?receipt=${encodeURIComponent(R)}`;
|
|
807
805
|
let W = /(?:\.([^.]+))?$/.exec(t)[1];
|
|
808
806
|
const v = JSON.stringify({
|
|
809
807
|
actions: [],
|
|
810
808
|
businessobj: {
|
|
811
|
-
description: e?.description,
|
|
809
|
+
description: e?.description ? e?.description : "",
|
|
812
810
|
file: t,
|
|
813
811
|
fullnameowner: "",
|
|
814
812
|
icon: "",
|
|
@@ -821,7 +819,7 @@ async function Ye(e, t = void 0, s = void 0, n = void 0, i = void 0, r = void 0)
|
|
|
821
819
|
},
|
|
822
820
|
collabspace: o
|
|
823
821
|
});
|
|
824
|
-
m(
|
|
822
|
+
m(k, {
|
|
825
823
|
method: "POST",
|
|
826
824
|
headers: {
|
|
827
825
|
Accept: "application/json",
|
|
@@ -830,14 +828,14 @@ async function Ye(e, t = void 0, s = void 0, n = void 0, i = void 0, r = void 0)
|
|
|
830
828
|
},
|
|
831
829
|
data: v,
|
|
832
830
|
type: "json",
|
|
833
|
-
onComplete(
|
|
834
|
-
|
|
831
|
+
onComplete(N, Ce, be) {
|
|
832
|
+
s && s(N);
|
|
835
833
|
},
|
|
836
|
-
onFailure(
|
|
834
|
+
onFailure(N) {
|
|
837
835
|
console.warn(
|
|
838
836
|
"_3DSpace_Upload_Doc | pushFileInFcs | onFailure",
|
|
839
|
-
{ url:
|
|
840
|
-
), i && i(
|
|
837
|
+
{ url: k, bodyRequest: v, err: N }
|
|
838
|
+
), i && i(N);
|
|
841
839
|
}
|
|
842
840
|
});
|
|
843
841
|
},
|
|
@@ -867,7 +865,7 @@ async function Ye(e, t = void 0, s = void 0, n = void 0, i = void 0, r = void 0)
|
|
|
867
865
|
}
|
|
868
866
|
);
|
|
869
867
|
}
|
|
870
|
-
async function ze(e, t,
|
|
868
|
+
async function ze(e, t, n, s = void 0, i = void 0) {
|
|
871
869
|
e.space, e.token, e.ctx, J(
|
|
872
870
|
e,
|
|
873
871
|
t,
|
|
@@ -877,10 +875,10 @@ async function ze(e, t, s, n = void 0, i = void 0) {
|
|
|
877
875
|
e,
|
|
878
876
|
t,
|
|
879
877
|
a,
|
|
880
|
-
|
|
878
|
+
n,
|
|
881
879
|
o,
|
|
882
880
|
(c) => {
|
|
883
|
-
|
|
881
|
+
s && s(c);
|
|
884
882
|
},
|
|
885
883
|
(c) => {
|
|
886
884
|
i && i(c);
|
|
@@ -892,7 +890,7 @@ async function ze(e, t, s, n = void 0, i = void 0) {
|
|
|
892
890
|
}
|
|
893
891
|
);
|
|
894
892
|
}
|
|
895
|
-
async function He(e, t,
|
|
893
|
+
async function He(e, t, n, s, i = void 0, r = void 0) {
|
|
896
894
|
oe(
|
|
897
895
|
e,
|
|
898
896
|
(a) => {
|
|
@@ -900,13 +898,13 @@ async function He(e, t, s, n, i = void 0, r = void 0) {
|
|
|
900
898
|
K(
|
|
901
899
|
o,
|
|
902
900
|
t,
|
|
903
|
-
|
|
901
|
+
n,
|
|
904
902
|
(c) => {
|
|
905
903
|
re(
|
|
906
904
|
e,
|
|
907
905
|
c,
|
|
908
|
-
s,
|
|
909
906
|
n,
|
|
907
|
+
s,
|
|
910
908
|
(d) => {
|
|
911
909
|
d?.data.length ? i && i(d) : r && r({
|
|
912
910
|
success: !1,
|
|
@@ -923,10 +921,10 @@ async function He(e, t, s, n, i = void 0, r = void 0) {
|
|
|
923
921
|
(a) => console.warn(a)
|
|
924
922
|
);
|
|
925
923
|
}
|
|
926
|
-
function oe(e, t = void 0,
|
|
924
|
+
function oe(e, t = void 0, n = void 0) {
|
|
927
925
|
if (e?.space && e.token && e.ctx) {
|
|
928
|
-
let
|
|
929
|
-
m(
|
|
926
|
+
let s = `${e.space}/resources/v1/modeler/documents/files/CheckinTicket`;
|
|
927
|
+
m(s, {
|
|
930
928
|
method: "PUT",
|
|
931
929
|
headers: {
|
|
932
930
|
ENO_CSRF_TOKEN: e.token,
|
|
@@ -942,17 +940,18 @@ function oe(e, t = void 0, s = void 0) {
|
|
|
942
940
|
t && t(i);
|
|
943
941
|
},
|
|
944
942
|
onFailure(i) {
|
|
945
|
-
|
|
943
|
+
n && n(i);
|
|
946
944
|
}
|
|
947
945
|
});
|
|
948
946
|
} else
|
|
949
947
|
console.log("Error de credentials", e);
|
|
950
948
|
}
|
|
951
|
-
function K(e, t,
|
|
949
|
+
function K(e, t, n, s = void 0, i = void 0, r = void 0) {
|
|
950
|
+
console.log("pushFileInFcs", { fcs__jobTicket: e, fileData: t, fileName: n });
|
|
952
951
|
let a = new FormData();
|
|
953
952
|
t instanceof Blob || (t = new Blob([t], {
|
|
954
953
|
type: "text/plain"
|
|
955
|
-
})), a.append("__fcs__jobTicket", e.dataelements.ticket), a.append("file_0", t,
|
|
954
|
+
})), a.append("__fcs__jobTicket", e.dataelements.ticket), a.append("file-name", n), a.append("file_0", t, n), a.append("file-title", n), a.append("file-description", n);
|
|
956
955
|
let o = e.dataelements.ticketURL;
|
|
957
956
|
const c = new XMLHttpRequest();
|
|
958
957
|
c.open("POST", o, !0), c.upload.onprogress = function(d) {
|
|
@@ -961,13 +960,13 @@ function K(e, t, s, n = void 0, i = void 0, r = void 0) {
|
|
|
961
960
|
r && r(u);
|
|
962
961
|
}
|
|
963
962
|
}, c.onload = function() {
|
|
964
|
-
c.status === 200 ?
|
|
963
|
+
c.status === 200 ? s && s(c.responseText.replace(/[\n\r]/g, "")) : i && i(c.statusText);
|
|
965
964
|
}, c.onerror = function() {
|
|
966
965
|
i && i(c.statusText);
|
|
967
966
|
}, c.send(a);
|
|
968
967
|
}
|
|
969
|
-
function re(e, t,
|
|
970
|
-
console.log("relatedDocAndFile", { credentials: e, receipt: t, filename:
|
|
968
|
+
function re(e, t, n, s = void 0, i = void 0, r = void 0) {
|
|
969
|
+
console.log("relatedDocAndFile", { credentials: e, receipt: t, filename: n });
|
|
971
970
|
const a = (d) => d.indexOf(".") === -1 ? d : d.split(".").slice(0, -1).join(".");
|
|
972
971
|
let o = "temp_" + O.now().ts, c = e.space + "/resources/v1/modeler/documents/?e6w-lang=fr&e6w-timezone=-120&xrequestedwith=xmlhttprequest";
|
|
973
972
|
m(c, {
|
|
@@ -983,14 +982,14 @@ function re(e, t, s, n = void 0, i = void 0, r = void 0) {
|
|
|
983
982
|
{
|
|
984
983
|
type: "Document",
|
|
985
984
|
dataelements: {
|
|
986
|
-
title: a(
|
|
987
|
-
description:
|
|
985
|
+
title: a(n),
|
|
986
|
+
description: s
|
|
988
987
|
},
|
|
989
988
|
relateddata: {
|
|
990
989
|
files: [
|
|
991
990
|
{
|
|
992
991
|
dataelements: {
|
|
993
|
-
title:
|
|
992
|
+
title: n,
|
|
994
993
|
receipt: `${t}
|
|
995
994
|
`
|
|
996
995
|
}
|
|
@@ -1013,7 +1012,7 @@ function re(e, t, s, n = void 0, i = void 0, r = void 0) {
|
|
|
1013
1012
|
}
|
|
1014
1013
|
});
|
|
1015
1014
|
}
|
|
1016
|
-
function F(e, t = void 0,
|
|
1015
|
+
function F(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0, a = !1) {
|
|
1017
1016
|
const o = `${e.space}/resources/modeler/pno/person?current=true&select=preferredcredentials&select=collabspaces`;
|
|
1018
1017
|
m(o, {
|
|
1019
1018
|
method: "GET",
|
|
@@ -1029,10 +1028,10 @@ function F(e, t = void 0, s = void 0, n = void 0, i = void 0, r = void 0, a = !1
|
|
|
1029
1028
|
(_, y, w) => y === w.findIndex(
|
|
1030
1029
|
(S) => S.organization.pid === _.organization.pid && S.role.pid === _.role.pid
|
|
1031
1030
|
)
|
|
1032
|
-
),
|
|
1031
|
+
), n && (Array.isArray(n) ? n.forEach((_) => {
|
|
1033
1032
|
l || g.forEach((y) => {
|
|
1034
|
-
if (_ === y.role.name &&
|
|
1035
|
-
l = _, f =
|
|
1033
|
+
if (_ === y.role.name && s === y.organization.title)
|
|
1034
|
+
l = _, f = s;
|
|
1036
1035
|
else if (_ === y.role.name) {
|
|
1037
1036
|
let w = g.filter(
|
|
1038
1037
|
(S) => S.role.name === _
|
|
@@ -1041,11 +1040,11 @@ function F(e, t = void 0, s = void 0, n = void 0, i = void 0, r = void 0, a = !1
|
|
|
1041
1040
|
}
|
|
1042
1041
|
});
|
|
1043
1042
|
}) : g.forEach((_) => {
|
|
1044
|
-
if (
|
|
1045
|
-
l =
|
|
1046
|
-
else if (
|
|
1043
|
+
if (n === _.role.name && s === _.organization.title)
|
|
1044
|
+
l = n, f = s;
|
|
1045
|
+
else if (n === _.role.name) {
|
|
1047
1046
|
let y = g.filter(
|
|
1048
|
-
(w) => w.role.name ===
|
|
1047
|
+
(w) => w.role.name === n
|
|
1049
1048
|
);
|
|
1050
1049
|
y.length === 1 ? (l = y[0].role.name, f = y[0].organization.title) : r(y);
|
|
1051
1050
|
}
|
|
@@ -1062,29 +1061,29 @@ function F(e, t = void 0, s = void 0, n = void 0, i = void 0, r = void 0, a = !1
|
|
|
1062
1061
|
}
|
|
1063
1062
|
});
|
|
1064
1063
|
}
|
|
1065
|
-
async function q(e, t = void 0,
|
|
1064
|
+
async function q(e, t = void 0, n = void 0) {
|
|
1066
1065
|
return (!e.objID || e.objID === "") && (console.warn(
|
|
1067
1066
|
"_3DSpace_download_doc() / Le paramètre objectId est obligatoire"
|
|
1068
|
-
),
|
|
1067
|
+
), n && n(
|
|
1069
1068
|
"_3DSpace_download_doc() / Le paramètre objectId est obligatoire"
|
|
1070
1069
|
)), (e.space === "" || !e.space) && (console.warn(
|
|
1071
1070
|
"_3DSpace_download_doc() / Le paramètre space est obligatoire"
|
|
1072
|
-
),
|
|
1071
|
+
), n && n("_3DSpace_download_doc() / Le paramètre space est obligatoire")), (e.token === "" || !e.token) && te(
|
|
1073
1072
|
e,
|
|
1074
|
-
(
|
|
1075
|
-
e.token =
|
|
1073
|
+
(s) => {
|
|
1074
|
+
e.token = s;
|
|
1076
1075
|
},
|
|
1077
|
-
(
|
|
1078
|
-
console.log("☠️ error => ",
|
|
1076
|
+
(s) => {
|
|
1077
|
+
console.log("☠️ error => ", s);
|
|
1079
1078
|
}
|
|
1080
|
-
), new Promise((
|
|
1081
|
-
|
|
1079
|
+
), new Promise((s, i) => {
|
|
1080
|
+
D(
|
|
1082
1081
|
e,
|
|
1083
1082
|
(r) => {
|
|
1084
1083
|
e?.returnType === "blob" ? (console.log("ticketURL blob", r), fetch(r).then((a) => a.blob()).then((a) => {
|
|
1085
1084
|
t && t(a);
|
|
1086
1085
|
}).catch((a) => {
|
|
1087
|
-
|
|
1086
|
+
n && n(a);
|
|
1088
1087
|
})) : m(r, {
|
|
1089
1088
|
onComplete(a) {
|
|
1090
1089
|
let o;
|
|
@@ -1093,10 +1092,10 @@ async function q(e, t = void 0, s = void 0) {
|
|
|
1093
1092
|
} catch {
|
|
1094
1093
|
o = a;
|
|
1095
1094
|
}
|
|
1096
|
-
t && typeof t == "function" && t(o),
|
|
1095
|
+
t && typeof t == "function" && t(o), s(o);
|
|
1097
1096
|
},
|
|
1098
1097
|
onFailure(a, o, c) {
|
|
1099
|
-
|
|
1098
|
+
n && (console.log("error http", a), n({
|
|
1100
1099
|
msg: JSON.parse(a),
|
|
1101
1100
|
headers: o,
|
|
1102
1101
|
xhr: c
|
|
@@ -1109,26 +1108,26 @@ async function q(e, t = void 0, s = void 0) {
|
|
|
1109
1108
|
});
|
|
1110
1109
|
},
|
|
1111
1110
|
(r) => {
|
|
1112
|
-
|
|
1111
|
+
n && n(r), console.log("*_3dspace_download_doc / error file URL *", r), i(r);
|
|
1113
1112
|
}
|
|
1114
1113
|
);
|
|
1115
1114
|
});
|
|
1116
1115
|
}
|
|
1117
|
-
async function ce(e, t,
|
|
1116
|
+
async function ce(e, t, n = void 0, s = void 0) {
|
|
1118
1117
|
typeof t < "u" && Array.isArray(t) && t?.length > 0 ? H({
|
|
1119
1118
|
credentials: e,
|
|
1120
1119
|
myArray: t,
|
|
1121
1120
|
chunk: 80,
|
|
1122
1121
|
fn_to_call: de
|
|
1123
1122
|
}, (r) => {
|
|
1124
|
-
|
|
1123
|
+
n && n(r);
|
|
1125
1124
|
}) : (console.warn(
|
|
1126
1125
|
"La liste d'objects dans la fonction _3DSpace_download_multidoc est vide ou non défini."
|
|
1127
|
-
),
|
|
1126
|
+
), s && s(
|
|
1128
1127
|
"La liste d'objects dans la fonction _3DSpace_download_multidoc est vide ou non défini."
|
|
1129
1128
|
));
|
|
1130
1129
|
}
|
|
1131
|
-
function de(e, t,
|
|
1130
|
+
function de(e, t, n = void 0, s = void 0, i = void 0) {
|
|
1132
1131
|
const r = [];
|
|
1133
1132
|
t.forEach((c) => {
|
|
1134
1133
|
r.push({
|
|
@@ -1149,7 +1148,7 @@ function de(e, t, s = void 0, n = void 0, i = void 0) {
|
|
|
1149
1148
|
type: "json",
|
|
1150
1149
|
onComplete(c) {
|
|
1151
1150
|
const d = c.data;
|
|
1152
|
-
c.success === !0 && (
|
|
1151
|
+
c.success === !0 && (n && n(), d.forEach((u) => {
|
|
1153
1152
|
try {
|
|
1154
1153
|
const p = u.dataelements.fileName, f = u.dataelements.ticketURL;
|
|
1155
1154
|
m(f, {
|
|
@@ -1160,7 +1159,7 @@ function de(e, t, s = void 0, n = void 0, i = void 0) {
|
|
|
1160
1159
|
} catch {
|
|
1161
1160
|
g = l.blob();
|
|
1162
1161
|
}
|
|
1163
|
-
|
|
1162
|
+
s && s({
|
|
1164
1163
|
objectId: u.id,
|
|
1165
1164
|
headers: h,
|
|
1166
1165
|
fileName: p,
|
|
@@ -1181,7 +1180,7 @@ function de(e, t, s = void 0, n = void 0, i = void 0) {
|
|
|
1181
1180
|
}
|
|
1182
1181
|
});
|
|
1183
1182
|
}
|
|
1184
|
-
function Qe(e, t,
|
|
1183
|
+
function Qe(e, t, n = void 0, s = void 0) {
|
|
1185
1184
|
return new Promise((i) => {
|
|
1186
1185
|
if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
|
|
1187
1186
|
const r = `${e.space}/resources/v1/modeler/dslc/maturity/getNextStates`;
|
|
@@ -1202,17 +1201,17 @@ function Qe(e, t, s = void 0, n = void 0) {
|
|
|
1202
1201
|
}),
|
|
1203
1202
|
type: "json",
|
|
1204
1203
|
onComplete(o) {
|
|
1205
|
-
|
|
1204
|
+
n && n(o);
|
|
1206
1205
|
},
|
|
1207
1206
|
onFailure(o) {
|
|
1208
|
-
|
|
1207
|
+
s && s(o);
|
|
1209
1208
|
}
|
|
1210
1209
|
};
|
|
1211
1210
|
m(r, a);
|
|
1212
1211
|
}
|
|
1213
1212
|
});
|
|
1214
1213
|
}
|
|
1215
|
-
function Ze(e, t,
|
|
1214
|
+
function Ze(e, t, n, s = void 0, i = void 0) {
|
|
1216
1215
|
return new Promise((r) => {
|
|
1217
1216
|
if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
|
|
1218
1217
|
const a = `${e.space}/resources/v1/modeler/dslc/maturity/changeState`;
|
|
@@ -1228,13 +1227,13 @@ function Ze(e, t, s, n = void 0, i = void 0) {
|
|
|
1228
1227
|
data: [
|
|
1229
1228
|
{
|
|
1230
1229
|
id: t,
|
|
1231
|
-
nextState:
|
|
1230
|
+
nextState: n
|
|
1232
1231
|
}
|
|
1233
1232
|
]
|
|
1234
1233
|
}),
|
|
1235
1234
|
type: "json",
|
|
1236
1235
|
onComplete(c) {
|
|
1237
|
-
|
|
1236
|
+
s && s(c);
|
|
1238
1237
|
},
|
|
1239
1238
|
onFailure(c) {
|
|
1240
1239
|
i && i(c);
|
|
@@ -1244,7 +1243,7 @@ function Ze(e, t, s, n = void 0, i = void 0) {
|
|
|
1244
1243
|
}
|
|
1245
1244
|
});
|
|
1246
1245
|
}
|
|
1247
|
-
function et(e, t,
|
|
1246
|
+
function et(e, t, n = void 0, s = void 0) {
|
|
1248
1247
|
return new Promise((i) => {
|
|
1249
1248
|
if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
|
|
1250
1249
|
const r = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
|
|
@@ -1275,17 +1274,17 @@ function et(e, t, s = void 0, n = void 0) {
|
|
|
1275
1274
|
}),
|
|
1276
1275
|
type: "json",
|
|
1277
1276
|
onComplete(o) {
|
|
1278
|
-
|
|
1277
|
+
n && n(o);
|
|
1279
1278
|
},
|
|
1280
1279
|
onFailure(o) {
|
|
1281
|
-
|
|
1280
|
+
s && s(o);
|
|
1282
1281
|
}
|
|
1283
1282
|
};
|
|
1284
1283
|
m(r, a);
|
|
1285
1284
|
}
|
|
1286
1285
|
});
|
|
1287
1286
|
}
|
|
1288
|
-
function tt(e, t,
|
|
1287
|
+
function tt(e, t, n = void 0, s = void 0) {
|
|
1289
1288
|
return new Promise((i) => {
|
|
1290
1289
|
if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
|
|
1291
1290
|
const r = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
|
|
@@ -1322,17 +1321,17 @@ function tt(e, t, s = void 0, n = void 0) {
|
|
|
1322
1321
|
}),
|
|
1323
1322
|
type: "json",
|
|
1324
1323
|
onComplete(o) {
|
|
1325
|
-
|
|
1324
|
+
n && n(o);
|
|
1326
1325
|
},
|
|
1327
1326
|
onFailure(o) {
|
|
1328
|
-
|
|
1327
|
+
s && s(o);
|
|
1329
1328
|
}
|
|
1330
1329
|
};
|
|
1331
1330
|
m(r, a);
|
|
1332
1331
|
}
|
|
1333
1332
|
});
|
|
1334
1333
|
}
|
|
1335
|
-
function nt(e, t,
|
|
1334
|
+
function nt(e, t, n, s = void 0, i = void 0) {
|
|
1336
1335
|
return new Promise((r) => {
|
|
1337
1336
|
if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
|
|
1338
1337
|
const a = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
|
|
@@ -1358,9 +1357,9 @@ function nt(e, t, s, n = void 0, i = void 0) {
|
|
|
1358
1357
|
data: [
|
|
1359
1358
|
{
|
|
1360
1359
|
physicalid: t,
|
|
1361
|
-
proposedRevision:
|
|
1360
|
+
proposedRevision: n,
|
|
1362
1361
|
modifiedAttributes: {
|
|
1363
|
-
revision:
|
|
1362
|
+
revision: n
|
|
1364
1363
|
}
|
|
1365
1364
|
}
|
|
1366
1365
|
],
|
|
@@ -1369,7 +1368,7 @@ function nt(e, t, s, n = void 0, i = void 0) {
|
|
|
1369
1368
|
}),
|
|
1370
1369
|
type: "json",
|
|
1371
1370
|
onComplete(c) {
|
|
1372
|
-
|
|
1371
|
+
s && s(c);
|
|
1373
1372
|
},
|
|
1374
1373
|
onFailure(c) {
|
|
1375
1374
|
i && i(c);
|
|
@@ -1380,20 +1379,20 @@ function nt(e, t, s, n = void 0, i = void 0) {
|
|
|
1380
1379
|
});
|
|
1381
1380
|
}
|
|
1382
1381
|
function ue(e) {
|
|
1383
|
-
return new Promise((t,
|
|
1384
|
-
const
|
|
1385
|
-
m(
|
|
1382
|
+
return new Promise((t, n) => {
|
|
1383
|
+
const s = `${e.space}/resources/pno/person/getsecuritycontext&tenant=${e.tenant.toUpperCase()}&xrequestedwith=xmlhttprequest`;
|
|
1384
|
+
m(s, {
|
|
1386
1385
|
method: "GET",
|
|
1387
1386
|
onComplete(r) {
|
|
1388
1387
|
t(r);
|
|
1389
1388
|
},
|
|
1390
1389
|
onFailure(r) {
|
|
1391
|
-
|
|
1390
|
+
n(r);
|
|
1392
1391
|
}
|
|
1393
1392
|
});
|
|
1394
1393
|
});
|
|
1395
1394
|
}
|
|
1396
|
-
function st(e, t,
|
|
1395
|
+
function st(e, t, n = void 0, s = void 0) {
|
|
1397
1396
|
return new Promise(async (i, r) => {
|
|
1398
1397
|
const { tenant: a, ctx: o, space: c } = e;
|
|
1399
1398
|
(!a || !o || !c) && r({ error: "Erreur de credentials", tenant: a, ctx: o, space: c });
|
|
@@ -1419,22 +1418,22 @@ function st(e, t, s = void 0, n = void 0) {
|
|
|
1419
1418
|
}),
|
|
1420
1419
|
type: "json",
|
|
1421
1420
|
onComplete(f) {
|
|
1422
|
-
|
|
1421
|
+
n && n(f), i(f);
|
|
1423
1422
|
},
|
|
1424
1423
|
onFailure(f) {
|
|
1425
|
-
|
|
1424
|
+
s && s(f), r(f);
|
|
1426
1425
|
}
|
|
1427
1426
|
};
|
|
1428
1427
|
m(d, p);
|
|
1429
1428
|
});
|
|
1430
1429
|
}
|
|
1431
|
-
function it(e, t,
|
|
1430
|
+
function it(e, t, n, s, i = void 0, r = void 0) {
|
|
1432
1431
|
return new Promise((a) => {
|
|
1433
1432
|
const o = `${e.space}/resources/v1/modeler/dsbks/dsbks:Bookmark`;
|
|
1434
1433
|
let c = {
|
|
1435
1434
|
attributes: {
|
|
1436
|
-
title:
|
|
1437
|
-
description:
|
|
1435
|
+
title: n,
|
|
1436
|
+
description: s,
|
|
1438
1437
|
inheritedAccess: "no"
|
|
1439
1438
|
}
|
|
1440
1439
|
}, d = {
|
|
@@ -1461,7 +1460,7 @@ function it(e, t, s, n, i = void 0, r = void 0) {
|
|
|
1461
1460
|
m(o, u);
|
|
1462
1461
|
});
|
|
1463
1462
|
}
|
|
1464
|
-
function at(e, t,
|
|
1463
|
+
function at(e, t, n, s, i = void 0, r = void 0) {
|
|
1465
1464
|
return console.log("credentials", e), new Promise((a) => {
|
|
1466
1465
|
`${e.space}`, JSON.stringify({
|
|
1467
1466
|
csrf: {
|
|
@@ -1475,8 +1474,8 @@ function at(e, t, s, n, i = void 0, r = void 0) {
|
|
|
1475
1474
|
relId: t,
|
|
1476
1475
|
id: t,
|
|
1477
1476
|
dataelements: {
|
|
1478
|
-
personList:
|
|
1479
|
-
eventsList:
|
|
1477
|
+
personList: n,
|
|
1478
|
+
eventsList: s
|
|
1480
1479
|
},
|
|
1481
1480
|
tenant: e.tenant
|
|
1482
1481
|
}
|
|
@@ -1485,12 +1484,12 @@ function at(e, t, s, n, i = void 0, r = void 0) {
|
|
|
1485
1484
|
});
|
|
1486
1485
|
}
|
|
1487
1486
|
//!SECTION
|
|
1488
|
-
function ot(e, t = void 0,
|
|
1489
|
-
const
|
|
1487
|
+
function ot(e, t = void 0, n = void 0) {
|
|
1488
|
+
const s = {
|
|
1490
1489
|
base: `${e.space}`,
|
|
1491
1490
|
uri: "/resources/bps/cspaces",
|
|
1492
1491
|
optTenant: `tenant=${e.tenant}`
|
|
1493
|
-
}, i = `${
|
|
1492
|
+
}, i = `${s.base}${s.uri}?${s.optTenant}`;
|
|
1494
1493
|
m(i, {
|
|
1495
1494
|
method: "GET",
|
|
1496
1495
|
headers: {
|
|
@@ -1502,54 +1501,54 @@ function ot(e, t = void 0, s = void 0) {
|
|
|
1502
1501
|
t && t(o, a);
|
|
1503
1502
|
},
|
|
1504
1503
|
onFailure(r, a, o) {
|
|
1505
|
-
|
|
1504
|
+
n && n({ response: r, headers: a, xhr: o });
|
|
1506
1505
|
}
|
|
1507
1506
|
});
|
|
1508
1507
|
}
|
|
1509
|
-
function rt(e, t,
|
|
1510
|
-
|
|
1508
|
+
function rt(e, t, n, s) {
|
|
1509
|
+
D(
|
|
1511
1510
|
e.space,
|
|
1512
1511
|
t,
|
|
1513
1512
|
(i) => {
|
|
1514
1513
|
m(i, {
|
|
1515
1514
|
header: { ENO_CSRF_TOKEN: e.token },
|
|
1516
1515
|
onComplete: (r) => {
|
|
1517
|
-
|
|
1516
|
+
n && n(r);
|
|
1518
1517
|
},
|
|
1519
1518
|
onFailure: (r) => {
|
|
1520
|
-
console.log("error http", r),
|
|
1519
|
+
console.log("error http", r), s && s(r);
|
|
1521
1520
|
}
|
|
1522
1521
|
});
|
|
1523
1522
|
}
|
|
1524
1523
|
);
|
|
1525
1524
|
}
|
|
1526
|
-
async function ct(e, t,
|
|
1525
|
+
async function ct(e, t, n = void 0, s = void 0) {
|
|
1527
1526
|
return new Promise((i) => {
|
|
1528
|
-
|
|
1527
|
+
D(e, t, (r) => {
|
|
1529
1528
|
m(r, {
|
|
1530
|
-
onComplete: (a, o, c) => (i(JSON.parse(a)),
|
|
1529
|
+
onComplete: (a, o, c) => (i(JSON.parse(a)), n && n(JSON.parse(a), o, c), i),
|
|
1531
1530
|
onFailure: (a, o, c) => {
|
|
1532
|
-
|
|
1531
|
+
s && s(a, o, c), console.log(a, o?.errormsg);
|
|
1533
1532
|
}
|
|
1534
1533
|
});
|
|
1535
1534
|
});
|
|
1536
1535
|
});
|
|
1537
1536
|
}
|
|
1538
|
-
function dt(e, t,
|
|
1537
|
+
function dt(e, t, n, s = void 0, i = void 0) {
|
|
1539
1538
|
const r = new Blob([JSON.stringify(t)], { type: "text/plain" });
|
|
1540
|
-
e = { ...e, objID:
|
|
1539
|
+
e = { ...e, objID: n }, U(
|
|
1541
1540
|
e,
|
|
1542
1541
|
(a) => {
|
|
1543
1542
|
console.log("_3DSpace_get_csrf | onDone | data", a);
|
|
1544
1543
|
const o = a.datas.relateddata.files[0].id, c = a.datas.relateddata.files[0].dataelements.title;
|
|
1545
1544
|
G(
|
|
1546
1545
|
e,
|
|
1547
|
-
|
|
1546
|
+
n,
|
|
1548
1547
|
o,
|
|
1549
1548
|
r,
|
|
1550
1549
|
c,
|
|
1551
1550
|
(d) => {
|
|
1552
|
-
|
|
1551
|
+
s && s(d);
|
|
1553
1552
|
},
|
|
1554
1553
|
(d) => {
|
|
1555
1554
|
i && i(d);
|
|
@@ -1563,39 +1562,39 @@ function dt(e, t, s, n = void 0, i = void 0) {
|
|
|
1563
1562
|
}
|
|
1564
1563
|
let B, E;
|
|
1565
1564
|
const A = [];
|
|
1566
|
-
async function ut(e, t = void 0,
|
|
1565
|
+
async function ut(e, t = void 0, n = void 0) {
|
|
1567
1566
|
e.objID && e.objID !== "" ? U(
|
|
1568
1567
|
e,
|
|
1569
|
-
(
|
|
1570
|
-
t && t(
|
|
1568
|
+
(s) => {
|
|
1569
|
+
t && t(s);
|
|
1571
1570
|
},
|
|
1572
|
-
(
|
|
1573
|
-
|
|
1571
|
+
(s) => {
|
|
1572
|
+
n && n(s);
|
|
1574
1573
|
}
|
|
1575
1574
|
) : (e.objID === null || e.objID === "") && b(
|
|
1576
1575
|
e,
|
|
1577
|
-
(
|
|
1578
|
-
t && t({ rep:
|
|
1576
|
+
(s) => {
|
|
1577
|
+
t && t({ rep: s, msg: "Pas d'objID, ou invalide" });
|
|
1579
1578
|
},
|
|
1580
|
-
(
|
|
1581
|
-
|
|
1579
|
+
(s) => {
|
|
1580
|
+
n && n({ msg: "Pas d'objID et erreur sur le Space", err: s });
|
|
1582
1581
|
}
|
|
1583
1582
|
);
|
|
1584
1583
|
}
|
|
1585
|
-
async function pt(e, t = void 0,
|
|
1584
|
+
async function pt(e, t = void 0, n = void 0) {
|
|
1586
1585
|
console.log("getDatasByTenant (getDocuments)", e), await q(
|
|
1587
1586
|
e,
|
|
1588
|
-
(
|
|
1587
|
+
(s) => {
|
|
1589
1588
|
const i = {};
|
|
1590
|
-
i.obj =
|
|
1589
|
+
i.obj = s, console.log("getDatasByTenant (getDocuments) _datas", i), t && t?.(i);
|
|
1591
1590
|
},
|
|
1592
|
-
(
|
|
1593
|
-
|
|
1591
|
+
(s) => {
|
|
1592
|
+
n && n?.(s);
|
|
1594
1593
|
}
|
|
1595
1594
|
);
|
|
1596
1595
|
}
|
|
1597
|
-
function lt(e, t = void 0,
|
|
1598
|
-
const
|
|
1596
|
+
function lt(e, t = void 0, n = void 0) {
|
|
1597
|
+
const s = [];
|
|
1599
1598
|
if (!e.objIds && !Array.isArray(e.objIds) && e.objIds.length === 0) {
|
|
1600
1599
|
console.warn("la liste est vide ou n'est pas un tableau");
|
|
1601
1600
|
return;
|
|
@@ -1605,21 +1604,21 @@ function lt(e, t = void 0, s = void 0) {
|
|
|
1605
1604
|
e,
|
|
1606
1605
|
i.objID,
|
|
1607
1606
|
(a) => {
|
|
1608
|
-
|
|
1607
|
+
s.push({ [i.name]: a }), i.name === "dbProjets" && (B = a.affaires.map((o) => o.objectID), pe(e, E)), r === e.objIds.length - 1 && (t && t(s), delete e.objIds, delete e.datas);
|
|
1609
1608
|
}
|
|
1610
1609
|
);
|
|
1611
1610
|
});
|
|
1612
1611
|
}
|
|
1613
|
-
function pe(e, t,
|
|
1612
|
+
function pe(e, t, n = void 0, s = void 0) {
|
|
1614
1613
|
ce(
|
|
1615
1614
|
e,
|
|
1616
1615
|
B,
|
|
1617
1616
|
(i) => {
|
|
1618
1617
|
const r = [...t];
|
|
1619
|
-
r.find((a) => a.objectID === i.objectId).data = i.data, E = r, A.push(i.data),
|
|
1618
|
+
r.find((a) => a.objectID === i.objectId).data = i.data, E = r, A.push(i.data), n && n(A);
|
|
1620
1619
|
},
|
|
1621
1620
|
(i) => {
|
|
1622
|
-
|
|
1621
|
+
s && (s(i), console.log(i));
|
|
1623
1622
|
}
|
|
1624
1623
|
);
|
|
1625
1624
|
}
|
|
@@ -1643,7 +1642,7 @@ const le = "FA35FB9B177A280065800EA0000F599C", fe = [
|
|
|
1643
1642
|
order_by: "desc",
|
|
1644
1643
|
tag: "testTag"
|
|
1645
1644
|
};
|
|
1646
|
-
function ft(e, t,
|
|
1645
|
+
function ft(e, t, n = void 0, s = void 0) {
|
|
1647
1646
|
const { space: i, tenant: r } = e, { objId: a, pred: o, tag: c } = t, d = {
|
|
1648
1647
|
uri: "/resources/6w/tags",
|
|
1649
1648
|
otpCTX: "SecurityContext=preferred",
|
|
@@ -1683,27 +1682,27 @@ function ft(e, t, s = void 0, n = void 0) {
|
|
|
1683
1682
|
e,
|
|
1684
1683
|
t,
|
|
1685
1684
|
(w) => {
|
|
1686
|
-
|
|
1685
|
+
n && n(w);
|
|
1687
1686
|
},
|
|
1688
1687
|
(w) => {
|
|
1689
|
-
|
|
1688
|
+
s && s(w);
|
|
1690
1689
|
}
|
|
1691
1690
|
);
|
|
1692
1691
|
},
|
|
1693
1692
|
(h, g) => {
|
|
1694
1693
|
const _ = h;
|
|
1695
|
-
_.msg = g.errormsg, _.errCode = g.errorcode, console.log("❌ sendDirectMessage => ", _),
|
|
1694
|
+
_.msg = g.errormsg, _.errCode = g.errorcode, console.log("❌ sendDirectMessage => ", _), s && s(_);
|
|
1696
1695
|
}
|
|
1697
1696
|
);
|
|
1698
1697
|
}, 2e3);
|
|
1699
1698
|
},
|
|
1700
1699
|
onFailure(f, l) {
|
|
1701
1700
|
const h = f;
|
|
1702
|
-
h.msg = l.errormsg, h.errCode = l.errorcode, console.log("❌ sendDirectMessage => ", h),
|
|
1701
|
+
h.msg = l.errormsg, h.errCode = l.errorcode, console.log("❌ sendDirectMessage => ", h), s && s(h);
|
|
1703
1702
|
}
|
|
1704
1703
|
});
|
|
1705
1704
|
}
|
|
1706
|
-
function he(e, t,
|
|
1705
|
+
function he(e, t, n = void 0, s = void 0) {
|
|
1707
1706
|
console.log("obj ", t);
|
|
1708
1707
|
const i = t.info.name, r = {
|
|
1709
1708
|
baseUrl: `https://${e.tenant.toLowerCase()}-eu1-fedsearch.3dexperience.3ds.com`,
|
|
@@ -1778,15 +1777,15 @@ function he(e, t, s = void 0, n = void 0) {
|
|
|
1778
1777
|
data: JSON.stringify(d),
|
|
1779
1778
|
onComplete(u) {
|
|
1780
1779
|
const p = JSON.parse(u);
|
|
1781
|
-
|
|
1780
|
+
n(p);
|
|
1782
1781
|
},
|
|
1783
1782
|
onFailure(u, p) {
|
|
1784
1783
|
const f = u;
|
|
1785
|
-
f.msg = p.errormsg, f.errCode = p.errorcode, console.log("❌ sendDirectMessage => ", f),
|
|
1784
|
+
f.msg = p.errormsg, f.errCode = p.errorcode, console.log("❌ sendDirectMessage => ", f), s && s(f), console.log("Erreur de recuperation d'id du doc et des tags", u);
|
|
1786
1785
|
}
|
|
1787
1786
|
});
|
|
1788
1787
|
}
|
|
1789
|
-
function mt(e, t,
|
|
1788
|
+
function mt(e, t, n = void 0, s = void 0) {
|
|
1790
1789
|
const { objId: i, pred: r, tag: a } = t, o = {
|
|
1791
1790
|
uri: "/resources/6w/tags",
|
|
1792
1791
|
otpCTX: "SecurityContext=preferred",
|
|
@@ -1814,15 +1813,15 @@ function mt(e, t, s = void 0, n = void 0) {
|
|
|
1814
1813
|
Accept: "application/json,text/javascript,*/*"
|
|
1815
1814
|
},
|
|
1816
1815
|
onComplete(u) {
|
|
1817
|
-
|
|
1816
|
+
n && n(u);
|
|
1818
1817
|
},
|
|
1819
1818
|
onFailure(u, p) {
|
|
1820
1819
|
const f = u;
|
|
1821
|
-
f.msg = p.errormsg, f.errCode = p.errorcode, console.log("❌ sendDirectMessage => ", f),
|
|
1820
|
+
f.msg = p.errormsg, f.errCode = p.errorcode, console.log("❌ sendDirectMessage => ", f), s && s(f);
|
|
1822
1821
|
}
|
|
1823
1822
|
});
|
|
1824
1823
|
}
|
|
1825
|
-
function ht(e, t = "",
|
|
1824
|
+
function ht(e, t = "", n = void 0, s = void 0) {
|
|
1826
1825
|
const { space: i } = e;
|
|
1827
1826
|
if (t === "")
|
|
1828
1827
|
return;
|
|
@@ -1837,29 +1836,29 @@ function ht(e, t = "", s = void 0, n = void 0) {
|
|
|
1837
1836
|
headers: a,
|
|
1838
1837
|
data: c,
|
|
1839
1838
|
onComplete(d) {
|
|
1840
|
-
|
|
1839
|
+
n && n(JSON.parse(d));
|
|
1841
1840
|
},
|
|
1842
1841
|
onFailure(d, u) {
|
|
1843
1842
|
const p = d;
|
|
1844
|
-
p.msg = u.error,
|
|
1843
|
+
p.msg = u.error, s && s(p);
|
|
1845
1844
|
}
|
|
1846
1845
|
});
|
|
1847
1846
|
}
|
|
1848
|
-
async function C(e, t = void 0,
|
|
1849
|
-
const
|
|
1850
|
-
return m(
|
|
1847
|
+
async function C(e, t = void 0, n = void 0) {
|
|
1848
|
+
const s = e._3DSwym + "/api/index/tk";
|
|
1849
|
+
return m(s, {
|
|
1851
1850
|
onComplete(i, r, a) {
|
|
1852
1851
|
const o = JSON.parse(i);
|
|
1853
1852
|
if (t)
|
|
1854
1853
|
return t(o), e.token = o?.result?.ServerToken;
|
|
1855
1854
|
},
|
|
1856
1855
|
onFailure(i) {
|
|
1857
|
-
|
|
1856
|
+
n && n(i);
|
|
1858
1857
|
}
|
|
1859
1858
|
});
|
|
1860
1859
|
}
|
|
1861
|
-
function gt(e, t = void 0,
|
|
1862
|
-
const
|
|
1860
|
+
function gt(e, t = void 0, n = void 0) {
|
|
1861
|
+
const s = `${e._3DSwym}/api/exalead/whatsnew`, i = {
|
|
1863
1862
|
params: {
|
|
1864
1863
|
community_id: null,
|
|
1865
1864
|
hash_key: null,
|
|
@@ -1870,7 +1869,7 @@ function gt(e, t = void 0, s = void 0) {
|
|
|
1870
1869
|
}
|
|
1871
1870
|
};
|
|
1872
1871
|
C(e, (r) => {
|
|
1873
|
-
m(
|
|
1872
|
+
m(s, {
|
|
1874
1873
|
method: "POST",
|
|
1875
1874
|
headers: {
|
|
1876
1875
|
"X-DS-SWYM-CSRFTOKEN": r.result.ServerToken,
|
|
@@ -1883,13 +1882,13 @@ function gt(e, t = void 0, s = void 0) {
|
|
|
1883
1882
|
t && t(a, o);
|
|
1884
1883
|
},
|
|
1885
1884
|
onFailure(a, o) {
|
|
1886
|
-
|
|
1885
|
+
n && n(a, o);
|
|
1887
1886
|
}
|
|
1888
1887
|
});
|
|
1889
1888
|
});
|
|
1890
1889
|
}
|
|
1891
|
-
function _t(e, t = void 0,
|
|
1892
|
-
const
|
|
1890
|
+
function _t(e, t = void 0, n = void 0) {
|
|
1891
|
+
const s = `${e._3DSwym}/api/Recommendation/getpeoplefamiliartocurrentuser`, i = {
|
|
1893
1892
|
params: {
|
|
1894
1893
|
idsToFilterArr: [],
|
|
1895
1894
|
mode: "offline",
|
|
@@ -1899,7 +1898,7 @@ function _t(e, t = void 0, s = void 0) {
|
|
|
1899
1898
|
}
|
|
1900
1899
|
};
|
|
1901
1900
|
C(e, (r) => {
|
|
1902
|
-
m(
|
|
1901
|
+
m(s, {
|
|
1903
1902
|
method: "POST",
|
|
1904
1903
|
headers: {
|
|
1905
1904
|
"X-DS-SWYM-CSRFTOKEN": r.result.ServerToken,
|
|
@@ -1913,18 +1912,18 @@ function _t(e, t = void 0, s = void 0) {
|
|
|
1913
1912
|
t && t(c, a);
|
|
1914
1913
|
},
|
|
1915
1914
|
onFailure(a, o) {
|
|
1916
|
-
|
|
1915
|
+
n && n(a, o);
|
|
1917
1916
|
}
|
|
1918
1917
|
});
|
|
1919
1918
|
});
|
|
1920
1919
|
}
|
|
1921
|
-
function yt(e, t = void 0,
|
|
1922
|
-
const
|
|
1920
|
+
function yt(e, t = void 0, n = void 0) {
|
|
1921
|
+
const s = {
|
|
1923
1922
|
base: e._3DSwym,
|
|
1924
1923
|
uri: "/api/community/listmycommunities",
|
|
1925
1924
|
limit: `/limit/${e.limit ? e.limit : 500}`,
|
|
1926
1925
|
page: `/page/${e.page ? e.page : "1"}`
|
|
1927
|
-
}, i = `${
|
|
1926
|
+
}, i = `${s.base}${s.uri}${s.limit}${s.page}`, r = [];
|
|
1928
1927
|
C(e, (a) => {
|
|
1929
1928
|
m(i, {
|
|
1930
1929
|
method: "GET",
|
|
@@ -1949,18 +1948,18 @@ function yt(e, t = void 0, s = void 0) {
|
|
|
1949
1948
|
(g) => {
|
|
1950
1949
|
f++, h.members = g, r.push(h), f === p.length && t && t(r);
|
|
1951
1950
|
},
|
|
1952
|
-
(g) =>
|
|
1951
|
+
(g) => n(g)
|
|
1953
1952
|
);
|
|
1954
1953
|
});
|
|
1955
1954
|
},
|
|
1956
1955
|
onFailure(o, c) {
|
|
1957
1956
|
const d = o;
|
|
1958
|
-
d.status = c.status, d.response = c.errormsg,
|
|
1957
|
+
d.status = c.status, d.response = c.errormsg, n && n(d);
|
|
1959
1958
|
}
|
|
1960
1959
|
});
|
|
1961
1960
|
});
|
|
1962
1961
|
}
|
|
1963
|
-
function ge(e, t,
|
|
1962
|
+
function ge(e, t, n, s) {
|
|
1964
1963
|
const i = `${e._3DSwym}/api/community/listmembers`, r = {
|
|
1965
1964
|
params: {
|
|
1966
1965
|
page: e.page ? e.page : 1,
|
|
@@ -1979,18 +1978,18 @@ function ge(e, t, s, n) {
|
|
|
1979
1978
|
data: JSON.stringify(r),
|
|
1980
1979
|
type: "json",
|
|
1981
1980
|
onComplete(o, c, d) {
|
|
1982
|
-
|
|
1981
|
+
n && n(o);
|
|
1983
1982
|
},
|
|
1984
1983
|
onFailure(o, c) {
|
|
1985
1984
|
const d = o;
|
|
1986
|
-
d.status = c.status, d.response = c.errormsg,
|
|
1985
|
+
d.status = c.status, d.response = c.errormsg, s && s(d);
|
|
1987
1986
|
}
|
|
1988
1987
|
});
|
|
1989
1988
|
});
|
|
1990
1989
|
}
|
|
1991
|
-
function St(e, t = void 0,
|
|
1992
|
-
const
|
|
1993
|
-
e.commu_id || (e.commu_id =
|
|
1990
|
+
function St(e, t = void 0, n = void 0) {
|
|
1991
|
+
const s = "YXdA5x4DSUKtlAi2wmnyTA";
|
|
1992
|
+
e.commu_id || (e.commu_id = s);
|
|
1994
1993
|
const i = `${e._3DSwym}/api/v2/communities/${e.commu_id}/ideas/statuses`;
|
|
1995
1994
|
C(e, (r) => {
|
|
1996
1995
|
m(i, {
|
|
@@ -2006,12 +2005,12 @@ function St(e, t = void 0, s = void 0) {
|
|
|
2006
2005
|
},
|
|
2007
2006
|
onFailure(a, o) {
|
|
2008
2007
|
const c = a;
|
|
2009
|
-
c.status = o.status, c.response = o.errormsg,
|
|
2008
|
+
c.status = o.status, c.response = o.errormsg, n && n(c);
|
|
2010
2009
|
}
|
|
2011
2010
|
});
|
|
2012
2011
|
});
|
|
2013
2012
|
}
|
|
2014
|
-
function wt(e, t,
|
|
2013
|
+
function wt(e, t, n = void 0, s = void 0) {
|
|
2015
2014
|
const { listAllContacts: i, currentUser: r, _3DSwym: a } = e;
|
|
2016
2015
|
console.log("__listAllContacts", i.hits);
|
|
2017
2016
|
const o = `${a}/api/directmessages`, c = {
|
|
@@ -2029,7 +2028,7 @@ function wt(e, t, s = void 0, n = void 0) {
|
|
|
2029
2028
|
p !== void 0 && (d.id_msg = p.id, u = !0, P(e, d));
|
|
2030
2029
|
},
|
|
2031
2030
|
(p) => {
|
|
2032
|
-
u = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", p),
|
|
2031
|
+
u = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", p), s && s(p), d.id_msg = "";
|
|
2033
2032
|
}
|
|
2034
2033
|
), u === !1 && setTimeout(() => {
|
|
2035
2034
|
u === !1 && C(e, (p) => {
|
|
@@ -2044,17 +2043,17 @@ function wt(e, t, s = void 0, n = void 0) {
|
|
|
2044
2043
|
type: "json",
|
|
2045
2044
|
onComplete(f, l, h) {
|
|
2046
2045
|
const g = f;
|
|
2047
|
-
g.reponse = JSON.parse(h.response), g.status = h.status,
|
|
2046
|
+
g.reponse = JSON.parse(h.response), g.status = h.status, n && n(g), d.id_msg = g.result.id, P(e, d);
|
|
2048
2047
|
},
|
|
2049
2048
|
onFailure(f, l, h) {
|
|
2050
2049
|
const g = f;
|
|
2051
|
-
g.msg = l.errormsg, g.status = l.status,
|
|
2050
|
+
g.msg = l.errormsg, g.status = l.status, s && s(g);
|
|
2052
2051
|
}
|
|
2053
2052
|
});
|
|
2054
2053
|
});
|
|
2055
2054
|
}, 500);
|
|
2056
2055
|
}
|
|
2057
|
-
function _e(e, t,
|
|
2056
|
+
function _e(e, t, n, s) {
|
|
2058
2057
|
const i = `${e._3DSwym}/api/directmessages/lite?with_favorites=false`;
|
|
2059
2058
|
C(e, (r) => {
|
|
2060
2059
|
m(i, {
|
|
@@ -2074,16 +2073,16 @@ function _e(e, t, s, n) {
|
|
|
2074
2073
|
f.push(l.login);
|
|
2075
2074
|
}), JSON.stringify(f) === JSON.stringify(d);
|
|
2076
2075
|
});
|
|
2077
|
-
|
|
2076
|
+
n && u !== void 0 ? n(u) : (s || u === void 0) && s(u);
|
|
2078
2077
|
},
|
|
2079
2078
|
onFailure(a) {
|
|
2080
2079
|
const o = a;
|
|
2081
|
-
o.msg = headers.errormsg, o.errCode = headers.errorcode, console.log("❌ sendDirectMessageLite => ", o),
|
|
2080
|
+
o.msg = headers.errormsg, o.errCode = headers.errorcode, console.log("❌ sendDirectMessageLite => ", o), s && s(o);
|
|
2082
2081
|
}
|
|
2083
2082
|
});
|
|
2084
2083
|
});
|
|
2085
2084
|
}
|
|
2086
|
-
function P(e, t,
|
|
2085
|
+
function P(e, t, n = void 0, s = void 0) {
|
|
2087
2086
|
const i = {
|
|
2088
2087
|
base: e._3DSwym,
|
|
2089
2088
|
uri: "/api/community",
|
|
@@ -2111,23 +2110,23 @@ function P(e, t, s = void 0, n = void 0) {
|
|
|
2111
2110
|
type: "json",
|
|
2112
2111
|
onComplete(c, d, u) {
|
|
2113
2112
|
const p = c;
|
|
2114
|
-
p.status = u.status, p.response = JSON.parse(u.response), console.log("✅ _3dSwym_sendDirectMessageData => ", p),
|
|
2113
|
+
p.status = u.status, p.response = JSON.parse(u.response), console.log("✅ _3dSwym_sendDirectMessageData => ", p), n && n(p);
|
|
2115
2114
|
},
|
|
2116
2115
|
onFailure(c, d) {
|
|
2117
2116
|
const u = c;
|
|
2118
|
-
u.msg = d.errormsg, u.errCode = d.errorcode, console.log("❌ sendDirectMessage => ", u),
|
|
2117
|
+
u.msg = d.errormsg, u.errCode = d.errorcode, console.log("❌ sendDirectMessage => ", u), s && s(u);
|
|
2119
2118
|
}
|
|
2120
2119
|
});
|
|
2121
2120
|
});
|
|
2122
2121
|
}
|
|
2123
2122
|
function ye(e) {
|
|
2124
|
-
const t = (/* @__PURE__ */ new Date()).toLocaleDateString(),
|
|
2123
|
+
const t = (/* @__PURE__ */ new Date()).toLocaleDateString(), n = (/* @__PURE__ */ new Date()).toLocaleTimeString();
|
|
2125
2124
|
return `<p>${e} </p>
|
|
2126
2125
|
<br/>
|
|
2127
2126
|
<hr/>
|
|
2128
|
-
<p><u>envoyer :</u>Le <b>${t} à ${
|
|
2127
|
+
<p><u>envoyer :</u>Le <b>${t} à ${n}</b></p>`;
|
|
2129
2128
|
}
|
|
2130
|
-
function Ct(e, t,
|
|
2129
|
+
function Ct(e, t, n = void 0, s = void 0) {
|
|
2131
2130
|
const i = `${e.space}/api/idea/add`, r = e.swymCommunities.find(
|
|
2132
2131
|
(c) => c.id === t.community_id
|
|
2133
2132
|
), a = e.swymCommunities.find(
|
|
@@ -2157,20 +2156,20 @@ function Ct(e, t, s = void 0, n = void 0) {
|
|
|
2157
2156
|
type: "json",
|
|
2158
2157
|
onComplete(u, p, f) {
|
|
2159
2158
|
const l = JSON.parse(u);
|
|
2160
|
-
l.status = f.status, l.response = f.response,
|
|
2159
|
+
l.status = f.status, l.response = f.response, n && n(l);
|
|
2161
2160
|
},
|
|
2162
2161
|
onFailure(u, p, f) {
|
|
2163
2162
|
const l = u;
|
|
2164
|
-
l.status = p.status, l.response = p.errormsg,
|
|
2163
|
+
l.status = p.status, l.response = p.errormsg, s && s(l);
|
|
2165
2164
|
}
|
|
2166
2165
|
});
|
|
2167
2166
|
});
|
|
2168
2167
|
}
|
|
2169
|
-
function bt(e, t = void 0,
|
|
2170
|
-
const
|
|
2168
|
+
function bt(e, t = void 0, n = void 0) {
|
|
2169
|
+
const s = { base: e.space, uri: "/api/idea/add" };
|
|
2171
2170
|
if (!Array.isArray(e.swymCommunities)) {
|
|
2172
2171
|
const a = "☠️ swymCommunities doit être un tableau d'objets de communautés";
|
|
2173
|
-
throw new Error(`Erreur sur cette requête : ${
|
|
2172
|
+
throw new Error(`Erreur sur cette requête : ${s.base + s.uri}`, {
|
|
2174
2173
|
cause: a
|
|
2175
2174
|
});
|
|
2176
2175
|
}
|
|
@@ -2178,19 +2177,19 @@ function bt(e, t = void 0, s = void 0) {
|
|
|
2178
2177
|
(a) => a.id === e.community_id
|
|
2179
2178
|
) === -1) {
|
|
2180
2179
|
const a = "la communauté n'existe pas dans la liste des communautés du Swym";
|
|
2181
|
-
throw new Error(`Erreur sur cette requête : ${
|
|
2180
|
+
throw new Error(`Erreur sur cette requête : ${s.base + s.uri}`, {
|
|
2182
2181
|
cause: a
|
|
2183
2182
|
});
|
|
2184
2183
|
}
|
|
2185
2184
|
if (e.community_id && e.community_id === "") {
|
|
2186
2185
|
const a = "☠️ community_id doit être un String qui contient l'id de la communauté dans laquelle on souhaite publier l'idée.";
|
|
2187
|
-
throw new Error(`Erreur sur cette requête : ${
|
|
2186
|
+
throw new Error(`Erreur sur cette requête : ${s.base + s.uri}`, {
|
|
2188
2187
|
cause: a
|
|
2189
2188
|
});
|
|
2190
2189
|
}
|
|
2191
2190
|
if (e.title && e.title === "") {
|
|
2192
2191
|
const a = "☠️ title doit être un String.";
|
|
2193
|
-
throw new Error(`Erreur sur cette requête : ${
|
|
2192
|
+
throw new Error(`Erreur sur cette requête : ${s.base + s.uri}`, {
|
|
2194
2193
|
cause: a
|
|
2195
2194
|
});
|
|
2196
2195
|
}
|
|
@@ -2209,7 +2208,7 @@ function bt(e, t = void 0, s = void 0) {
|
|
|
2209
2208
|
C(e, (a) => {
|
|
2210
2209
|
if (!a)
|
|
2211
2210
|
throw new Error(
|
|
2212
|
-
`☠️ token n'est pas disponible pour cette requête : ${
|
|
2211
|
+
`☠️ token n'est pas disponible pour cette requête : ${s.base + s.uri}`,
|
|
2213
2212
|
{
|
|
2214
2213
|
cause: a
|
|
2215
2214
|
}
|
|
@@ -2228,18 +2227,18 @@ function bt(e, t = void 0, s = void 0) {
|
|
|
2228
2227
|
},
|
|
2229
2228
|
onFailure(c, d, u) {
|
|
2230
2229
|
const p = JSON.parse(d), f = JSON.parse(c), l = new Error(
|
|
2231
|
-
`Erreur sur cette requête : ${
|
|
2230
|
+
`Erreur sur cette requête : ${s.base + s.uri}`,
|
|
2232
2231
|
{
|
|
2233
2232
|
cause: { head: p, rep: f }
|
|
2234
2233
|
}
|
|
2235
2234
|
);
|
|
2236
|
-
|
|
2235
|
+
n && n(l);
|
|
2237
2236
|
}
|
|
2238
2237
|
};
|
|
2239
|
-
m(
|
|
2238
|
+
m(s.base + s.uri, o);
|
|
2240
2239
|
});
|
|
2241
2240
|
}
|
|
2242
|
-
function Tt(e, t,
|
|
2241
|
+
function Tt(e, t, n = void 0, s = void 0) {
|
|
2243
2242
|
const i = `${e.space}/api/idea/delete`, r = {
|
|
2244
2243
|
params: {
|
|
2245
2244
|
community_id: t.community_id,
|
|
@@ -2257,17 +2256,17 @@ function Tt(e, t, s = void 0, n = void 0) {
|
|
|
2257
2256
|
data: JSON.stringify(r),
|
|
2258
2257
|
type: "json",
|
|
2259
2258
|
onComplete(o, c, d) {
|
|
2260
|
-
|
|
2259
|
+
n && n(o);
|
|
2261
2260
|
},
|
|
2262
2261
|
onFailure(o, c, d) {
|
|
2263
2262
|
const u = o;
|
|
2264
|
-
u.status = c.status, u.response = c.errormsg,
|
|
2263
|
+
u.status = c.status, u.response = c.errormsg, s && s(u);
|
|
2265
2264
|
}
|
|
2266
2265
|
});
|
|
2267
2266
|
});
|
|
2268
2267
|
}
|
|
2269
|
-
function Ot(e, t = void 0,
|
|
2270
|
-
const { _3DSwym:
|
|
2268
|
+
function Ot(e, t = void 0, n = void 0) {
|
|
2269
|
+
const { _3DSwym: s, _3DSwym_token: i } = e, r = `${s}/api/idea/get`;
|
|
2271
2270
|
if (e.idPost === "") {
|
|
2272
2271
|
const o = "☠️ idPost est vide, vous devez renseigner un identifiant de post";
|
|
2273
2272
|
throw new Error(`Erreur sur cette requête : ${r}`, { cause: o });
|
|
@@ -2290,13 +2289,13 @@ function Ot(e, t = void 0, s = void 0) {
|
|
|
2290
2289
|
},
|
|
2291
2290
|
onFailure(o) {
|
|
2292
2291
|
const c = o;
|
|
2293
|
-
c.status = headers.status, c.response = headers.errormsg,
|
|
2292
|
+
c.status = headers.status, c.response = headers.errormsg, n && n(c);
|
|
2294
2293
|
}
|
|
2295
2294
|
});
|
|
2296
2295
|
}
|
|
2297
|
-
function $t(e, t,
|
|
2296
|
+
function $t(e, t, n) {
|
|
2298
2297
|
const {
|
|
2299
|
-
_3DSwym:
|
|
2298
|
+
_3DSwym: s,
|
|
2300
2299
|
_3DSwym_token: i,
|
|
2301
2300
|
idPost: r,
|
|
2302
2301
|
title: a,
|
|
@@ -2305,7 +2304,7 @@ function $t(e, t, s) {
|
|
|
2305
2304
|
status_id: d,
|
|
2306
2305
|
message: u
|
|
2307
2306
|
} = e, p = {
|
|
2308
|
-
base: `${
|
|
2307
|
+
base: `${s}`,
|
|
2309
2308
|
uri: "/api/idea/edit"
|
|
2310
2309
|
}, l = {
|
|
2311
2310
|
method: "POST",
|
|
@@ -2334,12 +2333,12 @@ function $t(e, t, s) {
|
|
|
2334
2333
|
y.status = _.status, t && t(y);
|
|
2335
2334
|
},
|
|
2336
2335
|
onFailure(h) {
|
|
2337
|
-
|
|
2336
|
+
n && n(h);
|
|
2338
2337
|
}
|
|
2339
2338
|
};
|
|
2340
2339
|
m(p.base + p.uri, l);
|
|
2341
2340
|
}
|
|
2342
|
-
function xt(e, t,
|
|
2341
|
+
function xt(e, t, n = void 0, s = void 0) {
|
|
2343
2342
|
const { _3DSwym: i } = e;
|
|
2344
2343
|
let { community_id: r, limit: a, page: o, search: c } = t;
|
|
2345
2344
|
const d = [], u = 1;
|
|
@@ -2369,12 +2368,12 @@ function xt(e, t, s = void 0, n = void 0) {
|
|
|
2369
2368
|
(R) => R.title.includes(c)
|
|
2370
2369
|
);
|
|
2371
2370
|
if (T) {
|
|
2372
|
-
|
|
2371
|
+
n(T);
|
|
2373
2372
|
return;
|
|
2374
2373
|
}
|
|
2375
2374
|
}
|
|
2376
|
-
if (
|
|
2377
|
-
p = !0,
|
|
2375
|
+
if (n && f < o && !c) {
|
|
2376
|
+
p = !0, n(d);
|
|
2378
2377
|
return;
|
|
2379
2378
|
}
|
|
2380
2379
|
_(y);
|
|
@@ -2382,7 +2381,7 @@ function xt(e, t, s = void 0, n = void 0) {
|
|
|
2382
2381
|
},
|
|
2383
2382
|
onFailure(w, S) {
|
|
2384
2383
|
const T = w;
|
|
2385
|
-
T.status = S.status, T.response = S.errormsg,
|
|
2384
|
+
T.status = S.status, T.response = S.errormsg, s && s(T);
|
|
2386
2385
|
}
|
|
2387
2386
|
});
|
|
2388
2387
|
};
|
|
@@ -2464,9 +2463,9 @@ function Se(e) {
|
|
|
2464
2463
|
<p>
|
|
2465
2464
|
</p>` : e;
|
|
2466
2465
|
}
|
|
2467
|
-
function
|
|
2468
|
-
const { tenant:
|
|
2469
|
-
if (
|
|
2466
|
+
function It(e, t = void 0, n = void 0) {
|
|
2467
|
+
const { tenant: s, _3DSwym: i, _3DSwym_token: r, community_id: a, idea_id: o } = e;
|
|
2468
|
+
if (s && i && r && a && o) {
|
|
2470
2469
|
const c = `${i}/api/idea/forward`;
|
|
2471
2470
|
m(c, {
|
|
2472
2471
|
method: "POST",
|
|
@@ -2476,8 +2475,8 @@ function Nt(e, t = void 0, s = void 0) {
|
|
|
2476
2475
|
"X-DS-SWYM-CSRFTOKEN": r
|
|
2477
2476
|
},
|
|
2478
2477
|
data: JSON.stringify({
|
|
2479
|
-
community_uri: `swym:prd:${
|
|
2480
|
-
content_uri: `swym:prd:${
|
|
2478
|
+
community_uri: `swym:prd:${s.toUpperCase()}:community:${a}`,
|
|
2479
|
+
content_uri: `swym:prd:${s.toUpperCase()}:idea:${o}`,
|
|
2481
2480
|
timeout: 3e4
|
|
2482
2481
|
}),
|
|
2483
2482
|
type: "json",
|
|
@@ -2486,19 +2485,19 @@ function Nt(e, t = void 0, s = void 0) {
|
|
|
2486
2485
|
},
|
|
2487
2486
|
onFailure(d, u) {
|
|
2488
2487
|
const p = d;
|
|
2489
|
-
p.status = u.status, p.response = u.errormsg,
|
|
2488
|
+
p.status = u.status, p.response = u.errormsg, n && n(p);
|
|
2490
2489
|
}
|
|
2491
2490
|
});
|
|
2492
2491
|
} else
|
|
2493
|
-
|
|
2492
|
+
n && n({
|
|
2494
2493
|
status: "error",
|
|
2495
2494
|
msg: "Credentials incomplet !",
|
|
2496
2495
|
attend: "tenant, _3DSwym , _3DSwym_token, community_id, idea_id",
|
|
2497
2496
|
credentials: e
|
|
2498
2497
|
});
|
|
2499
2498
|
}
|
|
2500
|
-
function
|
|
2501
|
-
return new Promise((
|
|
2499
|
+
function Nt(e, t = void 0, n = void 0) {
|
|
2500
|
+
return new Promise((s, i) => {
|
|
2502
2501
|
try {
|
|
2503
2502
|
let r;
|
|
2504
2503
|
if (e._3DDashboard) {
|
|
@@ -2514,20 +2513,20 @@ function It(e, t = void 0, s = void 0) {
|
|
|
2514
2513
|
} catch (f) {
|
|
2515
2514
|
i("ERROR | _3DSwym_get_currentUser => JSON.Parse()", f);
|
|
2516
2515
|
}
|
|
2517
|
-
console.log(p), p.first_name = p?.firstName ? p.firstName : "", p.last_name = p?.lastName ? p.lastName : "", console.log("_3DSwym_get_currentUser | info", p), r = p,
|
|
2516
|
+
console.log(p), p.first_name = p?.firstName ? p.firstName : "", p.last_name = p?.lastName ? p.lastName : "", console.log("_3DSwym_get_currentUser | info", p), r = p, s(p);
|
|
2518
2517
|
},
|
|
2519
2518
|
onFailure(o) {
|
|
2520
2519
|
i("ERROR | _3DSwym_get_currentUser => _3DDashboard + /api/users/current", o);
|
|
2521
2520
|
}
|
|
2522
2521
|
});
|
|
2523
2522
|
}
|
|
2524
|
-
r ?
|
|
2523
|
+
r ? s(r) : i("ERROR | _3DSwym_get_currentUser => CURRENT_USER is null");
|
|
2525
2524
|
} catch (r) {
|
|
2526
2525
|
i("ERROR | _3DSwym_get_currentUser => ", r);
|
|
2527
2526
|
}
|
|
2528
2527
|
});
|
|
2529
2528
|
}
|
|
2530
|
-
function Ut(e, t,
|
|
2529
|
+
function Ut(e, t, n = void 0, s = void 0) {
|
|
2531
2530
|
const i = e.space + "/api/user/find/login/" + t;
|
|
2532
2531
|
C(
|
|
2533
2532
|
e,
|
|
@@ -2537,23 +2536,23 @@ function Ut(e, t, s = void 0, n = void 0) {
|
|
|
2537
2536
|
headers: { "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken },
|
|
2538
2537
|
onComplete(a, o, c) {
|
|
2539
2538
|
const d = JSON.parse(a);
|
|
2540
|
-
|
|
2539
|
+
n && n(d);
|
|
2541
2540
|
},
|
|
2542
2541
|
onFailure(a) {
|
|
2543
|
-
|
|
2542
|
+
s && s(a);
|
|
2544
2543
|
}
|
|
2545
2544
|
});
|
|
2546
2545
|
},
|
|
2547
|
-
|
|
2546
|
+
s
|
|
2548
2547
|
);
|
|
2549
2548
|
}
|
|
2550
|
-
function Ft(e, t = void 0,
|
|
2549
|
+
function Ft(e, t = void 0, n = void 0) {
|
|
2551
2550
|
const {
|
|
2552
|
-
_3DSwym:
|
|
2551
|
+
_3DSwym: s,
|
|
2553
2552
|
_3DSwym_token: i,
|
|
2554
2553
|
subjectUri: r,
|
|
2555
2554
|
richMessage: a
|
|
2556
|
-
} = e, o = `${
|
|
2555
|
+
} = e, o = `${s}/commentproxy/subjects/${r}/comments`, d = {
|
|
2557
2556
|
method: "POST",
|
|
2558
2557
|
headers: {
|
|
2559
2558
|
"Content-type": "application/json;charset=UTF-8",
|
|
@@ -2569,23 +2568,23 @@ function Ft(e, t = void 0, s = void 0) {
|
|
|
2569
2568
|
l.status = f.status, t && t(l);
|
|
2570
2569
|
},
|
|
2571
2570
|
onFailure(u) {
|
|
2572
|
-
|
|
2571
|
+
n && n(u);
|
|
2573
2572
|
}
|
|
2574
2573
|
};
|
|
2575
2574
|
m(o, d);
|
|
2576
2575
|
}
|
|
2577
|
-
function Rt(e, t = void 0,
|
|
2578
|
-
e.tenant && M(e, (
|
|
2579
|
-
const i =
|
|
2576
|
+
function Rt(e, t = void 0, n = void 0) {
|
|
2577
|
+
e.tenant && M(e, (s) => {
|
|
2578
|
+
const i = s.services.find((r) => r.id === "businessprocess")?.url + "/api/v2";
|
|
2580
2579
|
return t && t(i), i;
|
|
2581
2580
|
});
|
|
2582
2581
|
}
|
|
2583
|
-
function jt(e, t = void 0,
|
|
2584
|
-
console.log("_Iterop_Auth_CAS"), e.tenant && M(e, (
|
|
2585
|
-
console.log("serviceUrls",
|
|
2586
|
-
const i =
|
|
2582
|
+
function jt(e, t = void 0, n = void 0) {
|
|
2583
|
+
console.log("_Iterop_Auth_CAS"), e.tenant && M(e, (s) => {
|
|
2584
|
+
console.log("serviceUrls", s);
|
|
2585
|
+
const i = s.services.find(
|
|
2587
2586
|
(o) => o.id === "3dpassport"
|
|
2588
|
-
)?.url, r =
|
|
2587
|
+
)?.url, r = s.services.find((o) => o.id === "businessprocess")?.url + "/api/v2", a = `${i}/login/?cors=false&service=${r}/auth/cas`;
|
|
2589
2588
|
m(a, {
|
|
2590
2589
|
async onComplete(o) {
|
|
2591
2590
|
console.log("response", o);
|
|
@@ -2597,24 +2596,24 @@ function jt(e, t = void 0, s = void 0) {
|
|
|
2597
2596
|
});
|
|
2598
2597
|
},
|
|
2599
2598
|
onFailure(o) {
|
|
2600
|
-
|
|
2599
|
+
n && n(o);
|
|
2601
2600
|
}
|
|
2602
2601
|
});
|
|
2603
2602
|
});
|
|
2604
2603
|
}
|
|
2605
|
-
function
|
|
2604
|
+
function Dt(e, t = void 0, n = void 0) {
|
|
2606
2605
|
if (e.tenant) {
|
|
2607
|
-
const
|
|
2608
|
-
fetch(`https://api.uixhome.fr/${
|
|
2606
|
+
const s = e.tenant.toLowerCase();
|
|
2607
|
+
fetch(`https://api.uixhome.fr/${s}/iterop/jwtuser`, {
|
|
2609
2608
|
method: "POST"
|
|
2610
2609
|
}).then((i) => i.json()).then((i) => {
|
|
2611
2610
|
t && t(i);
|
|
2612
2611
|
}).catch((i) => {
|
|
2613
|
-
|
|
2612
|
+
n && n(i);
|
|
2614
2613
|
});
|
|
2615
2614
|
}
|
|
2616
2615
|
}
|
|
2617
|
-
async function
|
|
2616
|
+
async function kt(e, t, n = void 0, s = void 0) {
|
|
2618
2617
|
if (e.tenant) {
|
|
2619
2618
|
const i = e.tenant.toLowerCase();
|
|
2620
2619
|
fetch(
|
|
@@ -2623,61 +2622,61 @@ async function Dt(e, t, s = void 0, n = void 0) {
|
|
|
2623
2622
|
method: "GET"
|
|
2624
2623
|
}
|
|
2625
2624
|
).then((r) => r.json()).then((r) => {
|
|
2626
|
-
s && s(r);
|
|
2627
|
-
}).catch((r) => {
|
|
2628
2625
|
n && n(r);
|
|
2626
|
+
}).catch((r) => {
|
|
2627
|
+
s && s(r);
|
|
2629
2628
|
});
|
|
2630
2629
|
}
|
|
2631
2630
|
}
|
|
2632
|
-
async function vt(e, t,
|
|
2631
|
+
async function vt(e, t, n, s = void 0, i = void 0) {
|
|
2633
2632
|
if (e.tenant) {
|
|
2634
2633
|
const r = e.tenant.toLowerCase();
|
|
2635
2634
|
fetch(
|
|
2636
|
-
`https://api.uixhome.fr/${r}/iterop/businesstable/one/${
|
|
2635
|
+
`https://api.uixhome.fr/${r}/iterop/businesstable/one/${n}?t=${t}`,
|
|
2637
2636
|
{
|
|
2638
2637
|
method: "POST"
|
|
2639
2638
|
}
|
|
2640
2639
|
).then((a) => a.json()).then((a) => {
|
|
2641
|
-
|
|
2640
|
+
s && s(a);
|
|
2642
2641
|
}).catch((a) => {
|
|
2643
2642
|
i && i(a);
|
|
2644
2643
|
});
|
|
2645
2644
|
}
|
|
2646
2645
|
}
|
|
2647
|
-
async function At(e, t,
|
|
2646
|
+
async function At(e, t, n, s = void 0, i = void 0) {
|
|
2648
2647
|
if (e.tenant) {
|
|
2649
2648
|
const r = e.tenant.toLowerCase();
|
|
2650
2649
|
fetch(
|
|
2651
|
-
`https://api.uixhome.fr/${r}/iterop/businesstable/rows/${
|
|
2650
|
+
`https://api.uixhome.fr/${r}/iterop/businesstable/rows/${n}/?t=${t}`,
|
|
2652
2651
|
{
|
|
2653
2652
|
method: "POST"
|
|
2654
2653
|
}
|
|
2655
2654
|
).then((a) => a.json()).then((a) => {
|
|
2656
|
-
|
|
2655
|
+
s && s(a);
|
|
2657
2656
|
}).catch((a) => {
|
|
2658
2657
|
i && i(a);
|
|
2659
2658
|
});
|
|
2660
2659
|
}
|
|
2661
2660
|
}
|
|
2662
|
-
async function Pt(e, t,
|
|
2661
|
+
async function Pt(e, t, n, s, i = void 0, r = void 0) {
|
|
2663
2662
|
if (e.tenant) {
|
|
2664
2663
|
const a = e.tenant.toLowerCase();
|
|
2665
2664
|
fetch(
|
|
2666
|
-
`https://api.uixhome.fr/${a}/iterop/businesstable/patch/rows/${
|
|
2665
|
+
`https://api.uixhome.fr/${a}/iterop/businesstable/patch/rows/${n}/?t=${t}&b=${s}`,
|
|
2667
2666
|
{
|
|
2668
2667
|
method: "POST"
|
|
2669
2668
|
}
|
|
2670
2669
|
).then((o) => o.json()).then((o) => {
|
|
2671
2670
|
i && i(o);
|
|
2672
2671
|
}).catch((o) => {
|
|
2673
|
-
r && r(o,
|
|
2672
|
+
r && r(o, n, s);
|
|
2674
2673
|
});
|
|
2675
2674
|
}
|
|
2676
2675
|
}
|
|
2677
|
-
async function Lt(e, t,
|
|
2676
|
+
async function Lt(e, t, n, s, i, r = void 0, a = void 0) {
|
|
2678
2677
|
if (e.tenant) {
|
|
2679
|
-
const o = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/search/rows/${
|
|
2680
|
-
|
|
2678
|
+
const o = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/search/rows/${n}?t=${t}&c=${encodeURIComponent(
|
|
2679
|
+
s
|
|
2681
2680
|
)}&b=${encodeURIComponent(i)}`;
|
|
2682
2681
|
fetch(o, {
|
|
2683
2682
|
method: "POST"
|
|
@@ -2686,17 +2685,17 @@ async function Lt(e, t, s, n, i, r = void 0, a = void 0) {
|
|
|
2686
2685
|
}).catch((c) => {
|
|
2687
2686
|
a && a({
|
|
2688
2687
|
error: c,
|
|
2689
|
-
tableId:
|
|
2690
|
-
columns:
|
|
2688
|
+
tableId: n,
|
|
2689
|
+
columns: s,
|
|
2691
2690
|
body: i
|
|
2692
2691
|
});
|
|
2693
2692
|
});
|
|
2694
2693
|
}
|
|
2695
2694
|
}
|
|
2696
|
-
async function Mt(e, t,
|
|
2695
|
+
async function Mt(e, t, n, s, i = void 0, r = void 0) {
|
|
2697
2696
|
if (e.tenant) {
|
|
2698
|
-
const a = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/post/update/${
|
|
2699
|
-
|
|
2697
|
+
const a = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/post/update/${n}?t=${t}&b=${encodeURIComponent(
|
|
2698
|
+
s
|
|
2700
2699
|
)}`;
|
|
2701
2700
|
fetch(a, {
|
|
2702
2701
|
method: "POST"
|
|
@@ -2710,15 +2709,15 @@ async function Mt(e, t, s, n, i = void 0, r = void 0) {
|
|
|
2710
2709
|
});
|
|
2711
2710
|
}
|
|
2712
2711
|
}
|
|
2713
|
-
async function Jt(e, t,
|
|
2712
|
+
async function Jt(e, t, n, s = void 0, i = void 0) {
|
|
2714
2713
|
if (e.tenant) {
|
|
2715
2714
|
const r = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/post/create/?t=${t}&b=${encodeURIComponent(
|
|
2716
|
-
|
|
2715
|
+
n
|
|
2717
2716
|
)}`;
|
|
2718
2717
|
fetch(r, {
|
|
2719
2718
|
method: "POST"
|
|
2720
2719
|
}).then((a) => a.json()).then((a) => {
|
|
2721
|
-
|
|
2720
|
+
s && s(a);
|
|
2722
2721
|
}).catch((a) => {
|
|
2723
2722
|
i && i({
|
|
2724
2723
|
error: a,
|
|
@@ -2727,11 +2726,11 @@ async function Jt(e, t, s, n = void 0, i = void 0) {
|
|
|
2727
2726
|
});
|
|
2728
2727
|
}
|
|
2729
2728
|
}
|
|
2730
|
-
async function Gt(e, t,
|
|
2729
|
+
async function Gt(e, t, n, s, i = void 0, r = void 0) {
|
|
2731
2730
|
if (e.tenant) {
|
|
2732
2731
|
const a = e.tenant.toLowerCase();
|
|
2733
2732
|
fetch(
|
|
2734
|
-
`https://api.uixhome.fr/${a}/iterop/runtime/processes/${
|
|
2733
|
+
`https://api.uixhome.fr/${a}/iterop/runtime/processes/${n}?t=${t}&b=${s}`,
|
|
2735
2734
|
{
|
|
2736
2735
|
method: "POST"
|
|
2737
2736
|
}
|
|
@@ -2742,26 +2741,26 @@ async function Gt(e, t, s, n, i = void 0, r = void 0) {
|
|
|
2742
2741
|
});
|
|
2743
2742
|
}
|
|
2744
2743
|
}
|
|
2745
|
-
async function Kt(e, t,
|
|
2744
|
+
async function Kt(e, t, n, s = void 0, i = void 0) {
|
|
2746
2745
|
if (console.log("_Iterop_GetOneDependencyTable | Run"), e.tenant) {
|
|
2747
2746
|
const r = e.tenant.toLowerCase();
|
|
2748
2747
|
fetch(
|
|
2749
|
-
`https://api.uixhome.fr/${r}/iterop/dependencytable/one/${
|
|
2748
|
+
`https://api.uixhome.fr/${r}/iterop/dependencytable/one/${n}/?t=${t}`,
|
|
2750
2749
|
{
|
|
2751
2750
|
method: "POST"
|
|
2752
2751
|
}
|
|
2753
2752
|
).then((a) => a.json()).then((a) => {
|
|
2754
|
-
|
|
2753
|
+
s && s(a);
|
|
2755
2754
|
}).catch((a) => {
|
|
2756
2755
|
i && i(a);
|
|
2757
2756
|
});
|
|
2758
2757
|
}
|
|
2759
2758
|
}
|
|
2760
|
-
async function qt(e, t,
|
|
2759
|
+
async function qt(e, t, n, s, i, r = void 0, a = void 0) {
|
|
2761
2760
|
if (e.tenant) {
|
|
2762
2761
|
const o = e.tenant.toLowerCase();
|
|
2763
2762
|
fetch(
|
|
2764
|
-
`https://api.uixhome.fr/${o}/iterop/dependencytable/patch/${
|
|
2763
|
+
`https://api.uixhome.fr/${o}/iterop/dependencytable/patch/${n}/?t=${t}&cli=${s}&b=${i}`,
|
|
2765
2764
|
{
|
|
2766
2765
|
method: "POST"
|
|
2767
2766
|
}
|
|
@@ -2772,11 +2771,11 @@ async function qt(e, t, s, n, i, r = void 0, a = void 0) {
|
|
|
2772
2771
|
});
|
|
2773
2772
|
}
|
|
2774
2773
|
}
|
|
2775
|
-
async function Bt(e, t,
|
|
2774
|
+
async function Bt(e, t, n, s, i = void 0, r = void 0) {
|
|
2776
2775
|
if (e.tenant) {
|
|
2777
2776
|
const a = e.tenant.toLowerCase();
|
|
2778
2777
|
fetch(
|
|
2779
|
-
`https://api.uixhome.fr/${a}/iterop/dependencytable/put/${
|
|
2778
|
+
`https://api.uixhome.fr/${a}/iterop/dependencytable/put/${n}/?t=${t}&b=${s}`,
|
|
2780
2779
|
{
|
|
2781
2780
|
method: "POST"
|
|
2782
2781
|
}
|
|
@@ -2788,16 +2787,16 @@ async function Bt(e, t, s, n, i = void 0, r = void 0) {
|
|
|
2788
2787
|
}
|
|
2789
2788
|
}
|
|
2790
2789
|
//!SECTION
|
|
2791
|
-
async function Et(e, t,
|
|
2790
|
+
async function Et(e, t, n, s = void 0, i = void 0) {
|
|
2792
2791
|
if (e.tenant) {
|
|
2793
2792
|
const r = e.tenant.toLowerCase();
|
|
2794
2793
|
fetch(
|
|
2795
|
-
`https://api.uixhome.fr/${r}/iterop/list/one/${
|
|
2794
|
+
`https://api.uixhome.fr/${r}/iterop/list/one/${n}/?t=${t}`,
|
|
2796
2795
|
{
|
|
2797
2796
|
method: "POST"
|
|
2798
2797
|
}
|
|
2799
2798
|
).then((a) => a.json()).then((a) => {
|
|
2800
|
-
|
|
2799
|
+
s && s(a);
|
|
2801
2800
|
}).catch((a) => {
|
|
2802
2801
|
i && i(a);
|
|
2803
2802
|
});
|
|
@@ -2808,8 +2807,8 @@ function Xt(e) {
|
|
|
2808
2807
|
const t = "Hello " + e;
|
|
2809
2808
|
return console.log(t), t;
|
|
2810
2809
|
}
|
|
2811
|
-
function Wt(e, t = void 0,
|
|
2812
|
-
return console.log("credentials", e), new Promise((
|
|
2810
|
+
function Wt(e, t = void 0, n = void 0) {
|
|
2811
|
+
return console.log("credentials", e), new Promise((s) => {
|
|
2813
2812
|
if (e.token === "" && b(e), !e.space || e.space === "") {
|
|
2814
2813
|
const a = Z();
|
|
2815
2814
|
console.log("platformeInfo", a);
|
|
@@ -2876,13 +2875,13 @@ function Wt(e, t = void 0, s = void 0) {
|
|
|
2876
2875
|
t && t(d);
|
|
2877
2876
|
},
|
|
2878
2877
|
onFailure(d) {
|
|
2879
|
-
|
|
2878
|
+
n && n(d);
|
|
2880
2879
|
}
|
|
2881
2880
|
});
|
|
2882
2881
|
}
|
|
2883
2882
|
},
|
|
2884
2883
|
onFailure(a) {
|
|
2885
|
-
|
|
2884
|
+
n && n(a);
|
|
2886
2885
|
}
|
|
2887
2886
|
});
|
|
2888
2887
|
});
|
|
@@ -2906,7 +2905,7 @@ export {
|
|
|
2906
2905
|
de as _3DSpace_get_downloadTicket_multidoc,
|
|
2907
2906
|
Xe as _3DSpace_get_multiDocInfo,
|
|
2908
2907
|
F as _3DSpace_get_securityContexts,
|
|
2909
|
-
|
|
2908
|
+
D as _3DSpace_get_ticket,
|
|
2910
2909
|
nt as _3DSpace_lifecycle_changeRevision,
|
|
2911
2910
|
Ze as _3DSpace_lifecycle_changeState,
|
|
2912
2911
|
et as _3DSpace_lifecycle_getGraph,
|
|
@@ -2914,7 +2913,7 @@ export {
|
|
|
2914
2913
|
Qe as _3DSpace_lifecycle_getNextStates,
|
|
2915
2914
|
st as _3DSpace_lifecycle_getRevisions,
|
|
2916
2915
|
Ve as _3DSpace_put_docInfo,
|
|
2917
|
-
|
|
2916
|
+
It as _3DSwym_ForwardIdea,
|
|
2918
2917
|
Ft as _3DSwym_addComment,
|
|
2919
2918
|
wt as _3DSwym_buildDirectMessage,
|
|
2920
2919
|
Tt as _3DSwym_deleteIdea,
|
|
@@ -2928,7 +2927,7 @@ export {
|
|
|
2928
2927
|
ge as _3DSwym_getMembersCommunity,
|
|
2929
2928
|
Ot as _3DSwym_getOneIdea,
|
|
2930
2929
|
C as _3DSwym_get_Token,
|
|
2931
|
-
|
|
2930
|
+
Nt as _3DSwym_get_currentUser,
|
|
2932
2931
|
Ut as _3DSwym_get_findUser,
|
|
2933
2932
|
bt as _3DSwym_postIdea,
|
|
2934
2933
|
Ct as _3DSwym_postIdeaTemplate,
|
|
@@ -2943,15 +2942,15 @@ export {
|
|
|
2943
2942
|
Bt as _Iterop_PutDependencyTable,
|
|
2944
2943
|
Lt as _Iterop_businessTableSearchInRows,
|
|
2945
2944
|
Jt as _Iterop_createBusinessTable,
|
|
2946
|
-
|
|
2945
|
+
kt as _Iterop_getAllBusinessTables,
|
|
2947
2946
|
vt as _Iterop_getOneBusinessTable,
|
|
2948
2947
|
At as _Iterop_getOneBusinessTableRows,
|
|
2949
|
-
|
|
2948
|
+
Dt as _Iterop_jwtUser,
|
|
2950
2949
|
Gt as _Iterop_runProcess,
|
|
2951
2950
|
Mt as _Iterop_updateBusinessTable,
|
|
2952
|
-
|
|
2951
|
+
ke as _getMe,
|
|
2953
2952
|
Z as _getPlateformInfos,
|
|
2954
|
-
|
|
2953
|
+
De as _getPlatformServices,
|
|
2955
2954
|
M as _getServiceUrl,
|
|
2956
2955
|
ve as _getServiceUrl_3DPassport,
|
|
2957
2956
|
Rt as _getServiceUrl_Iterop,
|
|
@@ -2966,13 +2965,13 @@ export {
|
|
|
2966
2965
|
Me as createUserGroups,
|
|
2967
2966
|
pe as dataMixing,
|
|
2968
2967
|
Ke as deleteUserGroups,
|
|
2969
|
-
|
|
2968
|
+
Ie as findAdresse,
|
|
2970
2969
|
ot as getAllContextSecurity,
|
|
2971
2970
|
te as getCSRFToken,
|
|
2972
2971
|
xe as getCommunes,
|
|
2973
2972
|
Je as getComplementUG,
|
|
2974
2973
|
rt as getDataFrom3DSpace,
|
|
2975
|
-
|
|
2974
|
+
Ne as getDataFromGouvFr,
|
|
2976
2975
|
pt as getDatasByTenant,
|
|
2977
2976
|
lt as getDatasFrom3DSpace,
|
|
2978
2977
|
ct as getDownloadDocument,
|