@beam3_dev/api_module 0.0.49 → 0.0.51
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 +480 -486
- package/dist/wb3Api.js.map +1 -1
- package/dist/wb3Api.umd.cjs +5 -5
- package/dist/wb3Api.umd.cjs.map +1 -1
- package/package.json +1 -1
package/dist/wb3Api.js
CHANGED
|
@@ -44,13 +44,13 @@ async function oe(e, t = void 0, n = void 0) {
|
|
|
44
44
|
Accept: "application/json"
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
).then((
|
|
48
|
-
t && t(
|
|
49
|
-
}).catch((
|
|
50
|
-
n && n(
|
|
47
|
+
).then((o) => o.json()).then((o) => {
|
|
48
|
+
t && t(o);
|
|
49
|
+
}).catch((o) => {
|
|
50
|
+
n && n(o), console.error("Erreur : " + o);
|
|
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
|
{
|
|
@@ -65,11 +65,11 @@ async function re(e, t = void 0, n = void 0) {
|
|
|
65
65
|
n && n(s), console.error("Erreur : " + s);
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
|
-
async function
|
|
68
|
+
async function re(e, t = L) {
|
|
69
69
|
let n = b.now().year;
|
|
70
|
-
const s = e,
|
|
71
|
-
for (let
|
|
72
|
-
|
|
70
|
+
const s = e, o = [], c = (a) => {
|
|
71
|
+
for (let r in a)
|
|
72
|
+
o.push({ date: r, comment: a[r] });
|
|
73
73
|
};
|
|
74
74
|
for (let a = n; a <= n + 1; a++)
|
|
75
75
|
await fetch(
|
|
@@ -80,41 +80,41 @@ async function ce(e, t = L) {
|
|
|
80
80
|
Accept: "application/json"
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
).then((
|
|
84
|
-
r
|
|
85
|
-
}).catch((
|
|
83
|
+
).then((r) => r.json()).then((r) => {
|
|
84
|
+
c(r);
|
|
85
|
+
}).catch((r) => console.error("Erreur : " + r));
|
|
86
86
|
return (() => {
|
|
87
87
|
const a = s.length === 0 ? {
|
|
88
88
|
events: []
|
|
89
89
|
} : s;
|
|
90
|
-
for (let
|
|
90
|
+
for (let r of o)
|
|
91
91
|
a.events.findIndex(
|
|
92
|
-
(l) => l.start === b.fromISO(
|
|
92
|
+
(l) => l.start === b.fromISO(r.date).toISODate() && l.name === "Férié : " + r.comment
|
|
93
93
|
) === -1 && a.events.push({
|
|
94
|
-
name: "Férié : " +
|
|
95
|
-
start: b.fromISO(
|
|
96
|
-
end: b.fromISO(
|
|
94
|
+
name: "Férié : " + r.comment,
|
|
95
|
+
start: b.fromISO(r.date).toISODate(),
|
|
96
|
+
end: b.fromISO(r.date).toISODate(),
|
|
97
97
|
color: t.b3BusinnessDays,
|
|
98
98
|
timed: !1
|
|
99
99
|
});
|
|
100
100
|
return a;
|
|
101
101
|
})();
|
|
102
102
|
}
|
|
103
|
-
async function
|
|
104
|
-
const s = e.events.findIndex((
|
|
105
|
-
return s === -1 ? e.events.push(t) : n ? e.events[s] = t : e.events.splice(s, 1), e.length > 0 && e.sort((
|
|
103
|
+
async function ce(e, t, n = !0) {
|
|
104
|
+
const s = e.events.findIndex((o) => o.uuid === t.uuid);
|
|
105
|
+
return s === -1 ? e.events.push(t) : n ? e.events[s] = t : e.events.splice(s, 1), e.length > 0 && e.sort((o, c) => o.start - c.start), e;
|
|
106
106
|
}
|
|
107
107
|
function f(e, t) {
|
|
108
108
|
O(["DS/WAFData/WAFData"], (n) => {
|
|
109
109
|
n.authenticatedRequest(e, t);
|
|
110
110
|
});
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function de(e, t, n) {
|
|
113
113
|
O(["DS/DataDragAndDrop/DataDragAndDrop"], (s) => {
|
|
114
114
|
s.draggable(e, { data: t, start: n });
|
|
115
115
|
});
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function le(e, t = void 0) {
|
|
118
118
|
O(["DS/TagNavigatorProxy/TagNavigatorProxy"], (n) => {
|
|
119
119
|
let s;
|
|
120
120
|
s === void 0 && (s = n.createProxy({
|
|
@@ -123,12 +123,12 @@ function pe(e, t = void 0) {
|
|
|
123
123
|
}), t !== void 0 && s.addEvent("onFilterSubjectsChange", t)), s.setSubjectsTags(e);
|
|
124
124
|
});
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function pe(e, t) {
|
|
127
127
|
O(["DS/DataDragAndDrop/DataDragAndDrop"], (n) => {
|
|
128
128
|
n.droppable(e, { drop: t });
|
|
129
129
|
});
|
|
130
130
|
}
|
|
131
|
-
async function
|
|
131
|
+
async function ue(e, t = void 0, n = void 0) {
|
|
132
132
|
O(
|
|
133
133
|
["DS/i3DXCompassServices/i3DXCompassServices"],
|
|
134
134
|
(s) => {
|
|
@@ -142,85 +142,85 @@ async function fe(e, t = void 0, n = void 0) {
|
|
|
142
142
|
}
|
|
143
143
|
);
|
|
144
144
|
}
|
|
145
|
-
function
|
|
145
|
+
function fe() {
|
|
146
146
|
let e = {};
|
|
147
147
|
return O(["DS/PlatformAPI/PlatformAPI"], (t) => {
|
|
148
|
-
const n = t.getTenant(), s = t.getUser(),
|
|
148
|
+
const n = t.getTenant(), s = t.getUser(), o = t.getAllApplicationConfigurations(), c = t.getApplicationConfiguration(
|
|
149
149
|
"com.3ds.wp.passport.cors"
|
|
150
150
|
);
|
|
151
151
|
e = {
|
|
152
152
|
tenant: n,
|
|
153
153
|
user: s,
|
|
154
|
-
appsConfiguration:
|
|
155
|
-
appConf:
|
|
154
|
+
appsConfiguration: o,
|
|
155
|
+
appConf: c
|
|
156
156
|
};
|
|
157
157
|
}), console.log("%cRETOUR API :", "color:blue", e), e;
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function me(e, t, n) {
|
|
160
160
|
const s = {
|
|
161
161
|
base: `${e.space}`,
|
|
162
162
|
uri: "/resources/AppsMngt/api/custom/applications",
|
|
163
163
|
option: `?filter=${e.tenant}`
|
|
164
164
|
// facultatif
|
|
165
|
-
},
|
|
166
|
-
f(
|
|
165
|
+
}, o = `${s.base}${s.uri}${s.option}`;
|
|
166
|
+
f(o, {
|
|
167
167
|
method: "GET",
|
|
168
168
|
headers: {
|
|
169
169
|
"Content-Type": "application/json",
|
|
170
170
|
Accept: "application/json"
|
|
171
171
|
},
|
|
172
|
-
onComplete(
|
|
173
|
-
const
|
|
172
|
+
onComplete(c, i, a) {
|
|
173
|
+
const r = JSON.parse(c), d = r.data.map((l) => {
|
|
174
174
|
const p = l.attributes.name, u = l.id;
|
|
175
175
|
return { name: p, id: u };
|
|
176
176
|
});
|
|
177
|
-
t && t(d,
|
|
177
|
+
t && t(d, r);
|
|
178
178
|
},
|
|
179
|
-
onFailure(
|
|
180
|
-
const a =
|
|
181
|
-
a.msg =
|
|
179
|
+
onFailure(c, i) {
|
|
180
|
+
const a = c;
|
|
181
|
+
a.msg = i.errormsg, a.errCode = i.errorcode, n && n(a);
|
|
182
182
|
}
|
|
183
183
|
});
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function ge(e, t = void 0, n = void 0) {
|
|
186
186
|
let s = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&limit=-1`;
|
|
187
187
|
f(s, {
|
|
188
|
-
onComplete(
|
|
189
|
-
const a = JSON.parse(
|
|
188
|
+
onComplete(o, c, i) {
|
|
189
|
+
const a = JSON.parse(o);
|
|
190
190
|
console.log("_AppMngt_get_users => ", a), t && t(a);
|
|
191
191
|
},
|
|
192
|
-
onFailure(
|
|
193
|
-
const
|
|
194
|
-
|
|
192
|
+
onFailure(o, c) {
|
|
193
|
+
const i = o;
|
|
194
|
+
i.msg = c.errormsg, i.errCode = c.errorcode, n && n(i);
|
|
195
195
|
}
|
|
196
196
|
});
|
|
197
197
|
}
|
|
198
|
-
function
|
|
199
|
-
let
|
|
200
|
-
f(
|
|
201
|
-
onComplete(
|
|
202
|
-
const
|
|
203
|
-
n && n(
|
|
198
|
+
function he(e, t, n = void 0, s = void 0) {
|
|
199
|
+
let o = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&id=${t}`;
|
|
200
|
+
f(o, {
|
|
201
|
+
onComplete(c, i, a) {
|
|
202
|
+
const r = JSON.parse(c);
|
|
203
|
+
n && n(r);
|
|
204
204
|
},
|
|
205
|
-
onFailure(
|
|
206
|
-
const a =
|
|
207
|
-
a.msg =
|
|
205
|
+
onFailure(c, i) {
|
|
206
|
+
const a = c;
|
|
207
|
+
a.msg = i.errormsg, a.errCode = i.errorcode, s && s(a);
|
|
208
208
|
}
|
|
209
209
|
});
|
|
210
210
|
}
|
|
211
|
-
const
|
|
211
|
+
const F = {
|
|
212
212
|
"Content-Type": "application/json",
|
|
213
213
|
Accept: "application/json,text/javascript,*/*"
|
|
214
214
|
};
|
|
215
|
-
function
|
|
216
|
-
const { space:
|
|
215
|
+
function Se(e, t, n = void 0, s = void 0) {
|
|
216
|
+
const { space: o, currentUser: c } = e, a = `${o}${{
|
|
217
217
|
URIUGr: "/3drdfpersist/resources/v1/usersgroup"
|
|
218
|
-
}.URIUGr}`,
|
|
218
|
+
}.URIUGr}`, r = {
|
|
219
219
|
groups: [
|
|
220
220
|
{
|
|
221
221
|
title: t.title,
|
|
222
222
|
description: t.description,
|
|
223
|
-
members: t.members || [
|
|
223
|
+
members: t.members || [c.email, "samuel.mureau@beam3.fr"],
|
|
224
224
|
pending_members: [],
|
|
225
225
|
sharing: t.sharing,
|
|
226
226
|
visibility: t.visibility
|
|
@@ -229,8 +229,8 @@ function _e(e, t, n = void 0, s = void 0) {
|
|
|
229
229
|
};
|
|
230
230
|
f(a, {
|
|
231
231
|
method: "POST",
|
|
232
|
-
headers:
|
|
233
|
-
data: JSON.stringify(
|
|
232
|
+
headers: F,
|
|
233
|
+
data: JSON.stringify(r),
|
|
234
234
|
onComplete(d) {
|
|
235
235
|
n && n(JSON.parse(d));
|
|
236
236
|
},
|
|
@@ -241,8 +241,8 @@ function _e(e, t, n = void 0, s = void 0) {
|
|
|
241
241
|
}
|
|
242
242
|
});
|
|
243
243
|
}
|
|
244
|
-
function
|
|
245
|
-
const { space:
|
|
244
|
+
function _e(e, t, n = void 0, s = void 0) {
|
|
245
|
+
const { space: o, tenant: c } = e, i = o, a = `/3drdfpersist/v1/resources/${t}`, r = `?$mask=dsaccess:Mask.GroupUI.Properties&tenant=dstenant:${c}`, d = `${i}${a}${r}`;
|
|
246
246
|
f(d, {
|
|
247
247
|
opts: {
|
|
248
248
|
method: "GET",
|
|
@@ -261,12 +261,12 @@ function ye(e, t, n = void 0, s = void 0) {
|
|
|
261
261
|
});
|
|
262
262
|
}
|
|
263
263
|
function E(e, t = void 0, n = void 0) {
|
|
264
|
-
const { space: s, tenant:
|
|
264
|
+
const { space: s, tenant: o } = e, c = s, i = "/3drdfpersist/resources/v1/option-sets/dsusergroup:ListOfGroupResponsibilities/options", a = `?tenant=dstenant:${o}`, r = {
|
|
265
265
|
method: "GET",
|
|
266
266
|
Accept: "application/json,*/*,test/javascript"
|
|
267
|
-
}, d = `${
|
|
267
|
+
}, d = `${c}${i}${a}`;
|
|
268
268
|
f(d, {
|
|
269
|
-
OPTsH:
|
|
269
|
+
OPTsH: r,
|
|
270
270
|
onComplete(l) {
|
|
271
271
|
t && t(JSON.parse(l));
|
|
272
272
|
},
|
|
@@ -276,8 +276,8 @@ function E(e, t = void 0, n = void 0) {
|
|
|
276
276
|
}
|
|
277
277
|
});
|
|
278
278
|
}
|
|
279
|
-
function
|
|
280
|
-
const { space: s, currentUser:
|
|
279
|
+
function ye(e, t = void 0, n = void 0) {
|
|
280
|
+
const { space: s, currentUser: o } = e, a = `${s}/3drdfpersist/resources/v1/usersgroup?select=uri,title,description,owner,members,pending_members,creation_date,modification_date,visibility`, d = { method: "GET", headers: {
|
|
281
281
|
"Content-Type": "application/json",
|
|
282
282
|
Accept: "application/json,text/javascript,*/*"
|
|
283
283
|
} };
|
|
@@ -286,8 +286,8 @@ function we(e, t = void 0, n = void 0) {
|
|
|
286
286
|
opts: d,
|
|
287
287
|
onComplete(l) {
|
|
288
288
|
const p = JSON.parse(l), u = {}, m = p.groups.filter((g) => g.uri.startsWith("uuid:"));
|
|
289
|
-
if (
|
|
290
|
-
const g = m.filter((_) => _.owner ===
|
|
289
|
+
if (o && Object.keys(o).length > 0) {
|
|
290
|
+
const g = m.filter((_) => _.owner === o.email), h = m.filter((_) => _.members.includes(o.email)), S = g.concat(h);
|
|
291
291
|
u.iam = S, u.UG = m, u.iamMember = h, E(
|
|
292
292
|
e,
|
|
293
293
|
(_) => {
|
|
@@ -307,24 +307,24 @@ function we(e, t = void 0, n = void 0) {
|
|
|
307
307
|
console.log(l);
|
|
308
308
|
}
|
|
309
309
|
}
|
|
310
|
-
function
|
|
311
|
-
const { space: n } = e,
|
|
312
|
-
f(
|
|
310
|
+
function we(e, t) {
|
|
311
|
+
const { space: n } = e, o = `${n}/3drdfpersist/resources/v1/usersgroup/${t}`;
|
|
312
|
+
f(o, {
|
|
313
313
|
method: "DELETE"
|
|
314
314
|
});
|
|
315
315
|
}
|
|
316
|
-
function
|
|
317
|
-
const { space:
|
|
316
|
+
function Te(e, t, n, s = void 0, o = void 0) {
|
|
317
|
+
const { space: c, tenant: i } = e, a = {
|
|
318
318
|
URITI: "/3drdfpersist/resources/v1/template-instances",
|
|
319
319
|
URIUGr: "/3drdfpersist/resources/v1/usersgroup",
|
|
320
320
|
nextURICh: "/characteristics",
|
|
321
321
|
nextURIGr: "/group",
|
|
322
322
|
nexURImem: "/members",
|
|
323
323
|
OPTsTI: "?$mask=dsaccess:Mask.GroupUI.Properties",
|
|
324
|
-
OPTsTenant: `tenant=dstenant:${
|
|
325
|
-
},
|
|
324
|
+
OPTsTenant: `tenant=dstenant:${i}`
|
|
325
|
+
}, r = n, d = `${c}${a.URIUGr}/${t}`, l = JSON.stringify(r);
|
|
326
326
|
f(d, {
|
|
327
|
-
headers:
|
|
327
|
+
headers: F,
|
|
328
328
|
method: "PATCH",
|
|
329
329
|
data: l,
|
|
330
330
|
type: "json",
|
|
@@ -332,28 +332,28 @@ function Ce(e, t, n, s = void 0, i = void 0) {
|
|
|
332
332
|
s && s(p);
|
|
333
333
|
},
|
|
334
334
|
onFailure(p) {
|
|
335
|
-
|
|
335
|
+
o && o(p);
|
|
336
336
|
}
|
|
337
337
|
});
|
|
338
338
|
}
|
|
339
|
-
function
|
|
340
|
-
const { space:
|
|
339
|
+
function Ce(e, t, n, s = void 0, o = void 0) {
|
|
340
|
+
const { space: c } = e, a = `${c}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
|
|
341
341
|
f(a, {
|
|
342
342
|
method: "PATCH",
|
|
343
|
-
headers:
|
|
343
|
+
headers: F,
|
|
344
344
|
data: JSON.stringify(n),
|
|
345
345
|
type: "json",
|
|
346
346
|
onComplete(d) {
|
|
347
347
|
s && s(d);
|
|
348
348
|
},
|
|
349
349
|
onFailure(d) {
|
|
350
|
-
|
|
350
|
+
o && o(d);
|
|
351
351
|
}
|
|
352
352
|
});
|
|
353
353
|
}
|
|
354
|
-
function
|
|
355
|
-
const { space:
|
|
356
|
-
f(
|
|
354
|
+
function Oe(e, t, n = void 0, s = void 0) {
|
|
355
|
+
const { space: o } = e, i = `${o}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
|
|
356
|
+
f(i, {
|
|
357
357
|
opts: {
|
|
358
358
|
method: "GET",
|
|
359
359
|
headers: {
|
|
@@ -370,19 +370,19 @@ function Ne(e, t, n = void 0, s = void 0) {
|
|
|
370
370
|
});
|
|
371
371
|
}
|
|
372
372
|
async function J(e, t = void 0, n = void 0, s = void 0) {
|
|
373
|
-
const
|
|
373
|
+
const o = e.space;
|
|
374
374
|
if (t === void 0) {
|
|
375
375
|
console.log("Le paramètre docid est obligatoire");
|
|
376
376
|
return;
|
|
377
377
|
}
|
|
378
|
-
const
|
|
379
|
-
f(
|
|
380
|
-
onComplete(
|
|
381
|
-
const d = JSON.parse(
|
|
378
|
+
const c = o + `/resources/v1/modeler/documents/${t}`;
|
|
379
|
+
f(c, {
|
|
380
|
+
onComplete(i, a, r) {
|
|
381
|
+
const d = JSON.parse(i);
|
|
382
382
|
n && n(d);
|
|
383
383
|
},
|
|
384
|
-
onFailure(
|
|
385
|
-
s && s(
|
|
384
|
+
onFailure(i) {
|
|
385
|
+
s && s(i);
|
|
386
386
|
}
|
|
387
387
|
});
|
|
388
388
|
}
|
|
@@ -390,12 +390,12 @@ function k(e, t = void 0, n = void 0) {
|
|
|
390
390
|
if (e.objID && e.objID !== "") {
|
|
391
391
|
let s = `${e.space}/resources/v1/modeler/documents/${e.objID}`;
|
|
392
392
|
f(s, {
|
|
393
|
-
onComplete(
|
|
394
|
-
const a = JSON.parse(
|
|
393
|
+
onComplete(o, c, i) {
|
|
394
|
+
const a = JSON.parse(o);
|
|
395
395
|
e.token = a?.csrf?.value, e.datas = a?.data[0], t && t(e);
|
|
396
396
|
},
|
|
397
|
-
onFailure(
|
|
398
|
-
n && n(
|
|
397
|
+
onFailure(o) {
|
|
398
|
+
n && n(o);
|
|
399
399
|
}
|
|
400
400
|
});
|
|
401
401
|
} else
|
|
@@ -405,64 +405,66 @@ function C(e, t = void 0, n = void 0) {
|
|
|
405
405
|
if (e.space) {
|
|
406
406
|
const s = e.space + "/resources/v1/application/CSRF";
|
|
407
407
|
f(s, {
|
|
408
|
-
onComplete(
|
|
409
|
-
const a = JSON.parse(
|
|
408
|
+
onComplete(o, c, i) {
|
|
409
|
+
const a = JSON.parse(o);
|
|
410
410
|
console.log("_3DSpace_csrf() / info => ", a), t && t(a.csrf.value);
|
|
411
411
|
},
|
|
412
|
-
onFailure(
|
|
413
|
-
n && n({ response:
|
|
412
|
+
onFailure(o, c, i) {
|
|
413
|
+
n && n({ response: o, headers: c, xhr: i });
|
|
414
414
|
}
|
|
415
415
|
});
|
|
416
416
|
} else
|
|
417
417
|
n && n("ERROR : url du 3DSpace non défini.");
|
|
418
418
|
}
|
|
419
|
-
function
|
|
419
|
+
function U(e, t = void 0, n = void 0) {
|
|
420
420
|
let s = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
|
|
421
421
|
k(
|
|
422
422
|
e,
|
|
423
|
-
(
|
|
424
|
-
console.log("onComplete / ☠️ info => ",
|
|
423
|
+
(o) => {
|
|
424
|
+
console.log("onComplete / ☠️ info => ", o, e.token), f(s, {
|
|
425
425
|
method: "PUT",
|
|
426
426
|
headers: {
|
|
427
|
-
ENO_CSRF_TOKEN:
|
|
427
|
+
ENO_CSRF_TOKEN: o.csrf.value === e.token ? o.csrf.value : e.token
|
|
428
428
|
},
|
|
429
|
-
onComplete(
|
|
430
|
-
let
|
|
431
|
-
console.log("_3DSpace_file_url() / ☠️ info => ",
|
|
432
|
-
const a =
|
|
429
|
+
onComplete(c) {
|
|
430
|
+
let i = JSON.parse(c);
|
|
431
|
+
console.log("_3DSpace_file_url() / ☠️ info => ", i);
|
|
432
|
+
const a = i.data[0].dataelements.ticketURL;
|
|
433
433
|
e.ticket = a, t && t(a);
|
|
434
434
|
},
|
|
435
|
-
onFailure(
|
|
436
|
-
console.
|
|
435
|
+
onFailure(c, i) {
|
|
436
|
+
console.warn("☠️ error => ", c, i), n && n(c, i);
|
|
437
437
|
}
|
|
438
438
|
});
|
|
439
439
|
},
|
|
440
|
-
|
|
440
|
+
(o) => {
|
|
441
|
+
console.warn("_3DSpace_file_url / error => ", o), n && n(o);
|
|
442
|
+
}
|
|
441
443
|
);
|
|
442
444
|
}
|
|
443
|
-
function
|
|
444
|
-
const
|
|
445
|
-
n || (n = e.token), f(
|
|
445
|
+
function Ne(e, t, n, s = void 0, o = void 0) {
|
|
446
|
+
const c = `${e.space}/resources/v1/modeler/documents/${t}/files/DownloadTicket`;
|
|
447
|
+
n || (n = e.token), f(c, {
|
|
446
448
|
method: "PUT",
|
|
447
449
|
headers: {
|
|
448
450
|
ENO_CSRF_TOKEN: n
|
|
449
451
|
},
|
|
450
|
-
onComplete(
|
|
451
|
-
let a = JSON.parse(
|
|
452
|
+
onComplete(i) {
|
|
453
|
+
let a = JSON.parse(i);
|
|
452
454
|
if (console.log("☠️ info => ", a), a.success === !0)
|
|
453
455
|
try {
|
|
454
|
-
const
|
|
455
|
-
s && s(
|
|
456
|
-
} catch (
|
|
457
|
-
|
|
456
|
+
const r = a.data[0].dataelements.ticketURL;
|
|
457
|
+
s && s(r);
|
|
458
|
+
} catch (r) {
|
|
459
|
+
o && o(r);
|
|
458
460
|
}
|
|
459
461
|
},
|
|
460
|
-
onFailure(
|
|
461
|
-
|
|
462
|
+
onFailure(i) {
|
|
463
|
+
o && o(i);
|
|
462
464
|
}
|
|
463
465
|
});
|
|
464
466
|
}
|
|
465
|
-
function G(e, t, n, s,
|
|
467
|
+
function G(e, t, n, s, o, c = void 0, i = void 0) {
|
|
466
468
|
k(
|
|
467
469
|
e,
|
|
468
470
|
t,
|
|
@@ -472,30 +474,30 @@ function G(e, t, n, s, i, r = void 0, o = void 0) {
|
|
|
472
474
|
t,
|
|
473
475
|
n,
|
|
474
476
|
s,
|
|
475
|
-
|
|
477
|
+
o,
|
|
476
478
|
a.csrf.value,
|
|
477
|
-
|
|
478
|
-
|
|
479
|
+
c,
|
|
480
|
+
i
|
|
479
481
|
);
|
|
480
482
|
}
|
|
481
483
|
);
|
|
482
484
|
}
|
|
483
|
-
function K(e, t, n, s,
|
|
484
|
-
const
|
|
485
|
-
f(
|
|
485
|
+
function K(e, t, n, s, o, c, i = void 0, a = void 0) {
|
|
486
|
+
const r = e.space + `/resources/v1/modeler/documents/${t}/files/CheckinTicket`;
|
|
487
|
+
f(r, {
|
|
486
488
|
method: "PUT",
|
|
487
489
|
headers: {
|
|
488
|
-
ENO_CSRF_TOKEN:
|
|
490
|
+
ENO_CSRF_TOKEN: c
|
|
489
491
|
},
|
|
490
492
|
onComplete(d, l, p) {
|
|
491
493
|
const u = JSON.parse(d).data[0].dataelements, m = new FormData();
|
|
492
|
-
m.append("__fcs__jobTicket", u.ticket), m.append("file_0", s,
|
|
494
|
+
m.append("__fcs__jobTicket", u.ticket), m.append("file_0", s, o);
|
|
493
495
|
const g = {};
|
|
494
496
|
g.method = "POST", g.data = m, g.onComplete = function(h) {
|
|
495
497
|
let S = "temp_" + Date.now(), _ = {
|
|
496
498
|
method: "PUT",
|
|
497
499
|
headers: {
|
|
498
|
-
ENO_CSRF_TOKEN:
|
|
500
|
+
ENO_CSRF_TOKEN: c
|
|
499
501
|
},
|
|
500
502
|
data: JSON.stringify({
|
|
501
503
|
data: [
|
|
@@ -506,7 +508,7 @@ function K(e, t, n, s, i, r, o = void 0, a = void 0) {
|
|
|
506
508
|
{
|
|
507
509
|
id: n,
|
|
508
510
|
dataelements: {
|
|
509
|
-
title:
|
|
511
|
+
title: o,
|
|
510
512
|
receipt: h
|
|
511
513
|
},
|
|
512
514
|
updateAction: "REVISE"
|
|
@@ -519,7 +521,7 @@ function K(e, t, n, s, i, r, o = void 0, a = void 0) {
|
|
|
519
521
|
}),
|
|
520
522
|
type: "json",
|
|
521
523
|
onComplete(y) {
|
|
522
|
-
|
|
524
|
+
i && i(y);
|
|
523
525
|
},
|
|
524
526
|
onFailure(y) {
|
|
525
527
|
a && a(y);
|
|
@@ -535,14 +537,14 @@ function K(e, t, n, s, i, r, o = void 0, a = void 0) {
|
|
|
535
537
|
}
|
|
536
538
|
});
|
|
537
539
|
}
|
|
538
|
-
async function
|
|
539
|
-
const
|
|
540
|
+
async function be(e, t, n, s, o = void 0, c = void 0) {
|
|
541
|
+
const i = e.space, a = e.token, r = e.ctx, d = new FormData(), l = new Blob([JSON.stringify(t)], {
|
|
540
542
|
type: "text/plain"
|
|
541
543
|
}), p = {
|
|
542
|
-
url_Ticket: `${
|
|
543
|
-
url_Post: `${
|
|
544
|
+
url_Ticket: `${i}/resources/v1/modeler/documents/files/CheckinTicket`,
|
|
545
|
+
url_Post: `${i}/resources/v1/modeler/documents/?SecurityContext=ctx::${r}`
|
|
544
546
|
};
|
|
545
|
-
if (!
|
|
547
|
+
if (!i && i !== "") {
|
|
546
548
|
console.log("le store._3DSpace est vide");
|
|
547
549
|
return;
|
|
548
550
|
}
|
|
@@ -558,8 +560,8 @@ async function ke(e, t, n, s, i = void 0, r = void 0) {
|
|
|
558
560
|
method: "POST",
|
|
559
561
|
data: d,
|
|
560
562
|
onComplete(T) {
|
|
561
|
-
if (
|
|
562
|
-
const
|
|
563
|
+
if (r !== "" && a !== "") {
|
|
564
|
+
const D = {
|
|
563
565
|
method: "POST",
|
|
564
566
|
headers: {
|
|
565
567
|
ENO_CSRF_TOKEN: a,
|
|
@@ -594,32 +596,32 @@ async function ke(e, t, n, s, i = void 0, r = void 0) {
|
|
|
594
596
|
onComplete: _,
|
|
595
597
|
onFailure: y
|
|
596
598
|
};
|
|
597
|
-
|
|
599
|
+
r !== "" && f(p.url_Post, D);
|
|
598
600
|
} else
|
|
599
601
|
console.warn("le store est vide");
|
|
600
602
|
},
|
|
601
603
|
onFailure: y
|
|
602
604
|
};
|
|
603
605
|
function _(T) {
|
|
604
|
-
console.log("Success -- response ", T.data[0]),
|
|
606
|
+
console.log("Success -- response ", T.data[0]), o && o(T);
|
|
605
607
|
}
|
|
606
|
-
function y(T,
|
|
608
|
+
function y(T, D) {
|
|
607
609
|
console.log("Erreur -- response ", T, `
|
|
608
|
-
headers `,
|
|
610
|
+
headers `, D), c && c(T);
|
|
609
611
|
}
|
|
610
612
|
f(h.ticketURL, S);
|
|
611
613
|
}
|
|
612
614
|
});
|
|
613
615
|
}
|
|
614
|
-
function N(e, t = void 0, n = void 0, s = void 0,
|
|
615
|
-
const
|
|
616
|
-
f(
|
|
616
|
+
function N(e, t = void 0, n = void 0, s = void 0, o = void 0, c = void 0) {
|
|
617
|
+
const i = `${e.space}/resources/modeler/pno/person?current=true&select=preferredcredentials&select=collabspaces`;
|
|
618
|
+
f(i, {
|
|
617
619
|
method: "GET",
|
|
618
620
|
onComplete(a) {
|
|
619
|
-
const
|
|
621
|
+
const r = JSON.parse(a);
|
|
620
622
|
let d = "", l, p, u;
|
|
621
623
|
if (t) {
|
|
622
|
-
let m =
|
|
624
|
+
let m = r.collabspaces.find((g) => g.title === t);
|
|
623
625
|
if (m) {
|
|
624
626
|
l = t;
|
|
625
627
|
let g = m.couples;
|
|
@@ -635,7 +637,7 @@ function N(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0) {
|
|
|
635
637
|
let _ = g.filter(
|
|
636
638
|
(y) => y.role.name === h
|
|
637
639
|
);
|
|
638
|
-
_.length === 1 ? (u = _[0].role.name, p = _[0].organization.title) :
|
|
640
|
+
_.length === 1 ? (u = _[0].role.name, p = _[0].organization.title) : c(_);
|
|
639
641
|
}
|
|
640
642
|
});
|
|
641
643
|
}) : g.forEach((h) => {
|
|
@@ -645,12 +647,12 @@ function N(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0) {
|
|
|
645
647
|
let S = g.filter(
|
|
646
648
|
(_) => _.role.name === n
|
|
647
649
|
);
|
|
648
|
-
S.length === 1 ? (u = S[0].role.name, p = S[0].organization.title) :
|
|
650
|
+
S.length === 1 ? (u = S[0].role.name, p = S[0].organization.title) : c(S);
|
|
649
651
|
}
|
|
650
652
|
}));
|
|
651
653
|
}
|
|
652
654
|
}
|
|
653
|
-
l && p && u ? (d = u + "." + p + "." + l,
|
|
655
|
+
l && p && u ? (d = u + "." + p + "." + l, o(d)) : r.preferredcredentials ? (d = r.preferredcredentials.role.name + "." + r.preferredcredentials.organization.title + "." + r.preferredcredentials.collabspace.title, o(d)) : c && (d = u + "." + p + "." + l, c(d));
|
|
654
656
|
},
|
|
655
657
|
onFailure(a) {
|
|
656
658
|
console.log("Erreur de récupération du contexte de sécurité. => ", a);
|
|
@@ -658,79 +660,79 @@ function N(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0) {
|
|
|
658
660
|
});
|
|
659
661
|
}
|
|
660
662
|
async function I(e, t = void 0, n = void 0, s = void 0) {
|
|
661
|
-
const
|
|
662
|
-
(
|
|
663
|
+
const o = e.objID;
|
|
664
|
+
(o === void 0 || o === "") && console.warn(
|
|
663
665
|
"_3DSpace_download_doc() / Le paramètre objectId est obligatoire"
|
|
664
666
|
), (e.space === "" || !e.space) && console.warn(
|
|
665
667
|
"_3DSpace_download_doc() / Le paramètre space est obligatoire"
|
|
666
668
|
);
|
|
667
669
|
try {
|
|
668
|
-
console.log("_3DSpace_download_doc / credentials", e),
|
|
670
|
+
console.log("_3DSpace_download_doc / credentials", e), U(
|
|
669
671
|
e,
|
|
670
|
-
(
|
|
671
|
-
f(
|
|
672
|
+
(c) => {
|
|
673
|
+
f(c, {
|
|
672
674
|
headers: {
|
|
673
675
|
ENO_CSRF_TOKEN: e.token
|
|
674
676
|
},
|
|
675
|
-
onComplete(
|
|
676
|
-
const a = JSON.parse(
|
|
677
|
+
onComplete(i) {
|
|
678
|
+
const a = JSON.parse(i);
|
|
677
679
|
t && t(a);
|
|
678
680
|
},
|
|
679
|
-
onFailure(
|
|
680
|
-
n && (console.log("error http",
|
|
681
|
+
onFailure(i, a, r) {
|
|
682
|
+
n && (console.log("error http", i), n({ error: i, headers: a, xhr: r }));
|
|
681
683
|
}
|
|
682
684
|
});
|
|
683
685
|
},
|
|
684
|
-
(
|
|
685
|
-
n && n(
|
|
686
|
+
(c) => {
|
|
687
|
+
n && n(c), console.log("*_3dspace_download_doc / error file URL *", c);
|
|
686
688
|
}
|
|
687
689
|
);
|
|
688
|
-
} catch (
|
|
689
|
-
console.log("*_3dspace_download_doc / error file URL *",
|
|
690
|
+
} catch (c) {
|
|
691
|
+
console.log("*_3dspace_download_doc / error file URL *", c);
|
|
690
692
|
}
|
|
691
693
|
}
|
|
692
694
|
async function W(e, t, n = void 0, s = void 0) {
|
|
693
|
-
let
|
|
695
|
+
let o = [];
|
|
694
696
|
for (let a = 0; a < t.length; a += 80) {
|
|
695
|
-
const
|
|
696
|
-
|
|
697
|
+
const r = t.slice(a, a + 80);
|
|
698
|
+
o.push(r);
|
|
697
699
|
}
|
|
698
|
-
const
|
|
700
|
+
const i = (a) => {
|
|
699
701
|
X(
|
|
700
702
|
e,
|
|
701
|
-
|
|
703
|
+
o[a],
|
|
702
704
|
() => {
|
|
703
|
-
a++, a <
|
|
705
|
+
a++, a < o.length && i(a);
|
|
704
706
|
},
|
|
705
|
-
(
|
|
706
|
-
n && n(
|
|
707
|
+
(r) => {
|
|
708
|
+
n && n(r);
|
|
707
709
|
}
|
|
708
710
|
);
|
|
709
711
|
};
|
|
710
|
-
|
|
712
|
+
i(0);
|
|
711
713
|
}
|
|
712
|
-
function X(e, t, n = void 0, s = void 0,
|
|
713
|
-
const
|
|
714
|
-
t.forEach((
|
|
715
|
-
|
|
716
|
-
id:
|
|
714
|
+
function X(e, t, n = void 0, s = void 0, o = void 0) {
|
|
715
|
+
const c = [];
|
|
716
|
+
t.forEach((r) => {
|
|
717
|
+
c.push({
|
|
718
|
+
id: r
|
|
717
719
|
});
|
|
718
720
|
});
|
|
719
|
-
let
|
|
721
|
+
let i = JSON.stringify({
|
|
720
722
|
csrf: {
|
|
721
723
|
name: "ENO_CSRF_TOKEN",
|
|
722
724
|
value: e.token
|
|
723
725
|
},
|
|
724
|
-
data:
|
|
726
|
+
data: c
|
|
725
727
|
});
|
|
726
728
|
const a = `${e.space}/resources/v1/modeler/documents/DownloadTicket?tenant=${e.tenant}&e6w-lang=fr&e6w-timezone=-120`;
|
|
727
729
|
f(a, {
|
|
728
730
|
method: "PUT",
|
|
729
|
-
data:
|
|
731
|
+
data: i,
|
|
730
732
|
type: "json",
|
|
731
|
-
onComplete(
|
|
732
|
-
const d =
|
|
733
|
-
|
|
733
|
+
onComplete(r) {
|
|
734
|
+
const d = r.data;
|
|
735
|
+
r.success === !0 && (n && n(), d.forEach((l) => {
|
|
734
736
|
try {
|
|
735
737
|
const p = l.dataelements.fileName, u = l.dataelements.ticketURL;
|
|
736
738
|
f(u, {
|
|
@@ -746,19 +748,19 @@ function X(e, t, n = void 0, s = void 0, i = void 0) {
|
|
|
746
748
|
}
|
|
747
749
|
});
|
|
748
750
|
} catch (p) {
|
|
749
|
-
console.log(p),
|
|
751
|
+
console.log(p), o && o(p);
|
|
750
752
|
}
|
|
751
753
|
}));
|
|
752
754
|
},
|
|
753
|
-
onFailure(
|
|
754
|
-
console.log(
|
|
755
|
+
onFailure(r) {
|
|
756
|
+
console.log(r), o && o(r);
|
|
755
757
|
}
|
|
756
758
|
});
|
|
757
759
|
}
|
|
758
|
-
function
|
|
759
|
-
return new Promise((
|
|
760
|
+
function ke(e, t, n = void 0, s = void 0) {
|
|
761
|
+
return new Promise((o) => {
|
|
760
762
|
if (e.token === "" && C(e), t !== void 0 && t !== "" && t !== null) {
|
|
761
|
-
const
|
|
763
|
+
const c = `${e.space}/resources/v1/modeler/dslc/maturity/getNextStates`;
|
|
762
764
|
N(
|
|
763
765
|
e.space,
|
|
764
766
|
"ESPACE COMMUN",
|
|
@@ -769,7 +771,7 @@ function Fe(e, t, n = void 0, s = void 0) {
|
|
|
769
771
|
console.log("onError =>", a);
|
|
770
772
|
}
|
|
771
773
|
);
|
|
772
|
-
let
|
|
774
|
+
let i = {
|
|
773
775
|
method: "POST",
|
|
774
776
|
headers: {
|
|
775
777
|
SecurityContext: "ctx::" + e.ctx,
|
|
@@ -792,22 +794,22 @@ function Fe(e, t, n = void 0, s = void 0) {
|
|
|
792
794
|
s && s(a);
|
|
793
795
|
}
|
|
794
796
|
};
|
|
795
|
-
f(
|
|
797
|
+
f(c, i);
|
|
796
798
|
}
|
|
797
799
|
});
|
|
798
800
|
}
|
|
799
|
-
function
|
|
800
|
-
return new Promise((
|
|
801
|
+
function De(e, t, n, s = void 0, o = void 0) {
|
|
802
|
+
return new Promise((c) => {
|
|
801
803
|
if (e.token === "" && C(e), t !== void 0 && t !== "" && t !== null) {
|
|
802
|
-
const
|
|
804
|
+
const i = `${e.space}/resources/v1/modeler/dslc/maturity/changeState`;
|
|
803
805
|
N(
|
|
804
806
|
e.space,
|
|
805
807
|
"ESPACE COMMUN",
|
|
806
808
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
807
809
|
void 0,
|
|
808
|
-
(
|
|
809
|
-
(
|
|
810
|
-
console.log("onError =>",
|
|
810
|
+
(r) => e.ctx = r,
|
|
811
|
+
(r) => {
|
|
812
|
+
console.log("onError =>", r);
|
|
811
813
|
}
|
|
812
814
|
);
|
|
813
815
|
let a = {
|
|
@@ -827,21 +829,21 @@ function Ue(e, t, n, s = void 0, i = void 0) {
|
|
|
827
829
|
]
|
|
828
830
|
}),
|
|
829
831
|
type: "json",
|
|
830
|
-
onComplete(
|
|
831
|
-
s && s(
|
|
832
|
+
onComplete(r) {
|
|
833
|
+
s && s(r);
|
|
832
834
|
},
|
|
833
|
-
onFailure(
|
|
834
|
-
|
|
835
|
+
onFailure(r) {
|
|
836
|
+
o && o(r);
|
|
835
837
|
}
|
|
836
838
|
};
|
|
837
|
-
f(
|
|
839
|
+
f(i, a);
|
|
838
840
|
}
|
|
839
841
|
});
|
|
840
842
|
}
|
|
841
|
-
function
|
|
842
|
-
return new Promise((
|
|
843
|
+
function Fe(e, t, n = void 0, s = void 0) {
|
|
844
|
+
return new Promise((o) => {
|
|
843
845
|
if (e.token === "" && C(e), t !== void 0 && t !== "" && t !== null) {
|
|
844
|
-
const
|
|
846
|
+
const c = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
|
|
845
847
|
N(
|
|
846
848
|
e.space,
|
|
847
849
|
"ESPACE COMMUN",
|
|
@@ -852,7 +854,7 @@ function De(e, t, n = void 0, s = void 0) {
|
|
|
852
854
|
console.log("onError =>", a);
|
|
853
855
|
}
|
|
854
856
|
);
|
|
855
|
-
let
|
|
857
|
+
let i = {
|
|
856
858
|
method: "POST",
|
|
857
859
|
headers: {
|
|
858
860
|
securitycontext: "ctx::" + e.ctx,
|
|
@@ -875,14 +877,14 @@ function De(e, t, n = void 0, s = void 0) {
|
|
|
875
877
|
s && s(a);
|
|
876
878
|
}
|
|
877
879
|
};
|
|
878
|
-
f(
|
|
880
|
+
f(c, i);
|
|
879
881
|
}
|
|
880
882
|
});
|
|
881
883
|
}
|
|
882
|
-
function
|
|
883
|
-
return new Promise((
|
|
884
|
+
function Ue(e, t, n = void 0, s = void 0) {
|
|
885
|
+
return new Promise((o) => {
|
|
884
886
|
if (e.token === "" && C(e), t !== void 0 && t !== "" && t !== null) {
|
|
885
|
-
const
|
|
887
|
+
const c = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
|
|
886
888
|
N(
|
|
887
889
|
e.space,
|
|
888
890
|
"ESPACE COMMUN",
|
|
@@ -893,7 +895,7 @@ function $e(e, t, n = void 0, s = void 0) {
|
|
|
893
895
|
console.log("onError =>", a);
|
|
894
896
|
}
|
|
895
897
|
);
|
|
896
|
-
let
|
|
898
|
+
let i = {
|
|
897
899
|
method: "POST",
|
|
898
900
|
headers: {
|
|
899
901
|
SecurityContext: "ctx::" + e.ctx,
|
|
@@ -922,22 +924,22 @@ function $e(e, t, n = void 0, s = void 0) {
|
|
|
922
924
|
s && s(a);
|
|
923
925
|
}
|
|
924
926
|
};
|
|
925
|
-
f(
|
|
927
|
+
f(c, i);
|
|
926
928
|
}
|
|
927
929
|
});
|
|
928
930
|
}
|
|
929
|
-
function
|
|
930
|
-
return new Promise((
|
|
931
|
+
function $e(e, t, n, s = void 0, o = void 0) {
|
|
932
|
+
return new Promise((c) => {
|
|
931
933
|
if (e.token === "" && C(e), t !== void 0 && t !== "" && t !== null) {
|
|
932
|
-
const
|
|
934
|
+
const i = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
|
|
933
935
|
N(
|
|
934
936
|
e.space,
|
|
935
937
|
"ESPACE COMMUN",
|
|
936
938
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
937
939
|
void 0,
|
|
938
|
-
(
|
|
939
|
-
(
|
|
940
|
-
console.log("onError =>",
|
|
940
|
+
(r) => e.ctx = r,
|
|
941
|
+
(r) => {
|
|
942
|
+
console.log("onError =>", r);
|
|
941
943
|
}
|
|
942
944
|
);
|
|
943
945
|
let a = {
|
|
@@ -962,97 +964,97 @@ function je(e, t, n, s = void 0, i = void 0) {
|
|
|
962
964
|
notificationTimeout: 600
|
|
963
965
|
}),
|
|
964
966
|
type: "json",
|
|
965
|
-
onComplete(
|
|
966
|
-
s && s(
|
|
967
|
+
onComplete(r) {
|
|
968
|
+
s && s(r);
|
|
967
969
|
},
|
|
968
|
-
onFailure(
|
|
969
|
-
|
|
970
|
+
onFailure(r) {
|
|
971
|
+
o && o(r);
|
|
970
972
|
}
|
|
971
973
|
};
|
|
972
|
-
f(
|
|
974
|
+
f(i, a);
|
|
973
975
|
}
|
|
974
976
|
});
|
|
975
977
|
}
|
|
976
978
|
//!SECTION
|
|
977
|
-
async function
|
|
979
|
+
async function je(e, t, n) {
|
|
978
980
|
const s = `${e.space}/resources/v1/application/CSRF`;
|
|
979
981
|
f(s, {
|
|
980
|
-
onComplete(
|
|
981
|
-
|
|
982
|
+
onComplete(o) {
|
|
983
|
+
o = JSON.parse(o), t && t(o.csrf);
|
|
982
984
|
},
|
|
983
|
-
onFailure(
|
|
984
|
-
n && n({ error:
|
|
985
|
+
onFailure(o, c, i) {
|
|
986
|
+
n && n({ error: o, headers: c, xhr: i });
|
|
985
987
|
}
|
|
986
988
|
});
|
|
987
989
|
}
|
|
988
|
-
function
|
|
990
|
+
function Ae(e, t = void 0, n = void 0) {
|
|
989
991
|
const s = {
|
|
990
992
|
base: `${e.space}`,
|
|
991
993
|
uri: "/resources/bps/cspaces",
|
|
992
994
|
optTenant: `tenant=${e.tenant}`
|
|
993
|
-
},
|
|
994
|
-
f(
|
|
995
|
+
}, o = `${s.base}${s.uri}?${s.optTenant}`;
|
|
996
|
+
f(o, {
|
|
995
997
|
method: "GET",
|
|
996
998
|
headers: {
|
|
997
999
|
Accept: "application/json,text/javascript,*/*",
|
|
998
1000
|
"Content-Type": "application/ds-json"
|
|
999
1001
|
},
|
|
1000
|
-
onComplete(
|
|
1001
|
-
const a = JSON.parse(
|
|
1002
|
-
t && t(a,
|
|
1002
|
+
onComplete(c, i) {
|
|
1003
|
+
const a = JSON.parse(c);
|
|
1004
|
+
t && t(a, i);
|
|
1003
1005
|
},
|
|
1004
|
-
onFailure(
|
|
1005
|
-
n && n({ response:
|
|
1006
|
+
onFailure(c, i, a) {
|
|
1007
|
+
n && n({ response: c, headers: i, xhr: a });
|
|
1006
1008
|
}
|
|
1007
1009
|
});
|
|
1008
1010
|
}
|
|
1009
|
-
function
|
|
1010
|
-
|
|
1011
|
+
function Re(e, t, n, s) {
|
|
1012
|
+
U(
|
|
1011
1013
|
e.space,
|
|
1012
1014
|
t,
|
|
1013
|
-
(
|
|
1014
|
-
f(
|
|
1015
|
+
(o) => {
|
|
1016
|
+
f(o, {
|
|
1015
1017
|
header: { ENO_CSRF_TOKEN: e.token },
|
|
1016
|
-
onComplete: (
|
|
1017
|
-
n && n(
|
|
1018
|
+
onComplete: (c) => {
|
|
1019
|
+
n && n(c);
|
|
1018
1020
|
},
|
|
1019
|
-
onFailure: (
|
|
1020
|
-
console.log("error http",
|
|
1021
|
+
onFailure: (c) => {
|
|
1022
|
+
console.log("error http", c), s && s(c);
|
|
1021
1023
|
}
|
|
1022
1024
|
});
|
|
1023
1025
|
}
|
|
1024
1026
|
);
|
|
1025
1027
|
}
|
|
1026
|
-
async function
|
|
1027
|
-
return new Promise((
|
|
1028
|
-
|
|
1029
|
-
f(
|
|
1030
|
-
onComplete: (
|
|
1031
|
-
onFailure: (
|
|
1032
|
-
s && s(
|
|
1028
|
+
async function Ie(e, t, n = void 0, s = void 0) {
|
|
1029
|
+
return new Promise((o) => {
|
|
1030
|
+
U(e.space, t, (c) => {
|
|
1031
|
+
f(c, {
|
|
1032
|
+
onComplete: (i, a, r) => (o(JSON.parse(i)), n && n(JSON.parse(i), a, r), o),
|
|
1033
|
+
onFailure: (i, a, r) => {
|
|
1034
|
+
s && s(i, a, r), console.log(i, a?.errormsg);
|
|
1033
1035
|
}
|
|
1034
1036
|
});
|
|
1035
1037
|
});
|
|
1036
1038
|
});
|
|
1037
1039
|
}
|
|
1038
|
-
function
|
|
1039
|
-
const
|
|
1040
|
+
function ve(e, t, n, s = void 0, o = void 0) {
|
|
1041
|
+
const c = new Blob([JSON.stringify(t)], { type: "text/plain" });
|
|
1040
1042
|
k(
|
|
1041
1043
|
e,
|
|
1042
1044
|
n,
|
|
1043
|
-
(
|
|
1044
|
-
const a =
|
|
1045
|
+
(i) => {
|
|
1046
|
+
const a = i.data[0].relateddata.files[0].id, r = i.data[0].dataelements.secondaryTitle !== "" ? i.data[0].dataelements.secondaryTitle : i.data[0].dataelements.title;
|
|
1045
1047
|
G(
|
|
1046
1048
|
e,
|
|
1047
1049
|
n,
|
|
1048
1050
|
a,
|
|
1049
|
-
r,
|
|
1050
1051
|
c,
|
|
1052
|
+
r,
|
|
1051
1053
|
(d) => {
|
|
1052
1054
|
s && s(d);
|
|
1053
1055
|
},
|
|
1054
1056
|
(d) => {
|
|
1055
|
-
|
|
1057
|
+
o && o(d);
|
|
1056
1058
|
}
|
|
1057
1059
|
);
|
|
1058
1060
|
}
|
|
@@ -1060,7 +1062,7 @@ function xe(e, t, n, s = void 0, i = void 0) {
|
|
|
1060
1062
|
}
|
|
1061
1063
|
let v, x;
|
|
1062
1064
|
const $ = [];
|
|
1063
|
-
async function
|
|
1065
|
+
async function xe(e, t = void 0, n = void 0) {
|
|
1064
1066
|
e.objID && e.objID !== "" ? (console.log("obj est présent"), k(
|
|
1065
1067
|
e,
|
|
1066
1068
|
(s) => {
|
|
@@ -1079,55 +1081,47 @@ async function Pe(e, t = void 0, n = void 0) {
|
|
|
1079
1081
|
}
|
|
1080
1082
|
);
|
|
1081
1083
|
}
|
|
1082
|
-
async function
|
|
1083
|
-
console.log("getDatasByTenant", e), await I(
|
|
1084
|
+
async function Pe(e, t = void 0, n = void 0) {
|
|
1085
|
+
console.log("getDatasByTenant (getDocuments)", e), await I(
|
|
1084
1086
|
e,
|
|
1085
1087
|
(s) => {
|
|
1086
|
-
const
|
|
1087
|
-
|
|
1088
|
-
e,
|
|
1089
|
-
(r) => {
|
|
1090
|
-
i.datas = r, t && t(i);
|
|
1091
|
-
},
|
|
1092
|
-
(r) => {
|
|
1093
|
-
n && n(r);
|
|
1094
|
-
}
|
|
1095
|
-
);
|
|
1088
|
+
const o = {};
|
|
1089
|
+
o.obj = s, console.log("getDatasByTenant (getDocuments) _datas", o), t && t(o);
|
|
1096
1090
|
},
|
|
1097
1091
|
(s) => {
|
|
1098
1092
|
n && n(s);
|
|
1099
1093
|
}
|
|
1100
1094
|
);
|
|
1101
1095
|
}
|
|
1102
|
-
function
|
|
1096
|
+
function Me(e, t = void 0, n = void 0) {
|
|
1103
1097
|
const s = [];
|
|
1104
|
-
e.objIds.forEach((
|
|
1098
|
+
e.objIds.forEach((o, c) => {
|
|
1105
1099
|
I(
|
|
1106
1100
|
e,
|
|
1107
|
-
|
|
1108
|
-
(
|
|
1109
|
-
s.push({ [
|
|
1101
|
+
o.objId,
|
|
1102
|
+
(i) => {
|
|
1103
|
+
s.push({ [o.name]: i }), o.name === "dbProjets" && (v = i.affaires.map((a) => a.objectID), V(e, x)), c === e.objIds.length - 1 && t && t(s);
|
|
1110
1104
|
},
|
|
1111
|
-
(
|
|
1112
|
-
n && n(
|
|
1105
|
+
(i) => {
|
|
1106
|
+
n && n(i);
|
|
1113
1107
|
}
|
|
1114
1108
|
);
|
|
1115
1109
|
});
|
|
1116
1110
|
}
|
|
1117
|
-
function
|
|
1111
|
+
function V(e, t, n = void 0, s = void 0) {
|
|
1118
1112
|
W(
|
|
1119
1113
|
e,
|
|
1120
1114
|
v,
|
|
1121
|
-
(
|
|
1122
|
-
const
|
|
1123
|
-
|
|
1115
|
+
(o) => {
|
|
1116
|
+
const c = [...t];
|
|
1117
|
+
c.find((i) => i.objectID === o.objectId).data = o.data, x = c, $.push(o.data), n && n($);
|
|
1124
1118
|
},
|
|
1125
|
-
(
|
|
1126
|
-
s && (s(
|
|
1119
|
+
(o) => {
|
|
1120
|
+
s && (s(o), console.log(o));
|
|
1127
1121
|
}
|
|
1128
1122
|
);
|
|
1129
1123
|
}
|
|
1130
|
-
const
|
|
1124
|
+
const B = "FA35FB9B177A280065800EA0000F599C", Y = [
|
|
1131
1125
|
"swym",
|
|
1132
1126
|
"3dspace",
|
|
1133
1127
|
"drive",
|
|
@@ -1141,28 +1135,28 @@ const Y = "FA35FB9B177A280065800EA0000F599C", H = [
|
|
|
1141
1135
|
where: "ds6w:where",
|
|
1142
1136
|
who: "ds6w:who",
|
|
1143
1137
|
why: "ds6w:why"
|
|
1144
|
-
},
|
|
1145
|
-
objId:
|
|
1138
|
+
}, H = {
|
|
1139
|
+
objId: B,
|
|
1146
1140
|
pred: "who",
|
|
1147
1141
|
order_by: "desc",
|
|
1148
1142
|
tag: "testTag"
|
|
1149
1143
|
};
|
|
1150
1144
|
function Le(e, t, n = void 0, s = void 0) {
|
|
1151
|
-
const { space:
|
|
1145
|
+
const { space: o, tenant: c } = e, { objId: i, pred: a, tag: r } = t, d = {
|
|
1152
1146
|
uri: "/resources/6w/tags",
|
|
1153
1147
|
otpCTX: "SecurityContext=preferred",
|
|
1154
|
-
optTenant: `tenant=${
|
|
1155
|
-
}, l = `${
|
|
1148
|
+
optTenant: `tenant=${c}`
|
|
1149
|
+
}, l = `${o}${d.uri}?${d.otpCTX}&${d.optTenant}`, p = {
|
|
1156
1150
|
tag: [
|
|
1157
1151
|
{
|
|
1158
1152
|
subject: [
|
|
1159
1153
|
{
|
|
1160
|
-
uri: `pid://${
|
|
1154
|
+
uri: `pid://${i}`
|
|
1161
1155
|
}
|
|
1162
1156
|
],
|
|
1163
1157
|
predicate: P[a],
|
|
1164
1158
|
object: {
|
|
1165
|
-
literal:
|
|
1159
|
+
literal: r
|
|
1166
1160
|
}
|
|
1167
1161
|
}
|
|
1168
1162
|
]
|
|
@@ -1180,10 +1174,10 @@ function Le(e, t, n = void 0, s = void 0) {
|
|
|
1180
1174
|
setTimeout(() => {
|
|
1181
1175
|
J(
|
|
1182
1176
|
e,
|
|
1183
|
-
|
|
1177
|
+
i,
|
|
1184
1178
|
(g) => {
|
|
1185
1179
|
const h = g.data[0].dataelements.title, S = g.data[0].dataelements.fileExtension !== void 0 ? g.data[0].dataelements.fileExtension : "", _ = g.data[0].relateddata.ownerInfo[0].dataelements.name;
|
|
1186
|
-
m.name = h, m.ext = S, m.createBy = _, t.info = { ...m },
|
|
1180
|
+
m.name = h, m.ext = S, m.createBy = _, t.info = { ...m }, z(
|
|
1187
1181
|
e,
|
|
1188
1182
|
t,
|
|
1189
1183
|
(y) => {
|
|
@@ -1207,19 +1201,19 @@ function Le(e, t, n = void 0, s = void 0) {
|
|
|
1207
1201
|
}
|
|
1208
1202
|
});
|
|
1209
1203
|
}
|
|
1210
|
-
function
|
|
1204
|
+
function z(e, t, n = void 0, s = void 0) {
|
|
1211
1205
|
console.log("obj ", t);
|
|
1212
|
-
const
|
|
1206
|
+
const o = t.info.name, c = {
|
|
1213
1207
|
baseUrl: `https://${e.tenant.toLowerCase()}-eu1-fedsearch.3dexperience.3ds.com`,
|
|
1214
1208
|
uri: "/federated/search"
|
|
1215
|
-
},
|
|
1209
|
+
}, i = `${c.baseUrl}${c.uri}`, a = {
|
|
1216
1210
|
"Content-Type": "application/json",
|
|
1217
1211
|
Accept: "application/json,text/javascript,*/*"
|
|
1218
|
-
},
|
|
1212
|
+
}, r = R(), d = {
|
|
1219
1213
|
with_indexing_date: !0,
|
|
1220
1214
|
with_synthesis: !0,
|
|
1221
1215
|
with_nls: !1,
|
|
1222
|
-
label: `3DSearch-${e.currentUser.username}-AjoutDeTagBeam-${
|
|
1216
|
+
label: `3DSearch-${e.currentUser.username}-AjoutDeTagBeam-${r}`,
|
|
1223
1217
|
locale: "fr",
|
|
1224
1218
|
select_predicate: [
|
|
1225
1219
|
"ds6w:label",
|
|
@@ -1247,7 +1241,7 @@ function q(e, t, n = void 0, s = void 0) {
|
|
|
1247
1241
|
],
|
|
1248
1242
|
with_synthesis_hierarchical: !0,
|
|
1249
1243
|
select_file: ["icon", "thumbnail_2d"],
|
|
1250
|
-
query:
|
|
1244
|
+
query: o,
|
|
1251
1245
|
specific_source_parameter: {
|
|
1252
1246
|
"3dspace": {
|
|
1253
1247
|
additional_query: ' AND NOT (owner:"ENOVIA_CLOUD" OR owner:"Service Creator" OR owner:"Corporate" OR owner:"User Agent" OR owner:"SLMInstallerAdmin" OR owner:"Creator" OR owner:"VPLMAdminUser") AND (ds6w_58_islastrevisionperstate:true OR NOT listoffields:ds6w_58_islastrevisionperstate)'
|
|
@@ -1257,7 +1251,7 @@ function q(e, t, n = void 0, s = void 0) {
|
|
|
1257
1251
|
}
|
|
1258
1252
|
},
|
|
1259
1253
|
select_exclude_synthesis: ["ds6w:what/ds6w:topic"],
|
|
1260
|
-
order_by:
|
|
1254
|
+
order_by: H.order_by,
|
|
1261
1255
|
order_field: "relevance",
|
|
1262
1256
|
select_snippets: [
|
|
1263
1257
|
"ds6w:snippet",
|
|
@@ -1268,7 +1262,7 @@ function q(e, t, n = void 0, s = void 0) {
|
|
|
1268
1262
|
],
|
|
1269
1263
|
nresults: 40,
|
|
1270
1264
|
start: "0",
|
|
1271
|
-
source:
|
|
1265
|
+
source: Y,
|
|
1272
1266
|
tenant: e.tenant,
|
|
1273
1267
|
login: {
|
|
1274
1268
|
"3dspace": {
|
|
@@ -1276,7 +1270,7 @@ function q(e, t, n = void 0, s = void 0) {
|
|
|
1276
1270
|
}
|
|
1277
1271
|
}
|
|
1278
1272
|
};
|
|
1279
|
-
console.log("dataPattern => ", d), f(
|
|
1273
|
+
console.log("dataPattern => ", d), f(i, {
|
|
1280
1274
|
method: "POST",
|
|
1281
1275
|
headers: a,
|
|
1282
1276
|
data: JSON.stringify(d),
|
|
@@ -1291,26 +1285,26 @@ function q(e, t, n = void 0, s = void 0) {
|
|
|
1291
1285
|
});
|
|
1292
1286
|
}
|
|
1293
1287
|
function Ee(e, t, n = void 0, s = void 0) {
|
|
1294
|
-
const { objId:
|
|
1288
|
+
const { objId: o, pred: c, tag: i } = t, a = {
|
|
1295
1289
|
uri: "/resources/6w/tags",
|
|
1296
1290
|
otpCTX: "SecurityContext=preferred",
|
|
1297
1291
|
optTenant: `tenant=${e.tenant}`
|
|
1298
|
-
},
|
|
1292
|
+
}, r = `${e.space}${a.uri}?${a.otpCTX}&${a.optTenant}`, d = {
|
|
1299
1293
|
tag: [
|
|
1300
1294
|
{
|
|
1301
1295
|
subject: [
|
|
1302
1296
|
{
|
|
1303
|
-
uri: `pid://${
|
|
1297
|
+
uri: `pid://${o}`
|
|
1304
1298
|
}
|
|
1305
1299
|
],
|
|
1306
|
-
predicate: P[
|
|
1300
|
+
predicate: P[c],
|
|
1307
1301
|
object: {
|
|
1308
|
-
literal:
|
|
1302
|
+
literal: i
|
|
1309
1303
|
}
|
|
1310
1304
|
}
|
|
1311
1305
|
]
|
|
1312
1306
|
};
|
|
1313
|
-
f(
|
|
1307
|
+
f(r, {
|
|
1314
1308
|
method: "DELETE",
|
|
1315
1309
|
data: JSON.stringify(d),
|
|
1316
1310
|
headers: {
|
|
@@ -1327,19 +1321,19 @@ function Ee(e, t, n = void 0, s = void 0) {
|
|
|
1327
1321
|
});
|
|
1328
1322
|
}
|
|
1329
1323
|
function Je(e, t = "", n = void 0, s = void 0) {
|
|
1330
|
-
const { space:
|
|
1324
|
+
const { space: o } = e;
|
|
1331
1325
|
if (t === "")
|
|
1332
1326
|
return;
|
|
1333
|
-
const
|
|
1327
|
+
const c = {
|
|
1334
1328
|
uri: "/enovia/resources/v1/modeler/documents"
|
|
1335
|
-
},
|
|
1329
|
+
}, i = {
|
|
1336
1330
|
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
|
|
1337
1331
|
Accept: "application/json,text/javascript,*/*"
|
|
1338
|
-
}, a = `${
|
|
1332
|
+
}, a = `${o}${c.uri}`, r = `$include=none,lockerInfo,ownerInfo,originatorInfo,files,ownerInfo,originatorInfo&$fields=none,title,name,typeNLS,collabSpaceTitle,revision,isLatestRevision,files,lockStatus,lockerInfo.name,lockerInfo.firstname,lockerInfo.lastname,owner,ownerInfo.name,ownerInfo.firstname,ownerInfo.lastname,stateNLS,modified,policy,state,organizationTitle,originator,originatorInfo.name,originatorInfo.firstname,originatorInfo.lastname,hasModifyAccess,fileExtension,files.name,files.title,files.revision,files.locker,ownerInfo,ownerInfo.name,ownerInfo.firstname,ownerInfo.lastname,originatorInfo,originatorInfo.name,originatorInfo.firstname,originatorInfo.lastname&$ids=${t}`;
|
|
1339
1333
|
f(a, {
|
|
1340
1334
|
method: "POST",
|
|
1341
|
-
headers:
|
|
1342
|
-
data:
|
|
1335
|
+
headers: i,
|
|
1336
|
+
data: r,
|
|
1343
1337
|
onComplete(d) {
|
|
1344
1338
|
n && n(JSON.parse(d));
|
|
1345
1339
|
},
|
|
@@ -1352,18 +1346,18 @@ function Je(e, t = "", n = void 0, s = void 0) {
|
|
|
1352
1346
|
async function w(e, t = void 0, n = void 0) {
|
|
1353
1347
|
const s = e.space + "/api/index/tk";
|
|
1354
1348
|
return f(s, {
|
|
1355
|
-
onComplete(
|
|
1356
|
-
const a = JSON.parse(
|
|
1349
|
+
onComplete(o, c, i) {
|
|
1350
|
+
const a = JSON.parse(o);
|
|
1357
1351
|
if (t)
|
|
1358
1352
|
return t(a), e.token = a?.result?.ServerToken;
|
|
1359
1353
|
},
|
|
1360
|
-
onFailure(
|
|
1361
|
-
n && n(
|
|
1354
|
+
onFailure(o) {
|
|
1355
|
+
n && n(o);
|
|
1362
1356
|
}
|
|
1363
1357
|
});
|
|
1364
1358
|
}
|
|
1365
1359
|
function Ge(e, t = void 0, n = void 0) {
|
|
1366
|
-
const s = `${e.space}/api/exalead/whatsnew`,
|
|
1360
|
+
const s = `${e.space}/api/exalead/whatsnew`, o = {
|
|
1367
1361
|
params: {
|
|
1368
1362
|
community_id: null,
|
|
1369
1363
|
hash_key: null,
|
|
@@ -1373,27 +1367,27 @@ function Ge(e, t = void 0, n = void 0) {
|
|
|
1373
1367
|
start: 0
|
|
1374
1368
|
}
|
|
1375
1369
|
};
|
|
1376
|
-
w(e, (
|
|
1370
|
+
w(e, (c) => {
|
|
1377
1371
|
f(s, {
|
|
1378
1372
|
method: "POST",
|
|
1379
1373
|
headers: {
|
|
1380
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1374
|
+
"X-DS-SWYM-CSRFTOKEN": c.result.ServerToken,
|
|
1381
1375
|
"Content-type": "application/json;charset=UTF-8",
|
|
1382
1376
|
Accept: "application/json"
|
|
1383
1377
|
},
|
|
1384
|
-
data: JSON.stringify(
|
|
1378
|
+
data: JSON.stringify(o),
|
|
1385
1379
|
type: "json",
|
|
1386
|
-
onComplete(
|
|
1387
|
-
t && t(
|
|
1380
|
+
onComplete(i, a) {
|
|
1381
|
+
t && t(i, a);
|
|
1388
1382
|
},
|
|
1389
|
-
onFailure(
|
|
1390
|
-
n && n(
|
|
1383
|
+
onFailure(i, a) {
|
|
1384
|
+
n && n(i, a);
|
|
1391
1385
|
}
|
|
1392
1386
|
});
|
|
1393
1387
|
});
|
|
1394
1388
|
}
|
|
1395
1389
|
function Ke(e, t = void 0, n = void 0) {
|
|
1396
|
-
const s = `${e.space}/api/Recommendation/getpeoplefamiliartocurrentuser`,
|
|
1390
|
+
const s = `${e.space}/api/Recommendation/getpeoplefamiliartocurrentuser`, o = {
|
|
1397
1391
|
params: {
|
|
1398
1392
|
idsToFilterArr: [],
|
|
1399
1393
|
mode: "offline",
|
|
@@ -1402,22 +1396,22 @@ function Ke(e, t = void 0, n = void 0) {
|
|
|
1402
1396
|
maxNbOfCommonElements: "5"
|
|
1403
1397
|
}
|
|
1404
1398
|
};
|
|
1405
|
-
w(e, (
|
|
1399
|
+
w(e, (c) => {
|
|
1406
1400
|
f(s, {
|
|
1407
1401
|
method: "POST",
|
|
1408
1402
|
headers: {
|
|
1409
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1403
|
+
"X-DS-SWYM-CSRFTOKEN": c.result.ServerToken,
|
|
1410
1404
|
"Content-type": "application/json;charset=UTF-8",
|
|
1411
1405
|
Accept: "application/json"
|
|
1412
1406
|
},
|
|
1413
|
-
data: JSON.stringify(
|
|
1407
|
+
data: JSON.stringify(o),
|
|
1414
1408
|
type: "json",
|
|
1415
|
-
onComplete(
|
|
1416
|
-
const
|
|
1417
|
-
t && t(
|
|
1409
|
+
onComplete(i, a) {
|
|
1410
|
+
const r = i.result.hits.map((d) => ({ login: d.login, fullName: d.name }));
|
|
1411
|
+
t && t(r, i);
|
|
1418
1412
|
},
|
|
1419
|
-
onFailure(
|
|
1420
|
-
n && n(
|
|
1413
|
+
onFailure(i, a) {
|
|
1414
|
+
n && n(i, a);
|
|
1421
1415
|
}
|
|
1422
1416
|
});
|
|
1423
1417
|
});
|
|
@@ -1428,14 +1422,14 @@ function We(e, t = void 0, n = void 0) {
|
|
|
1428
1422
|
uri: "/api/community/listmycommunities",
|
|
1429
1423
|
limit: `/limit/${e.limit ? e.limit : 128}`,
|
|
1430
1424
|
page: `/page/${e.page ? e.page : "1"}`
|
|
1431
|
-
},
|
|
1432
|
-
w(e, (
|
|
1433
|
-
f(
|
|
1425
|
+
}, o = `${s.base}${s.uri}${s.limit}${s.page}`, c = [];
|
|
1426
|
+
w(e, (i) => {
|
|
1427
|
+
f(o, {
|
|
1434
1428
|
method: "GET",
|
|
1435
1429
|
headers: {
|
|
1436
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1430
|
+
"X-DS-SWYM-CSRFTOKEN": i.result.ServerToken
|
|
1437
1431
|
},
|
|
1438
|
-
onComplete(a,
|
|
1432
|
+
onComplete(a, r, d) {
|
|
1439
1433
|
const p = JSON.parse(a).result;
|
|
1440
1434
|
let u = 0;
|
|
1441
1435
|
p.forEach((m) => {
|
|
@@ -1447,47 +1441,47 @@ function We(e, t = void 0, n = void 0) {
|
|
|
1447
1441
|
role: m.role,
|
|
1448
1442
|
access: m.access
|
|
1449
1443
|
};
|
|
1450
|
-
|
|
1444
|
+
q(
|
|
1451
1445
|
e,
|
|
1452
1446
|
m.id,
|
|
1453
1447
|
(h) => {
|
|
1454
|
-
u++, g.members = h,
|
|
1448
|
+
u++, g.members = h, c.push(g), u === p.length && t && t(c);
|
|
1455
1449
|
},
|
|
1456
1450
|
(h) => n(h)
|
|
1457
1451
|
);
|
|
1458
1452
|
});
|
|
1459
1453
|
},
|
|
1460
|
-
onFailure(a,
|
|
1454
|
+
onFailure(a, r) {
|
|
1461
1455
|
const d = a;
|
|
1462
|
-
d.status =
|
|
1456
|
+
d.status = r.status, d.response = r.errormsg, n && n(d);
|
|
1463
1457
|
}
|
|
1464
1458
|
});
|
|
1465
1459
|
});
|
|
1466
1460
|
}
|
|
1467
|
-
function
|
|
1468
|
-
const
|
|
1461
|
+
function q(e, t, n, s) {
|
|
1462
|
+
const o = `${e.space}/api/community/listmembers`, c = {
|
|
1469
1463
|
params: {
|
|
1470
1464
|
page: e.page ? e.page : 1,
|
|
1471
1465
|
limit: e.limit ? e.limit : 50,
|
|
1472
1466
|
community_id: t
|
|
1473
1467
|
}
|
|
1474
1468
|
};
|
|
1475
|
-
w(e, (
|
|
1476
|
-
f(
|
|
1469
|
+
w(e, (i) => {
|
|
1470
|
+
f(o, {
|
|
1477
1471
|
method: "POST",
|
|
1478
1472
|
headers: {
|
|
1479
1473
|
"Content-type": "application/json;charset=UTF-8",
|
|
1480
1474
|
Accept: "application/json",
|
|
1481
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1475
|
+
"X-DS-SWYM-CSRFTOKEN": i.result.ServerToken
|
|
1482
1476
|
},
|
|
1483
|
-
data: JSON.stringify(
|
|
1477
|
+
data: JSON.stringify(c),
|
|
1484
1478
|
type: "json",
|
|
1485
|
-
onComplete(a,
|
|
1479
|
+
onComplete(a, r, d) {
|
|
1486
1480
|
n && n(a);
|
|
1487
1481
|
},
|
|
1488
|
-
onFailure(a,
|
|
1482
|
+
onFailure(a, r) {
|
|
1489
1483
|
const d = a;
|
|
1490
|
-
d.status =
|
|
1484
|
+
d.status = r.status, d.response = r.errormsg, s && s(d);
|
|
1491
1485
|
}
|
|
1492
1486
|
});
|
|
1493
1487
|
});
|
|
@@ -1495,49 +1489,49 @@ function Q(e, t, n, s) {
|
|
|
1495
1489
|
function Xe(e, t = void 0, n = void 0) {
|
|
1496
1490
|
const s = "YXdA5x4DSUKtlAi2wmnyTA";
|
|
1497
1491
|
e.commu_id || (e.commu_id = s);
|
|
1498
|
-
const
|
|
1499
|
-
w(e, (
|
|
1500
|
-
f(
|
|
1492
|
+
const o = `${e.space}/api/v2/communities/${e.commu_id}/ideas/statuses`;
|
|
1493
|
+
w(e, (c) => {
|
|
1494
|
+
f(o, {
|
|
1501
1495
|
method: "GET",
|
|
1502
1496
|
headers: {
|
|
1503
1497
|
"Content-type": "application/json;charset=UTF-8",
|
|
1504
1498
|
Accept: "application/json",
|
|
1505
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1499
|
+
"X-DS-SWYM-CSRFTOKEN": c.result.ServerToken
|
|
1506
1500
|
},
|
|
1507
|
-
onComplete(
|
|
1508
|
-
const a = JSON.parse(
|
|
1501
|
+
onComplete(i) {
|
|
1502
|
+
const a = JSON.parse(i);
|
|
1509
1503
|
t && t(a);
|
|
1510
1504
|
},
|
|
1511
|
-
onFailure(
|
|
1512
|
-
const
|
|
1513
|
-
|
|
1505
|
+
onFailure(i, a) {
|
|
1506
|
+
const r = i;
|
|
1507
|
+
r.status = a.status, r.response = a.errormsg, n && n(r);
|
|
1514
1508
|
}
|
|
1515
1509
|
});
|
|
1516
1510
|
});
|
|
1517
1511
|
}
|
|
1518
1512
|
function Ve(e, t, n = void 0, s = void 0) {
|
|
1519
|
-
const { listAllContacts:
|
|
1520
|
-
console.log("__listAllContacts",
|
|
1521
|
-
const
|
|
1522
|
-
users: [
|
|
1523
|
-
},
|
|
1513
|
+
const { listAllContacts: o, currentUser: c } = e;
|
|
1514
|
+
console.log("__listAllContacts", o.hits);
|
|
1515
|
+
const i = `${e.space}/api/directmessages`, a = {
|
|
1516
|
+
users: [c.login].concat(t.receipt)
|
|
1517
|
+
}, r = {
|
|
1524
1518
|
id_msg: "",
|
|
1525
1519
|
senderId: e.currentUser.login,
|
|
1526
1520
|
senderName: `${e.currentUser.first_name} ${e.currentUser.last_name}`,
|
|
1527
|
-
msg:
|
|
1521
|
+
msg: Z(t.msg)
|
|
1528
1522
|
};
|
|
1529
1523
|
let d = !1;
|
|
1530
|
-
|
|
1524
|
+
Q(
|
|
1531
1525
|
a.users,
|
|
1532
1526
|
(l) => {
|
|
1533
|
-
l !== void 0 && (
|
|
1527
|
+
l !== void 0 && (r.id_msg = l.id, d = !0, j(e, r));
|
|
1534
1528
|
},
|
|
1535
1529
|
(l) => {
|
|
1536
|
-
d = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", l), s && s(l),
|
|
1530
|
+
d = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", l), s && s(l), r.id_msg = "";
|
|
1537
1531
|
}
|
|
1538
1532
|
), d === !1 && setTimeout(() => {
|
|
1539
1533
|
d === !1 && w(e, (l) => {
|
|
1540
|
-
f(
|
|
1534
|
+
f(i, {
|
|
1541
1535
|
method: "POST",
|
|
1542
1536
|
headers: {
|
|
1543
1537
|
"Content-Type": "application/json",
|
|
@@ -1548,7 +1542,7 @@ function Ve(e, t, n = void 0, s = void 0) {
|
|
|
1548
1542
|
type: "json",
|
|
1549
1543
|
onComplete(p, u, m) {
|
|
1550
1544
|
const g = p;
|
|
1551
|
-
g.reponse = JSON.parse(m.response), g.status = m.status, n && n(g),
|
|
1545
|
+
g.reponse = JSON.parse(m.response), g.status = m.status, n && n(g), r.id_msg = g.result.id, j(e, r);
|
|
1552
1546
|
},
|
|
1553
1547
|
onFailure(p, u, m) {
|
|
1554
1548
|
const g = p;
|
|
@@ -1558,21 +1552,21 @@ function Ve(e, t, n = void 0, s = void 0) {
|
|
|
1558
1552
|
});
|
|
1559
1553
|
}, 500);
|
|
1560
1554
|
}
|
|
1561
|
-
function
|
|
1562
|
-
const
|
|
1563
|
-
w(e, (
|
|
1564
|
-
f(
|
|
1555
|
+
function Q(e, t, n, s) {
|
|
1556
|
+
const o = `${e.space}/api/directmessages/lite?with_favorites=false`;
|
|
1557
|
+
w(e, (c) => {
|
|
1558
|
+
f(o, {
|
|
1565
1559
|
method: "GET",
|
|
1566
1560
|
headers: {
|
|
1567
1561
|
Accept: "application/json,text/javascript,*/*",
|
|
1568
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1562
|
+
"X-DS-SWYM-CSRFTOKEN": c.result.ServerToken
|
|
1569
1563
|
},
|
|
1570
|
-
onComplete(
|
|
1571
|
-
const a = JSON.parse(
|
|
1564
|
+
onComplete(i) {
|
|
1565
|
+
const a = JSON.parse(i), r = [];
|
|
1572
1566
|
a.result.forEach((p) => {
|
|
1573
|
-
p.users = p.users.sort((u, m) => u.login.localeCompare(m.login)), p.users.length === t.length &&
|
|
1567
|
+
p.users = p.users.sort((u, m) => u.login.localeCompare(m.login)), p.users.length === t.length && r.push(p);
|
|
1574
1568
|
});
|
|
1575
|
-
const d = t.sort(), l =
|
|
1569
|
+
const d = t.sort(), l = r.find((p) => {
|
|
1576
1570
|
const u = [];
|
|
1577
1571
|
return p.users.forEach((m) => {
|
|
1578
1572
|
u.push(m.login);
|
|
@@ -1580,20 +1574,20 @@ function Z(e, t, n, s) {
|
|
|
1580
1574
|
});
|
|
1581
1575
|
n && l !== void 0 ? n(l) : (s || l === void 0) && s(l);
|
|
1582
1576
|
},
|
|
1583
|
-
onFailure(
|
|
1584
|
-
const a =
|
|
1577
|
+
onFailure(i) {
|
|
1578
|
+
const a = i;
|
|
1585
1579
|
a.msg = headers.errormsg, a.errCode = headers.errorcode, console.log("❌ sendDirectMessageLite => ", a), s && s(a);
|
|
1586
1580
|
}
|
|
1587
1581
|
});
|
|
1588
1582
|
});
|
|
1589
1583
|
}
|
|
1590
1584
|
function j(e, t, n = void 0, s = void 0) {
|
|
1591
|
-
const
|
|
1585
|
+
const o = {
|
|
1592
1586
|
base: e.space,
|
|
1593
1587
|
uri: "/api/community",
|
|
1594
1588
|
id_msg: `${t.id_msg}`,
|
|
1595
1589
|
endUri: "/instantmessages"
|
|
1596
|
-
},
|
|
1590
|
+
}, c = `${o.base}${o.uri}/${o.id_msg}${o.endUri}`, i = {
|
|
1597
1591
|
author: { login: t.senderId, displayName: t.senderName },
|
|
1598
1592
|
accessState: null,
|
|
1599
1593
|
commentUri: null,
|
|
@@ -1603,35 +1597,35 @@ function j(e, t, n = void 0, s = void 0) {
|
|
|
1603
1597
|
parentCommentUri: null,
|
|
1604
1598
|
richMessage: t.msg
|
|
1605
1599
|
};
|
|
1606
|
-
console.log("_3dSwym_sendDirectMessageData url ",
|
|
1607
|
-
f(
|
|
1600
|
+
console.log("_3dSwym_sendDirectMessageData url ", c), w(e, (a) => {
|
|
1601
|
+
f(c, {
|
|
1608
1602
|
method: "POST",
|
|
1609
1603
|
headers: {
|
|
1610
1604
|
"Content-Type": "application/json",
|
|
1611
1605
|
Accept: "application/json",
|
|
1612
1606
|
"X-DS-SWYM-CSRFTOKEN": a.result.ServerToken
|
|
1613
1607
|
},
|
|
1614
|
-
data: JSON.stringify(
|
|
1608
|
+
data: JSON.stringify(i),
|
|
1615
1609
|
type: "json",
|
|
1616
|
-
onComplete(
|
|
1617
|
-
const p =
|
|
1610
|
+
onComplete(r, d, l) {
|
|
1611
|
+
const p = r;
|
|
1618
1612
|
p.status = l.status, p.response = JSON.parse(l.response), console.log("✅ _3dSwym_sendDirectMessageData => ", p), n && n(p);
|
|
1619
1613
|
},
|
|
1620
|
-
onFailure(
|
|
1621
|
-
const l =
|
|
1614
|
+
onFailure(r, d) {
|
|
1615
|
+
const l = r;
|
|
1622
1616
|
l.msg = d.errormsg, l.errCode = d.errorcode, console.log("❌ sendDirectMessage => ", l), s && s(l);
|
|
1623
1617
|
}
|
|
1624
1618
|
});
|
|
1625
1619
|
});
|
|
1626
1620
|
}
|
|
1627
|
-
function
|
|
1621
|
+
function Z(e) {
|
|
1628
1622
|
const t = (/* @__PURE__ */ new Date()).toLocaleDateString(), n = (/* @__PURE__ */ new Date()).toLocaleTimeString();
|
|
1629
1623
|
return `<p>${e} </p>
|
|
1630
1624
|
<br/>
|
|
1631
1625
|
<hr/>
|
|
1632
1626
|
<p><u>envoyer :</u>Le <b>${t} à ${n}</b></p>`;
|
|
1633
1627
|
}
|
|
1634
|
-
const
|
|
1628
|
+
const ee = {
|
|
1635
1629
|
title: "TEST DEV COMMUNITY IDEA",
|
|
1636
1630
|
// titre du post
|
|
1637
1631
|
community_id: "YXdA5x4DSUKtlAi2wmnyTA",
|
|
@@ -1642,29 +1636,29 @@ const te = {
|
|
|
1642
1636
|
// id de l'idee qui est créer au post (_3dSwym_postIdea)
|
|
1643
1637
|
};
|
|
1644
1638
|
function Be(e, t, n = void 0, s = void 0) {
|
|
1645
|
-
const
|
|
1646
|
-
(
|
|
1647
|
-
),
|
|
1648
|
-
(
|
|
1639
|
+
const o = `${e.space}/api/idea/add`, c = e.swymCommunities.find(
|
|
1640
|
+
(r) => r.id === t.community_id
|
|
1641
|
+
), i = e.swymCommunities.find(
|
|
1642
|
+
(r) => r.title.toLowerCase() === t.community_title.toLowerCase()
|
|
1649
1643
|
), a = {
|
|
1650
1644
|
params: {
|
|
1651
1645
|
title: t.title,
|
|
1652
1646
|
// String, le nom de l'affaire
|
|
1653
|
-
community_id:
|
|
1647
|
+
community_id: c?.id !== void 0 ? c.id : i.id,
|
|
1654
1648
|
// String, l'id de la communauté
|
|
1655
|
-
message:
|
|
1649
|
+
message: te(t.text_html),
|
|
1656
1650
|
// STRING => le contenue du message doit être au format HTML
|
|
1657
1651
|
published: 1
|
|
1658
1652
|
// 1 publier, 0 non publier
|
|
1659
1653
|
}
|
|
1660
1654
|
};
|
|
1661
|
-
w(e, (
|
|
1655
|
+
w(e, (r) => {
|
|
1662
1656
|
const d = {
|
|
1663
1657
|
"Content-type": "application/json;charset=UTF-8",
|
|
1664
1658
|
Accept: "application/json",
|
|
1665
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1659
|
+
"X-DS-SWYM-CSRFTOKEN": r.result.ServerToken
|
|
1666
1660
|
};
|
|
1667
|
-
f(
|
|
1661
|
+
f(o, {
|
|
1668
1662
|
method: "POST",
|
|
1669
1663
|
headers: d,
|
|
1670
1664
|
data: JSON.stringify(a),
|
|
@@ -1681,85 +1675,85 @@ function Be(e, t, n = void 0, s = void 0) {
|
|
|
1681
1675
|
});
|
|
1682
1676
|
}
|
|
1683
1677
|
function Ye(e, t, n = void 0, s = void 0) {
|
|
1684
|
-
const
|
|
1678
|
+
const o = `${e.space}/api/idea/delete`, c = {
|
|
1685
1679
|
params: {
|
|
1686
1680
|
community_id: t.community_id,
|
|
1687
1681
|
ideationIds: [t.idee_id]
|
|
1688
1682
|
}
|
|
1689
1683
|
};
|
|
1690
|
-
w(e, (
|
|
1691
|
-
f(
|
|
1684
|
+
w(e, (i) => {
|
|
1685
|
+
f(o, {
|
|
1692
1686
|
method: "POST",
|
|
1693
1687
|
headers: {
|
|
1694
1688
|
"Content-type": "application/json;charset=UTF-8",
|
|
1695
1689
|
Accept: "application/json",
|
|
1696
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1690
|
+
"X-DS-SWYM-CSRFTOKEN": i.result.ServerToken
|
|
1697
1691
|
},
|
|
1698
|
-
data: JSON.stringify(
|
|
1692
|
+
data: JSON.stringify(c),
|
|
1699
1693
|
type: "json",
|
|
1700
|
-
onComplete(a,
|
|
1694
|
+
onComplete(a, r, d) {
|
|
1701
1695
|
n && n(a);
|
|
1702
1696
|
},
|
|
1703
|
-
onFailure(a,
|
|
1697
|
+
onFailure(a, r, d) {
|
|
1704
1698
|
const l = a;
|
|
1705
|
-
l.status =
|
|
1699
|
+
l.status = r.status, l.response = r.errormsg, s && s(l);
|
|
1706
1700
|
}
|
|
1707
1701
|
});
|
|
1708
1702
|
});
|
|
1709
1703
|
}
|
|
1710
1704
|
function He(e, t = "", n = void 0, s = void 0) {
|
|
1711
|
-
const
|
|
1712
|
-
t === "" && (t =
|
|
1713
|
-
const
|
|
1705
|
+
const o = e.tenant.toLowerCase() === "r1132101716373" ? "tFtz0G4MR6qNtKgJjNfTog" : e.tenant.toLowerCase() === "r1132101286859" ? "Qpv3HN-tTDOsU-7_c5DnDg" : "Template_d'idée_à_créer";
|
|
1706
|
+
t === "" && (t = o);
|
|
1707
|
+
const c = `${e.space}/api/idea/get`, i = {
|
|
1714
1708
|
params: {
|
|
1715
1709
|
id: t
|
|
1716
1710
|
}
|
|
1717
1711
|
};
|
|
1718
1712
|
w(e, (a) => {
|
|
1719
|
-
f(
|
|
1713
|
+
f(c, {
|
|
1720
1714
|
method: "POST",
|
|
1721
1715
|
headers: {
|
|
1722
1716
|
"Content-type": "application/json;charset=UTF-8",
|
|
1723
1717
|
Accept: "application/json",
|
|
1724
1718
|
"X-DS-SWYM-CSRFTOKEN": a.result.ServerToken
|
|
1725
1719
|
},
|
|
1726
|
-
data: JSON.stringify(
|
|
1720
|
+
data: JSON.stringify(i),
|
|
1727
1721
|
type: "json",
|
|
1728
|
-
onComplete(
|
|
1729
|
-
const d =
|
|
1722
|
+
onComplete(r) {
|
|
1723
|
+
const d = r;
|
|
1730
1724
|
d.msg = d.result.message, n && n(d);
|
|
1731
1725
|
},
|
|
1732
|
-
onFailure(
|
|
1733
|
-
const d =
|
|
1726
|
+
onFailure(r) {
|
|
1727
|
+
const d = r;
|
|
1734
1728
|
d.status = headers.status, d.response = headers.errormsg, s && s(d);
|
|
1735
1729
|
}
|
|
1736
1730
|
});
|
|
1737
1731
|
});
|
|
1738
1732
|
}
|
|
1739
|
-
function ze(e, t =
|
|
1740
|
-
const
|
|
1733
|
+
function ze(e, t = ee, n = void 0, s = void 0) {
|
|
1734
|
+
const o = {
|
|
1741
1735
|
uri: "/api/idea/list",
|
|
1742
1736
|
comId: `/community_id/${e.tenant.toLowerCase() === "r1132101716373" ? t.community_id : "bgnIsG74SUWswyGzS6NC6g"}`,
|
|
1743
1737
|
limit: `/limit/${t.limit ? t.limit : 10}`
|
|
1744
|
-
},
|
|
1745
|
-
w(e, (
|
|
1746
|
-
f(
|
|
1738
|
+
}, c = `${e.space}${o.uri}${o.comId}${o.limit}`;
|
|
1739
|
+
w(e, (i) => {
|
|
1740
|
+
f(c, {
|
|
1747
1741
|
method: "GET",
|
|
1748
1742
|
headers: {
|
|
1749
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1743
|
+
"X-DS-SWYM-CSRFTOKEN": i.result.ServerToken
|
|
1750
1744
|
},
|
|
1751
1745
|
onComplete(a) {
|
|
1752
|
-
const
|
|
1753
|
-
n && n(
|
|
1746
|
+
const r = JSON.parse(a);
|
|
1747
|
+
n && n(r);
|
|
1754
1748
|
},
|
|
1755
|
-
onFailure(a,
|
|
1749
|
+
onFailure(a, r) {
|
|
1756
1750
|
const d = a;
|
|
1757
|
-
d.status =
|
|
1751
|
+
d.status = r.status, d.response = r.errormsg, s && s(d);
|
|
1758
1752
|
}
|
|
1759
1753
|
});
|
|
1760
1754
|
});
|
|
1761
1755
|
}
|
|
1762
|
-
function
|
|
1756
|
+
function te(e) {
|
|
1763
1757
|
return !e || e === "" ? `<h2><u>INFORMATIONS AFFAIRE :</u></h2>
|
|
1764
1758
|
<p><u>|⚠️<em> Merci de respecter l'écriture des tags, en MAJUSCULES, nom complet, pas de caractères</em></u></p>
|
|
1765
1759
|
<p><u><em>|spéciaux, séparation par "_" si besoin !</em></u></p>
|
|
@@ -1838,16 +1832,16 @@ function qe(e, t = void 0, n = void 0) {
|
|
|
1838
1832
|
const s = e.space + "/api/user/getcurrent/";
|
|
1839
1833
|
w(
|
|
1840
1834
|
e,
|
|
1841
|
-
(
|
|
1835
|
+
(o) => {
|
|
1842
1836
|
f(s, {
|
|
1843
1837
|
method: "GET",
|
|
1844
|
-
headers: { "X-DS-SWYM-CSRFTOKEN":
|
|
1845
|
-
onComplete(
|
|
1846
|
-
const
|
|
1847
|
-
t && t(
|
|
1838
|
+
headers: { "X-DS-SWYM-CSRFTOKEN": o.result.ServerToken },
|
|
1839
|
+
onComplete(c, i, a) {
|
|
1840
|
+
const r = JSON.parse(c);
|
|
1841
|
+
t && t(r.result);
|
|
1848
1842
|
},
|
|
1849
|
-
onFailure(
|
|
1850
|
-
n && n({ response:
|
|
1843
|
+
onFailure(c, i, a) {
|
|
1844
|
+
n && n({ response: c, headers: i, xhr: a });
|
|
1851
1845
|
}
|
|
1852
1846
|
});
|
|
1853
1847
|
},
|
|
@@ -1855,19 +1849,19 @@ function qe(e, t = void 0, n = void 0) {
|
|
|
1855
1849
|
);
|
|
1856
1850
|
}
|
|
1857
1851
|
function Qe(e, t, n = void 0, s = void 0) {
|
|
1858
|
-
const
|
|
1852
|
+
const o = e.space + "/api/user/find/login/" + t;
|
|
1859
1853
|
w(
|
|
1860
1854
|
e,
|
|
1861
|
-
(
|
|
1862
|
-
f(
|
|
1855
|
+
(c) => {
|
|
1856
|
+
f(o, {
|
|
1863
1857
|
method: "GET",
|
|
1864
|
-
headers: { "X-DS-SWYM-CSRFTOKEN":
|
|
1865
|
-
onComplete(
|
|
1866
|
-
const d = JSON.parse(
|
|
1858
|
+
headers: { "X-DS-SWYM-CSRFTOKEN": c.result.ServerToken },
|
|
1859
|
+
onComplete(i, a, r) {
|
|
1860
|
+
const d = JSON.parse(i);
|
|
1867
1861
|
n && n(d);
|
|
1868
1862
|
},
|
|
1869
|
-
onFailure(
|
|
1870
|
-
s && s(
|
|
1863
|
+
onFailure(i) {
|
|
1864
|
+
s && s(i);
|
|
1871
1865
|
}
|
|
1872
1866
|
});
|
|
1873
1867
|
},
|
|
@@ -1880,28 +1874,28 @@ function Ze(e) {
|
|
|
1880
1874
|
}
|
|
1881
1875
|
export {
|
|
1882
1876
|
R as UUID,
|
|
1883
|
-
|
|
1877
|
+
be as _3DSpace_Create_Doc,
|
|
1884
1878
|
C as _3DSpace_csrf,
|
|
1885
1879
|
I as _3DSpace_download_doc,
|
|
1886
1880
|
W as _3DSpace_download_multidoc,
|
|
1887
1881
|
G as _3DSpace_file_update,
|
|
1888
1882
|
K as _3DSpace_file_update_csr,
|
|
1889
|
-
|
|
1890
|
-
|
|
1883
|
+
U as _3DSpace_file_url,
|
|
1884
|
+
Ne as _3DSpace_file_url_csr,
|
|
1891
1885
|
k as _3DSpace_get_csrf,
|
|
1892
1886
|
J as _3DSpace_get_docInfo,
|
|
1893
1887
|
X as _3DSpace_get_downloadTicket_multidoc,
|
|
1894
1888
|
N as _3DSpace_get_securityContexts,
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1889
|
+
$e as _3DSpace_lifecycle_changeRevision,
|
|
1890
|
+
De as _3DSpace_lifecycle_changeState,
|
|
1891
|
+
Fe as _3DSpace_lifecycle_getGraph,
|
|
1892
|
+
Ue as _3DSpace_lifecycle_getNextRevision,
|
|
1893
|
+
ke as _3DSpace_lifecycle_getNextStates,
|
|
1900
1894
|
We as _3DSwim_getAllCommunities,
|
|
1901
|
-
|
|
1895
|
+
q as _3DSwim_getMembersCommunity,
|
|
1902
1896
|
Ve as _3DSwym_buildDirectMessage,
|
|
1903
1897
|
Ye as _3DSwym_deleteIdea,
|
|
1904
|
-
|
|
1898
|
+
Q as _3DSwym_findCommunityToInstantMSG,
|
|
1905
1899
|
Ge as _3DSwym_getAllNews,
|
|
1906
1900
|
Ke as _3DSwym_getFamiliarPeople,
|
|
1907
1901
|
Xe as _3DSwym_getIdeaStatusMaturity,
|
|
@@ -1912,40 +1906,40 @@ export {
|
|
|
1912
1906
|
w as _3DSwym_get_version,
|
|
1913
1907
|
Be as _3DSwym_postIdea,
|
|
1914
1908
|
j as _3DSwym_sendMessageData,
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1909
|
+
he as _AppMngt_get_info_user,
|
|
1910
|
+
ge as _AppMngt_get_users,
|
|
1911
|
+
fe as _getPlateformInfos,
|
|
1912
|
+
ue as _getPlatformServices,
|
|
1919
1913
|
f as _httpCallAuthenticated,
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1914
|
+
de as _setDraggable,
|
|
1915
|
+
pe as _setDroppable,
|
|
1916
|
+
le as _setupTagger,
|
|
1923
1917
|
Le as addTagToDoc,
|
|
1924
|
-
|
|
1918
|
+
me as compass_getListAdditionalApps,
|
|
1925
1919
|
L as couleurs,
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1920
|
+
Se as createUserGroups,
|
|
1921
|
+
V as dataMixing,
|
|
1922
|
+
we as deleteUserGroups,
|
|
1923
|
+
ie as findAdresse,
|
|
1924
|
+
Ae as getAllContextSecurity,
|
|
1925
|
+
je as getCSRFToken,
|
|
1932
1926
|
oe as getCommunes,
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1927
|
+
_e as getComplementUG,
|
|
1928
|
+
Re as getDataFrom3DSpace,
|
|
1929
|
+
re as getDataFromGouvFr,
|
|
1930
|
+
Pe as getDatasByTenant,
|
|
1931
|
+
Me as getDatasFrom3DSpace,
|
|
1932
|
+
Ie as getDownloadDocument,
|
|
1939
1933
|
Je as getInfoDocTags,
|
|
1940
|
-
|
|
1934
|
+
ye as getUserGroupsList,
|
|
1941
1935
|
E as getUsersGroupRules,
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1936
|
+
xe as get_3DSpace_csrf,
|
|
1937
|
+
Te as patchUserGroups,
|
|
1938
|
+
Ce as patchUserGroupsControl,
|
|
1939
|
+
ve as pushDataIn3DSpace,
|
|
1940
|
+
Oe as readUserGroupControl,
|
|
1947
1941
|
Ee as removeTagToDoc,
|
|
1948
1942
|
Ze as sayHello,
|
|
1949
|
-
|
|
1943
|
+
ce as updateEvent
|
|
1950
1944
|
};
|
|
1951
1945
|
//# sourceMappingURL=wb3Api.js.map
|