update function get index serial number

This commit is contained in:
joseph le 2023-08-28 07:42:02 +07:00
parent f2f4647a96
commit cdb2c4479c
11 changed files with 2299 additions and 176 deletions

View File

@ -16,7 +16,7 @@ export default class ErpsController {
const getListLog = async (from, to) => {
try {
// console.log("check!")
const listLog:string[] = []
const listLog: string[] = [];
const response = await axios.get("http://192.168.5.7:8080/");
const data = response.data;
const arrayLine = data
@ -78,6 +78,10 @@ export default class ErpsController {
let output = [];
if (arrayLine !== undefined) {
for (let i = 0; i < arrayLine.length; i++) {
let SN = arrayLine[i]
?.split("SN:")[1]
?.trim()
.replace(/[!@#$%^&*()_+{}\[\]:;<>,.?~\\/]/g, "");
if (
arrayLine[i].search("PID:") !== -1 &&
arrayLine[i].search("SN:") !== -1 &&
@ -87,30 +91,33 @@ export default class ErpsController {
?.split(":")[1]
?.replace("\r", "")
.trim() !== "" &&
arrayLine[i]
?.split(",")[2]
?.split(":")[1]
?.replace("\r", "")
.trim() !== "N/A"
SN !== "N/A"
) {
if (
output.some(
(u) =>
u.SN ===
arrayLine[i]
?.split(",")[2]
?.split(":")[1]
?.replace("\r", "")
.trim()
)
) {
if (output.some((u) => u.SN === SN)) {
output.map((u, index) => {
if (
u.SN === arrayLine[i]?.split("SN:")[1]?.trim()
) {
output[index].PID = arrayLine[i]?.split("VID:")[0] !== undefined ? arrayLine[i]?.split("VID:")[0]?.split(":")[1]?.split(",")[0]?.trim() : "";
output[index].VID = arrayLine[i]?.split("SN:")[0] !== undefined ? arrayLine[i]?.split("SN:")[0]?.split("VID:")[1]?.split(",")[0]?.trim() : "",
output[index].line = output[index].line.concat([i + 1]);
if (u.SN === SN) {
output[index].PID =
arrayLine[i]?.split("VID:")[0] !== undefined
? arrayLine[i]
?.split("VID:")[0]
?.slice(
arrayLine[i]?.split("VID:")[0]?.search("PID")
)
?.split(":")[1]
?.split(",")[0]
?.trim()
: "";
(output[index].VID =
arrayLine[i]?.split("SN:")[0] !== undefined
? arrayLine[i]
?.split("SN:")[0]
?.split("VID:")[1]
?.split(",")[0]
?.trim()
: ""),
(output[index].line = output[index].line.concat([
i + 1,
]));
}
});
} else {
@ -120,15 +127,28 @@ export default class ErpsController {
output.push({
PID:
arrayLine[i]?.split("VID:")[0] !== undefined
? arrayLine[i]?.split("VID:")[0]?.split(":")[1]?.split(",")[0]?.trim()
: "",
? arrayLine[i]
?.split("VID:")[0]
?.slice(
arrayLine[i]?.split("VID:")[0]?.search("PID")
)
?.split(":")[1]
?.split(",")[0]
?.trim()
: "",
VID:
arrayLine[i]?.split("SN:")[0] !== undefined
? arrayLine[i]?.split("SN:")[0]?.split("VID:")[1]?.split(",")[0]?.trim()
: "",
? arrayLine[i]
?.split("SN:")[0]
?.split("VID:")[1]
?.split(",")[0]
?.trim()
: "",
SN:
arrayLine[i].split("SN:")[1] !== undefined
? arrayLine[i]?.split("SN:")[1]?.trim()
? SN.search(" ") !== -1
? SN?.split(" ")[0]
: SN
: "",
line: [i + 1],
fileName: fName,
@ -142,31 +162,37 @@ export default class ErpsController {
}
}
if (arrayLine[i].search("PCB Serial Number") !== -1) {
if (arrayLine[i].search("Serial Number") !== -1) {
let PCB_SN = arrayLine[i]
?.split("Serial Number")[1].split(":")[1]
?.replace("\r", "")
.trim()
.replace(/[!@#$%^&*()_+{}\[\]:;<>,.?~\\/]/g, "");
if (
//Neu SN da nam trong output
output.some(
(u) =>
u.SN ===
arrayLine[i]?.split(":")[1]?.replace("\r", "").trim()
)
output.some((u) => u.SN === PCB_SN)
) {
output.map((u, index) => {
if (
u.SN ===
arrayLine[i]?.split(":")[1]?.replace("\r", "").trim()
) {
if (u.SN === PCB_SN) {
output[index].line = output[index].line.concat([i + 1]);
}
});
} else {
// if (
// /^[A-Z0-9-]{5,}$/.test(
// PCB_SN
// )
// ) {
let fName = urls[index]
?.split("/")
[urls[index]?.split("/")?.length - 1]?.trim();
output.push({
PID: "",
VID: "",
SN: arrayLine[i]?.split(":")[1]?.replace("\r", "").trim(),
SN:
PCB_SN?.search(" ") !== -1
? PCB_SN?.split(" ")[0]
: PCB_SN,
line: [i + 1],
fileName: fName,
warehouse:
@ -176,43 +202,36 @@ export default class ErpsController {
? "US"
: "AU",
});
// }
}
}
if (arrayLine[i].search("Processor board ID") !== -1) {
let PBID = arrayLine[i]
?.split(" ")
[arrayLine[i]?.split(" ").length - 1]?.replace("\r", "")
.trim()
.replace(/[!@#$%^&*()_+{}\[\]:;<>,.?~\\/]/g, "");
if (
//Neu SN da nam trong output
output.some(
(u) =>
u.SN ===
arrayLine[i]
?.split(" ")
[arrayLine[i]?.split(" ").length - 1]?.replace("\r", "")
.trim()
)
output.some((u) => u.SN === PBID)
) {
output.map((u, index) => {
if (
u.SN ===
arrayLine[i]
?.split(" ")
[arrayLine[i]?.split(" ").length - 1]?.replace("\r", "")
.trim()
) {
if (u.SN === PBID) {
output[index].line = output[index].line.concat([i + 1]);
}
});
} else {
if (
PBID?.length >= 8
) {
let fName = urls[index]
?.split("/")
[urls[index]?.split("/")?.length - 1]?.trim();
output.push({
PID: "",
VID: "",
SN: arrayLine[i]
?.split(" ")
[arrayLine[i]?.split(" ").length - 1]?.replace("\r", "")
.trim(),
SN: PBID?.search(" ") !== -1 ? PBID?.split(" ")[0] : PBID,
line: [i + 1],
fileName: fName,
warehouse:
@ -222,6 +241,7 @@ export default class ErpsController {
? "US"
: "AU",
});
}
}
}
}
@ -242,7 +262,7 @@ export default class ErpsController {
}
);
// console.log(report);
return report;
return report.filter((i) => i.SN !== "" && /^[A-Z0-9-]{5,}$/.test(i.SN)===true);
// }, 15000);
} catch (error) {
response

View File

@ -12,11 +12,15 @@ export default class CheckToken {
// code for middleware goes here. ABOVE THE NEXT CALL
try {
// const user = jwtDecode(request.headers().authorization);
await jwt.verify(
console.log("first", await jwt.verify(
request.headers().authorization?.replace(/"/g, ""),
Env.get("JWT_KEY")))
let abc = await jwt.verify(
request.headers().authorization?.replace(/"/g, ""),
Env.get("JWT_KEY"),
async function (err, decoded) {
if (err) {
console.log(err)
response.status(203).send("Token invalid");
// loggerAPI(
// request,
@ -29,8 +33,9 @@ export default class CheckToken {
}
}
);
console.log(abc)
} catch (error) {
console.log(error)
console.log("sdfs", error)
response.status(203).send("Token invalid");
// loggerAPI(
// request,

25
app/Models/KeyValue.ts Normal file
View File

@ -0,0 +1,25 @@
import { DateTime } from 'luxon'
import { BaseModel, column } from '@ioc:Adonis/Lucid/Orm'
export default class KeyValue extends BaseModel {
public static table = 'key_values'
@column({ isPrimary: true })
public id_key: number
@column()
public key: string
@column()
public value: string
@column()
public model: string
@column.dateTime({ autoCreate: true })
public created_at: DateTime
@column.dateTime({ autoCreate: true, autoUpdate: true })
public updated_at: DateTime
}

6
app/store/logs/abc.log Normal file
View File

@ -0,0 +1,6 @@
fjsfhsjkk
sjghsjkdg
err
sngjksg
fault
fhgg45345

View File

@ -0,0 +1,14 @@
set_radius_extended_configsdf
set_radius_extended_configsdfsdf
fsdsdfsf
xe xich low
set_radius_extended_configsdfsdfdfhfg
fghgf
fghgfdfjgdfkjgerr
dfhkhjh
cong hoa xa hoi chu nghia
djgkdbsk
dfhjđhd
con co be begkklg
dhmkfhd
dfkbdfnlkbndflbd

1753
app/store/logs/test.log Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,92 +1,130 @@
[{"PID":"","VID":"","SN":"FDO1829Q1VF","line":[6935,6982,6985],"fileName":"20230822-HELEN1-Session.US-3-5-127.0.0.1.log","warehouse":"US"}
,{"PID":"PWR-C2-640WAC","VID":"V01","SN":"LIT18390RKX","line":[6988],"fileName":"20230822-HELEN1-Session.US-3-5-127.0.0.1.log","warehouse":"US"}
,{"PID":"N5K-C5596UP","VID":"V01","SN":"FOX1633H4B5","line":[1807,1852,8537,8704,10259,10660,10917,11964],"fileName":"20230822-HELEN1-Session.US-4-6-127.0.0.1.log","warehouse":"US"}
,{"PID":"N5K-C5596UP","VID":"V01","SN":"FOC16427G2V","line":[1810,1855,8540,8707,10262,10663,10920,11967],"fileName":"20230822-HELEN1-Session.US-4-6-127.0.0.1.log","warehouse":"US"}
,{"PID":"N55-M16UP","VID":"V01","SN":"FOC16430FAZ","line":[1813,1858,8543,8710,10265,10666,10923,11970],"fileName":"20230822-HELEN1-Session.US-4-6-127.0.0.1.log","warehouse":"US"}
,{"PID":"N55-M16UP","VID":"V01","SN":"FOC16414PLF","line":[1816,1861,8546,8713,10268,10669,10926,11973],"fileName":"20230822-HELEN1-Session.US-4-6-127.0.0.1.log","warehouse":"US"}
,{"PID":"N55-M16UP","VID":"V01","SN":"FOC164411EC","line":[1819,1864,8549,8716,10271,10672,10929,11976],"fileName":"20230822-HELEN1-Session.US-4-6-127.0.0.1.log","warehouse":"US"}
,{"PID":"NXA-PAC-1100W","VID":"V01","SN":"PST2041H0DP","line":[1845,1879,8697,8731,10287,10687,10944,11991],"fileName":"20230822-HELEN1-Session.US-4-6-127.0.0.1.log","warehouse":"US"}
,{"PID":"NXA-PAC-1100W","VID":"V01","SN":"PST2041H08D","line":[1848,1882,8700,8734,10290,10690,10947,11994],"fileName":"20230822-HELEN1-Session.US-4-6-127.0.0.1.log","warehouse":"US"}
,{"PID":"AIR-AP3802E-B-K9","VID":"V03","SN":"FJC2147M0VB","line":[853,926],"fileName":"20230822-HELEN1-Session.US-5-7-127.0.0.1.log","warehouse":"US"}
,{"PID":"","VID":"","SN":"FOC213946PL","line":[943,2000,2377],"fileName":"20230822-HELEN1-Session.US-5-7-127.0.0.1.log","warehouse":"US"}
,{"PID":"AIR-AP3802E-A-K9","VID":"V05","SN":"FJC2319M09A","line":[1907,1983,2287,2360,4251],"fileName":"20230822-HELEN1-Session.US-5-7-127.0.0.1.log","warehouse":"US"}
,{"PID":"","VID":"","SN":"","line":[5447],"fileName":"20230822-HELEN1-Session.US-7-9-127.0.0.1.log","warehouse":"US"}
,{"PID":"AIR-AP3802E-B-K9","VID":"V04","SN":"FJC2229M5VU","line":[1391,1465],"fileName":"20230822-HELEN1-Session.US-8-10-127.0.0.1.log","warehouse":"US"}
,{"PID":"","VID":"","SN":"FOC22253W2J","line":[1482,3577],"fileName":"20230822-HELEN1-Session.US-8-10-127.0.0.1.log","warehouse":"US"}
,{"PID":"AIR-AP3802E-A-K9","VID":"V05","SN":"FJC2319M09D","line":[3439,3562,3955],"fileName":"20230822-HELEN1-Session.US-8-10-127.0.0.1.log","warehouse":"US"}
,{"PID":"AIR-AP3802E-A-K9","VID":"V05","SN":"FJC2408M2FD","line":[761,845,2071,2833,3413,5093],"fileName":"20230822-HELEN1-Session.US2-14-6-127.0.0.1.log","warehouse":"US"}
,{"PID":"","VID":"","SN":"FOC23060XBS","line":[860],"fileName":"20230822-HELEN1-Session.US2-14-6-127.0.0.1.log","warehouse":"US"}
,{"PID":"AIR-AP3802E-B-K9","VID":"V04","SN":"FJC2229M5WB","line":[17,105,2238,2520,2595,3455,3536],"fileName":"20230822-HELEN1-Session.US2-15-7-127.0.0.1.log","warehouse":"US"}
,{"PID":"","VID":"","SN":"FOC22254TMQ","line":[122,2612,3553,4575],"fileName":"20230822-HELEN1-Session.US2-15-7-127.0.0.1.log","warehouse":"US"}
,{"PID":"AIR-AP3802E-A-K9","VID":"V05","SN":"FJC2319M09F","line":[4485,4558,4857],"fileName":"20230822-HELEN1-Session.US2-15-7-127.0.0.1.log","warehouse":"US"}
,{"PID":"AIR-AP3802E-B-K9","VID":"V03","SN":"FJC2147M0S3","line":[5635,5710,6106],"fileName":"20230822-HELEN1-Session.US2-15-7-127.0.0.1.log","warehouse":"US"}
,{"PID":"","VID":"","SN":"FOC214307RB","line":[5727,7023],"fileName":"20230822-HELEN1-Session.US2-15-7-127.0.0.1.log","warehouse":"US"}
,{"PID":"AIR-AP3802E-A-K9","VID":"V05","SN":"FJC2319M09L","line":[6933,7006,8390,8403,8430,8498],"fileName":"20230822-HELEN1-Session.US2-15-7-127.0.0.1.log","warehouse":"US"}
,{"PID":"AIR-AP3802E-A-K9","VID":"V05","SN":"FJC2408M54Y","line":[18,90,320,338],"fileName":"20230822-HELEN1-Session.US2-16-8-127.0.0.1.log","warehouse":"US"}
,{"PID":"","VID":"","SN":"FOC21394FKU","line":[105],"fileName":"20230822-HELEN1-Session.US2-16-8-127.0.0.1.log","warehouse":"US"}
,{"PID":"AIR-AP3802E-A-K9","VID":"V05","SN":"FJC2408M2FF","line":[850,923,1134,1317,1415,2604,2617,2639,2705],"fileName":"20230822-HELEN1-Session.US2-16-8-127.0.0.1.log","warehouse":"US"}
,{"PID":"","VID":"","SN":"FOC21394GDG","line":[940],"fileName":"20230822-HELEN1-Session.US2-16-8-127.0.0.1.log","warehouse":"US"}
,{"PID":"WS-C3750X-24P-S","VID":"V07","SN":"FDO1933F2F9","line":[135,179,847],"fileName":"20230822-HELEN1-Session.US2-18-10-127.0.0.1.log","warehouse":"US"}
,{"PID":"C3KX-PWR-715WAC","VID":"V01","SN":"LIT1512072R","line":[138],"fileName":"20230822-HELEN1-Session.US2-18-10-127.0.0.1.log","warehouse":"US"}
,{"PID":"C3KX-NM-1G","VID":"V01","SN":"FDO19371ASX","line":[141],"fileName":"20230822-HELEN1-Session.US2-18-10-127.0.0.1.log","warehouse":"US"}
,{"PID":"WS-C3650-24PS","VID":"V01","SN":"FDO1829Q1VF","line":[65,68,666,800,2213,3126,3350,3685,4124,4309,4469,4595,8026,8346,8401,8404,8737],"fileName":"20230822-KENPC-Session.US-3-5-192.168.5.7.log","warehouse":"US"}
,{"PID":"PWR-C2-640WAC","VID":"V01","SN":"LIT18390RKX","line":[71,8407],"fileName":"20230822-KENPC-Session.US-3-5-192.168.5.7.log","warehouse":"US"}
,{"PID":"PID","VID":"","SN":"","line":[3247],"fileName":"20230822-KENPC-Session.US-3-5-192.168.5.7.log","warehouse":"US"}
,{"PID":"WS-C3650-24PS SN","VID":"","SN":"","line":[3249],"fileName":"20230822-KENPC-Session.US-3-5-192.168.5.7.log","warehouse":"US"}
,{"PID":"CISCO1921/K9","VID":"V05","SN":"FGL18192117","line":[77,285,568,579,597],"fileName":"20230822-KENPC-Session.US-1921TS-111-192.168.5.7.log","warehouse":"US"}
,{"PID":"HWIC-8A","VID":"V02","SN":"FOC160247XB","line":[80,288,571,582],"fileName":"20230822-KENPC-Session.US-1921TS-111-192.168.5.7.log","warehouse":"US"}
,{"PID":"HWIC-8A","VID":"V02","SN":"FOC16035XH6","line":[600],"fileName":"20230822-KENPC-Session.US-1921TS-111-192.168.5.7.log","warehouse":"US"}
,{"PID":"WS-C3750X-24P-S","VID":"V07","SN":"FDO1933F2F9","line":[42,417],"fileName":"20230822-KENPC-Session.US2-18-10-192.168.5.7.log","warehouse":"US"}
,{"PID":"C3KX-PWR-715WAC","VID":"V01","SN":"LIT1512072R","line":[45],"fileName":"20230822-KENPC-Session.US2-18-10-192.168.5.7.log","warehouse":"US"}
,{"PID":"C3KX-NM-1G","VID":"V01","SN":"FDO19371ASX","line":[48],"fileName":"20230822-KENPC-Session.US2-18-10-192.168.5.7.log","warehouse":"US"}
,{"PID":"CISCO1921/K9","VID":"V05","SN":"FGL182922Q1","line":[58],"fileName":"20230822-KENPC-Session.US2_1921TS_222-192.168.5.7.log","warehouse":"US"}
,{"PID":"HWIC-8A","VID":"V02","SN":"FOC16095E5X","line":[61],"fileName":"20230822-KENPC-Session.US2_1921TS_222-192.168.5.7.log","warehouse":"US"}
,{"PID":"N5K-C5596UP","VID":"V01","SN":"FOX1633H4B5","line":[71,412],"fileName":"20230822-SAMBA-US4.log","warehouse":"US"}
,{"PID":"N5K-C5596UP","VID":"V01","SN":"FOC16427G2V","line":[74,415],"fileName":"20230822-SAMBA-US4.log","warehouse":"US"}
,{"PID":"N55-M16UP","VID":"V01","SN":"FOC16430FAZ","line":[77,418],"fileName":"20230822-SAMBA-US4.log","warehouse":"US"}
,{"PID":"N55-M16UP","VID":"V01","SN":"FOC16414PLF","line":[80,421],"fileName":"20230822-SAMBA-US4.log","warehouse":"US"}
,{"PID":"N55-M16UP","VID":"V01","SN":"FOC164411EC","line":[83,424],"fileName":"20230822-SAMBA-US4.log","warehouse":"US"}
,{"PID":"NXA-PAC-1100W","VID":"V01","SN":"PST2041H0DP","line":[98,439],"fileName":"20230822-SAMBA-US4.log","warehouse":"US"}
,{"PID":"NXA-PAC-1100W","VID":"V01","SN":"PST2041H08D","line":[101,442],"fileName":"20230822-SAMBA-US4.log","warehouse":"US"}
,{"PID":"WS-C3750X-24P-S","VID":"V07","SN":"FDO1933F2F9","line":[53,97],"fileName":"20230822-SAMBA-US18.log","warehouse":"US"}
,{"PID":"C3KX-PWR-715WAC","VID":"V01","SN":"LIT1512072R","line":[56],"fileName":"20230822-SAMBA-US18.log","warehouse":"US"}
,{"PID":"C3KX-NM-1G","VID":"V01","SN":"FDO19371ASX","line":[59],"fileName":"20230822-SAMBA-US18.log","warehouse":"US"}
,{"PID":"","VID":"","SN":"FGL1844X9JN","line":[40],"fileName":"20230822-TEST01-Session.Port11-11-172.16.20.1.log","warehouse":"AU"}
,{"PID":"","VID":"","SN":"FOC184374WF","line":[50,1125],"fileName":"20230822-TEST01-Session.Port11-11-172.16.20.1.log","warehouse":"AU"}
,{"PID":"","VID":"","SN":"FOC18487HHX","line":[22,1299],"fileName":"20230822-TEST01-Session.Port13-13-172.16.20.1.log","warehouse":"AU"}
,{"PID":"AIR-AP3802E-Z-K9","VID":"V03","SN":"FGL2126ABZ0","line":[1756],"fileName":"20230822-TEST01-Session.Port13-13-172.16.20.1.log","warehouse":"AU"}
,{"PID":"AIR-AP3802E-A-K9","VID":"V05","SN":"FJC2319M08G","line":[1990,2051,2140,2542,2630,2768],"fileName":"20230822-TEST01-Session.Port13-13-172.16.20.1.log","warehouse":"AU"}
,{"PID":"","VID":"","SN":"FOC21245KL3","line":[2066,2155,2647],"fileName":"20230822-TEST01-Session.Port13-13-172.16.20.1.log","warehouse":"AU"}
,{"PID":"","VID":"","SN":"FGL1918X1RE","line":[850,3893,4423,4594],"fileName":"20230822-TEST01-Session.Port14-14-172.16.20.1.log","warehouse":"AU"}
,{"PID":"","VID":"","SN":"FOC19123AMA","line":[861,3904,4434,4605],"fileName":"20230822-TEST01-Session.Port14-14-172.16.20.1.log","warehouse":"AU"}
,{"PID":"AIR-AP3802E-Z-K9","VID":"V03","SN":"FGL2114ABMK","line":[1314],"fileName":"20230822-TEST01-Session.Port14-14-172.16.20.1.log","warehouse":"AU"}
,{"PID":"AIR-AP3802E-A-K9","VID":"V05","SN":"FJC2319M08G","line":[2242,2302,2489],"fileName":"20230822-TEST01-Session.Port14-14-172.16.20.1.log","warehouse":"AU"}
,{"PID":"","VID":"","SN":"FOC21245KL3","line":[2317,2504],"fileName":"20230822-TEST01-Session.Port14-14-172.16.20.1.log","warehouse":"AU"}
,{"PID":"AIR-AP3802E-A-K9","VID":"V05","SN":"FJC2319M086","line":[2892,2979,3157,3240,3780],"fileName":"20230822-TEST01-Session.Port14-14-172.16.20.1.log","warehouse":"AU"}
,{"PID":"","VID":"","SN":"FOC211163S2","line":[2994,3255],"fileName":"20230822-TEST01-Session.Port14-14-172.16.20.1.log","warehouse":"AU"}
,{"PID":"","VID":"","SN":"FGL183910G1","line":[108,173,262,387,450],"fileName":"20230822-TEST01-Session.Port16-16-172.16.20.1.log","warehouse":"AU"}
,{"PID":"PWR-4450-AC","VID":"V02","SN":"DCA2019X0LZ","line":[176,265,390,453,546,603],"fileName":"20230822-TEST01-Session.Port16-16-172.16.20.1.log","warehouse":"AU"}
,{"PID":"SM-X-4X1G-1X10G","VID":"V02","SN":"FOC1949000X","line":[280,405,468,773],"fileName":"20230822-TEST01-Session.Port16-16-172.16.20.1.log","warehouse":"AU"}
,{"PID":"SM-X-4X1G-1X10G","VID":"V02","SN":"FOC21237HK2","line":[411,474,807],"fileName":"20230822-TEST01-Session.Port16-16-172.16.20.1.log","warehouse":"AU"}
,{"PID":"ISR4451-X/K9","VID":"V03","SN":"FOC18348MEV","line":[414,480,524,581,624,645,666,687,708],"fileName":"20230822-TEST01-Session.Port16-16-172.16.20.1.log","warehouse":"AU"}
,{"PID":"QFBR-5766LP","VID":"","SN":"AGS09015BKF","line":[477],"fileName":"20230822-TEST01-Session.Port16-16-172.16.20.1.log","warehouse":"AU"}
,{"PID":"","VID":"","SN":"","line":[732],"fileName":"20230822-TEST01-Session.Port16-16-172.16.20.1.log","warehouse":"AU"}
,{"PID":"","VID":"","SN":"FGL1717S590","line":[1033,1350],"fileName":"20230822-TEST01-Session.Port16-16-172.16.20.1.log","warehouse":"AU"}
,{"PID":"","VID":"","SN":"FOC17151MGW","line":[1043,2006],"fileName":"20230822-TEST01-Session.Port16-16-172.16.20.1.log","warehouse":"AU"}
,{"PID":"AIR-AP3802E-Z-K9","VID":"V03","SN":"FGL2114ABM4","line":[2453,2958,2982,2989,3073,3215],"fileName":"20230822-TEST01-Session.Port16-16-172.16.20.1.log","warehouse":"AU"}
,{"PID":"","VID":"","SN":"FOC211163S2","line":[3088,3230,4102,4230],"fileName":"20230822-TEST01-Session.Port16-16-172.16.20.1.log","warehouse":"AU"}
,{"PID":"AIR-AP3802E-A-K9","VID":"V05","SN":"FJC2319M086","line":[3972,4087,4143,4215],"fileName":"20230822-TEST01-Session.Port16-16-172.16.20.1.log","warehouse":"AU"}
,{"PID":"","VID":"","SN":"FOC18487HHX","line":[4323,4531,4688,4735,4878,5082,5181,5381,5612,5706,5918,6014,6159],"fileName":"20230822-TEST01-Session.Port16-16-172.16.20.1.log","warehouse":"AU"}
,{"PID":"","VID":"","SN":"FGL1852X5A1","line":[4520,4677,5071,5170,5601,5694,5907,6003],"fileName":"20230822-TEST01-Session.Port16-16-172.16.20.1.log","warehouse":"AU"}
,{"PID":"AIR-AP3802E-A-K9","VID":"V05","SN":"FJC2408M2FD","line":[17,105,689,726,817],"fileName":"20230822-TEST01-Session.US2-14-6-192.168.5.7.log","warehouse":"US"}
,{"PID":"","VID":"","SN":"FOC23060XBS","line":[120,832],"fileName":"20230822-TEST01-Session.US2-14-6-192.168.5.7.log","warehouse":"US"}
,{"PID":"","VID":"","SN":"FJC2319M09L","line":[107],"fileName":"20230822-TEST01-Session.US2-15-7-192.168.5.7.log","warehouse":"US"}
,{"PID":"","VID":"","SN":"FOC214307RB","line":[124],"fileName":"20230822-TEST01-Session.US2-15-7-192.168.5.7.log","warehouse":"US"}
,{"PID":"AIR-AP3802E-A-K9","VID":"V05","SN":"FJC2408M2FF","line":[23,142,1178],"fileName":"20230822-TEST01-Session.US2-16-8-192.168.5.7.log","warehouse":"US"}
,{"PID":"","VID":"","SN":"FOC21394GDG","line":[159,1195],"fileName":"20230822-TEST01-Session.US2-16-8-192.168.5.7.log","warehouse":"US"}
,{"PID":"","VID":"","SN":"FGL174211HP","line":[62,207,291,341],"fileName":"20230822-TEST02-Session.Port7-9-172.16.20.7.log","warehouse":"AU"}
,{"PID":"C3900-SPE100/K9","VID":"V06","SN":"FOC17385UN9","line":[210],"fileName":"20230822-TEST02-Session.Port7-9-172.16.20.7.log","warehouse":"AU"}
,{"PID":"VIC3-4FXS/DID","VID":"V03","SN":"FOC17361N9U","line":[213],"fileName":"20230822-TEST02-Session.Port7-9-172.16.20.7.log","warehouse":"AU"}
,{"PID":"PWR-3900-POE","VID":"V02","SN":"SNI1507C75Q","line":[216,347],"fileName":"20230822-TEST02-Session.Port7-9-172.16.20.7.log","warehouse":"AU"}
,{"PID":"C3900-SPE150/K9","VID":"V06","SN":"FOC19182VLK","line":[344],"fileName":"20230822-TEST02-Session.Port7-9-172.16.20.7.log","warehouse":"AU"}
,{"PID":"","VID":"","SN":"FHK143470K5","line":[88],"fileName":"20230822-TEST02-Session.Port8-10-172.16.20.7.log","warehouse":"AU"}]
[{"PID":"C9300-48UXM","VID":"V01","SN":"FCW2243L0R5","line":[62,75,238,241,306,325,393,396],"fileName":"20190902-TEST01-Session.NT01-34-192.168.5.20.log","warehouse":"AU"}
,{"PID":"","VID":"","SN":"FOC22313V30","line":[71,321],"fileName":"20190902-TEST01-Session.NT01-34-192.168.5.20.log","warehouse":"AU"}
,{"PID":"PWR-C1-1100WAC","VID":"V02","SN":"LIT22432VHD","line":[244,399],"fileName":"20190902-TEST01-Session.NT01-34-192.168.5.20.log","warehouse":"AU"}
,{"PID":"C9300-NM-8X","VID":"V02","SN":"FOC224255UN","line":[247,402],"fileName":"20190902-TEST01-Session.NT01-34-192.168.5.20.log","warehouse":"AU"}
,{"PID":"WS-C3850-12X48U-E","VID":"V02","SN":"FCW2039F0ZW","line":[1238,1241,1301,1318],"fileName":"20190902-TEST01-Session.NT01-34-192.168.5.20.log","warehouse":"AU"}
,{"PID":"PWR-C1-1100WAC","VID":"V01","SN":"LIT17290BGA","line":[1244],"fileName":"20190902-TEST01-Session.NT01-34-192.168.5.20.log","warehouse":"AU"}
,{"PID":"","VID":"","SN":"FOC20391F4B","line":[1314],"fileName":"20190902-TEST01-Session.NT01-34-192.168.5.20.log","warehouse":"AU"}
,{"PID":"ISR4351/K9","VID":"V04","SN":"FLM2025W0TK","line":[104,230,334],"fileName":"20190902-TEST01-Session.NT03-36-192.168.5.20.log","warehouse":"AU"}
,{"PID":"PWR-4450-AC","VID":"V02","SN":"DCA1949X1XS","line":[233],"fileName":"20190902-TEST01-Session.NT03-36-192.168.5.20.log","warehouse":"AU"}
,{"PID":"ISR4351/K9","VID":"V04","SN":"FDO20210Q20","line":[251],"fileName":"20190902-TEST01-Session.NT03-36-192.168.5.20.log","warehouse":"AU"}
,{"PID":"ASR1002","VID":"V05","SN":"FOX1548GX7J","line":[399,612,1005],"fileName":"20190902-TEST01-Session.NT03-36-192.168.5.20.log","warehouse":"AU"}
,{"PID":"ASR1000-ESP10","VID":"V06","SN":"JAE1644059D","line":[615,764,1008],"fileName":"20190902-TEST01-Session.NT03-36-192.168.5.20.log","warehouse":"AU"}
,{"PID":"ASR1002-PWR-AC","VID":"V02","SN":"ART1543U066","line":[618,740,1011],"fileName":"20190902-TEST01-Session.NT03-36-192.168.5.20.log","warehouse":"AU"}
,{"PID":"ASR1002-PWR-AC","VID":"V02","SN":"ART1543U06L","line":[621,748,1014],"fileName":"20190902-TEST01-Session.NT03-36-192.168.5.20.log","warehouse":"AU"}
,{"PID":"ASR1002-RP1","VID":"V05","SN":"JAE15520A7X","line":[630,756,1026],"fileName":"20190902-TEST01-Session.NT03-36-192.168.5.20.log","warehouse":"AU"}
,{"PID":"","VID":"","SN":"NWG1548059Z","line":[731],"fileName":"20190902-TEST01-Session.NT03-36-192.168.5.20.log","warehouse":"AU"}
,{"PID":"","VID":"","SN":"JAE155204FX","line":[772],"fileName":"20190902-TEST01-Session.NT03-36-192.168.5.20.log","warehouse":"AU"}
,{"PID":"","VID":"","SN":"","line":[780],"fileName":"20190902-TEST01-Session.NT03-36-192.168.5.20.log","warehouse":"AU"}
,{"PID":"ABCU-5710RZ-CS4","VID":"B2","SN":"AGM1646201T","line":[1023],"fileName":"20190902-TEST01-Session.NT03-36-192.168.5.20.log","warehouse":"AU"}
,{"PID":"","VID":"","SN":"FGL1844X966","line":[60,72,819,831],"fileName":"20190902-TEST01-Session.NT05-38-192.168.5.20.log","warehouse":"AU"}
,{"PID":"","VID":"","SN":"FOC184134QS","line":[70,829],"fileName":"20190902-TEST01-Session.NT05-38-192.168.5.20.log","warehouse":"AU"}
,{"PID":"WS-C3750G-24PS-S","VID":"V08","SN":"FOC1449Y02T","line":[1103,1196,1230,1672,2263],"fileName":"20190902-TEST01-Session.NT05-38-192.168.5.20.log","warehouse":"AU"}
,{"PID":"ASR1002","VID":"V01","SN":"FOX1249GTAA","line":[2463,2491,2719,2909,3090,3544,3740],"fileName":"20190902-TEST01-Session.NT05-38-192.168.5.20.log","warehouse":"AU"}
,{"PID":"ASR1000-ESP10","VID":"V07","SN":"JAE191602XM","line":[2466,2494,2722,2912,3064,3093,3547,3743],"fileName":"20190902-TEST01-Session.NT05-38-192.168.5.20.log","warehouse":"AU"}
,{"PID":"ASR1002-PWR-AC","VID":"V01","SN":"ART1250U03Y","line":[2469,2497,2725,2915,3096,3550,3746],"fileName":"20190902-TEST01-Session.NT05-38-192.168.5.20.log","warehouse":"AU"}
,{"PID":"ASR1002-PWR-AC","VID":"V01","SN":"ART1250U00P","line":[2472,2500,2728,2918,3099,3553,3749],"fileName":"20190902-TEST01-Session.NT05-38-192.168.5.20.log","warehouse":"AU"}
,{"PID":"ASR1002-SIP10","VID":"V02","SN":"JAE12503051","line":[2475,2503,2731,2921,3102,3556,3752],"fileName":"20190902-TEST01-Session.NT05-38-192.168.5.20.log","warehouse":"AU"}
,{"PID":"ASR1002-RP1","VID":"V02","SN":"JAE125031X0","line":[2481,2509,2737,2927,3108,3562,3758],"fileName":"20190902-TEST01-Session.NT05-38-192.168.5.20.log","warehouse":"AU"}
,{"PID":"WS-C3850-48P","VID":"M0","SN":"FCW1827C13R","line":[5369,5383,5403,5406,5592,5595,5656,5673,5994,5997,6061,6064,6122,6139],"fileName":"20190902-TEST01-Session.NT05-38-192.168.5.20.log","warehouse":"AU"}
,{"PID":"","VID":"","SN":"FOC182735HY","line":[5379,5669,6135],"fileName":"20190902-TEST01-Session.NT05-38-192.168.5.20.log","warehouse":"AU"}
,{"PID":"PWR-C1-715WAC","VID":"V01","SN":"LIT182508FA","line":[5409,5598,6000,6067],"fileName":"20190902-TEST01-Session.NT05-38-192.168.5.20.log","warehouse":"AU"}
,{"PID":"C3850-NM-2-10G","VID":"V01","SN":"FOC18273EUA","line":[5412,5601,6003],"fileName":"20190902-TEST01-Session.NT05-38-192.168.5.20.log","warehouse":"AU"}
,{"PID":"WS-C3750G-24T-S","VID":"V10","SN":"FDO1448V1GJ","line":[5823,5905,5939],"fileName":"20190902-TEST01-Session.NT05-38-192.168.5.20.log","warehouse":"AU"}
,{"PID":"","VID":"","SN":"FDO1510P0SG","line":[6302],"fileName":"20190902-TEST01-Session.NT05-38-192.168.5.20.log","warehouse":"AU"}
,{"PID":"N7K-C7018","VID":"V01","SN":"TBM18030890","line":[4825],"fileName":"20190902-TEST01-Session.NT14-55-192.168.5.20.log","warehouse":"AU"}
,{"PID":"N7K-SUP2E","VID":"V03","SN":"JAF1751ANDS","line":[4834],"fileName":"20190902-TEST01-Session.NT14-55-192.168.5.20.log","warehouse":"AU"}
,{"PID":"N7K-C7018-FAB-2","VID":"V02","SN":"JAE19430DFR","line":[4837],"fileName":"20190902-TEST01-Session.NT14-55-192.168.5.20.log","warehouse":"AU"}
,{"PID":"N7K-C7018-FAB-2","VID":"V02","SN":"JAE19240BEL","line":[4840],"fileName":"20190902-TEST01-Session.NT14-55-192.168.5.20.log","warehouse":"AU"}
,{"PID":"N7K-C7018-FAB-2","VID":"V02","SN":"JAE19310A0B","line":[4843],"fileName":"20190902-TEST01-Session.NT14-55-192.168.5.20.log","warehouse":"AU"}
,{"PID":"N7K-C7018-FAB-2","VID":"V02","SN":"JAE19430DFE","line":[4846],"fileName":"20190902-TEST01-Session.NT14-55-192.168.5.20.log","warehouse":"AU"}
,{"PID":"N7K-C7018-FAB-2","VID":"V02","SN":"JAE191001W5","line":[4849],"fileName":"20190902-TEST01-Session.NT14-55-192.168.5.20.log","warehouse":"AU"}
,{"PID":"N7K-AC-6.0KW","VID":"V05","SN":"ART1936F9NY","line":[4852],"fileName":"20190902-TEST01-Session.NT14-55-192.168.5.20.log","warehouse":"AU"}
,{"PID":"N7K-AC-6.0KW","VID":"V05","SN":"ART1936F9P4","line":[4855],"fileName":"20190902-TEST01-Session.NT14-55-192.168.5.20.log","warehouse":"AU"}
,{"PID":"N7K-AC-6.0KW","VID":"V05","SN":"ART1936F9P6","line":[4858],"fileName":"20190902-TEST01-Session.NT14-55-192.168.5.20.log","warehouse":"AU"}
,{"PID":"N7K-AC-6.0KW","VID":"V05","SN":"ART1932F1TU","line":[4861],"fileName":"20190902-TEST01-Session.NT14-55-192.168.5.20.log","warehouse":"AU"}
,{"PID":"N7K-C7018-FAN","VID":"V02","SN":"FOX1928XA2C","line":[4864],"fileName":"20190902-TEST01-Session.NT14-55-192.168.5.20.log","warehouse":"AU"}
,{"PID":"N7K-C7018-FAN","VID":"V02","SN":"FOX1928XA2M","line":[4867],"fileName":"20190902-TEST01-Session.NT14-55-192.168.5.20.log","warehouse":"AU"}
,{"PID":"CISCO2811","VID":"V06","SN":"FHK1328F0RW","line":[81,148,181],"fileName":"20190902-TEST02-Session.NT08-41-192.168.5.20.log","warehouse":"AU"}
,{"PID":"WS-C3560G-24TS-S","VID":"V03","SN":"FOC1415Y1JX","line":[244,277,515,548],"fileName":"20190902-TEST02-Session.NT08-41-192.168.5.20.log","warehouse":"AU"}
,{"PID":"WS-C3560G-24TS-S","VID":"V03","SN":"FOC1413Y4J9","line":[604,638],"fileName":"20190902-TEST02-Session.NT08-41-192.168.5.20.log","warehouse":"AU"}
,{"PID":"WS-C3560G-24TS-S","VID":"V03","SN":"FOC1415Y1FG","line":[694,729,931,965],"fileName":"20190902-TEST02-Session.NT08-41-192.168.5.20.log","warehouse":"AU"}
,{"PID":"ME-3400EG-2CS-A","VID":"V03","SN":"FOC1509V19T","line":[1370,1753,1786],"fileName":"20190902-TEST02-Session.NT08-41-192.168.5.20.log","warehouse":"AU"}
,{"PID":"ME-3400EG-2CS-A","VID":"V03","SN":"FOC1433V2G3","line":[1894,1927],"fileName":"20190902-TEST02-Session.NT08-41-192.168.5.20.log","warehouse":"AU"}
,{"PID":"WS-C3560G-24TS-S","VID":"V03","SN":"FOC1415Y1KQ","line":[22,39,274,291],"fileName":"20190902-TEST02-Session.NT11-52-192.168.5.20.log","warehouse":"AU"}
,{"PID":"WS-C3560G-24TS-S","VID":"V03","SN":"FOC1415Y18W","line":[451,512,529],"fileName":"20190902-TEST02-Session.NT11-52-192.168.5.20.log","warehouse":"AU"}
,{"PID":"WS-C3560G-24TS-S","VID":"V03","SN":"FOC1415Y1MU","line":[587,621,857,891],"fileName":"20190902-TEST02-Session.NT11-52-192.168.5.20.log","warehouse":"AU"}
,{"PID":"1760","VID":"0x500","SN":"FOC08300U2Q","line":[968],"fileName":"20190902-TEST02-Session.NT11-52-192.168.5.20.log","warehouse":"AU"}
,{"PID":"C1760 Mainboard","VID":"0x500","SN":"FOC08300U2Q","line":[974],"fileName":"20190902-TEST02-Session.NT11-52-192.168.5.20.log","warehouse":"AU"}
,{"PID":"Packet Voice DSP Module with 1 C549 DSPs","VID":"3.2","SN":"VIC08303ZRQ","line":[992,1073,1111],"fileName":"20190902-TEST02-Session.NT11-52-192.168.5.20.log","warehouse":"AU"}
,{"PID":"1760","VID":"0x500","SN":"FOC08300U2Q","line":[1049],"fileName":"20190902-TEST02-Session.NT11-52-192.168.5.20.log","warehouse":"AU"}
,{"PID":"C1760 Mainboard","VID":"0x500","SN":"FOC08300U2Q","line":[1055],"fileName":"20190902-TEST02-Session.NT11-52-192.168.5.20.log","warehouse":"AU"}
,{"PID":"1760","VID":"0x500","SN":"FOC08300U2Q","line":[1087],"fileName":"20190902-TEST02-Session.NT11-52-192.168.5.20.log","warehouse":"AU"}
,{"PID":"C1760 Mainboard","VID":"0x500","SN":"FOC08300U2Q","line":[1093],"fileName":"20190902-TEST02-Session.NT11-52-192.168.5.20.log","warehouse":"AU"}
,{"PID":"CISCO2811","VID":"V04","SN":"FHK1104F144","line":[1228,1612,1659,1698,1782],"fileName":"20190902-TEST02-Session.NT11-52-192.168.5.20.log","warehouse":"AU"}
,{"PID":"VWIC2-1MFT-T1/E1","VID":"V01","SN":"FOC10520RAZ","line":[1662,1832],"fileName":"20190902-TEST02-Session.NT11-52-192.168.5.20.log","warehouse":"AU"}
,{"PID":"PVDM2-16","VID":"V01","SN":"FOC105110TS","line":[1665,1807],"fileName":"20190902-TEST02-Session.NT11-52-192.168.5.20.log","warehouse":"AU"}
,{"PID":"","VID":"","SN":"FOC11026BFA","line":[1771],"fileName":"20190902-TEST02-Session.NT11-52-192.168.5.20.log","warehouse":"AU"}
,{"PID":"ME-3400EG-2CS-A","VID":"V05","SN":"FCW2021H0L0","line":[21,56,98,131],"fileName":"20190902-TEST02-Session.NT12-53-192.168.5.20.log","warehouse":"AU"}
,{"PID":"CISCO887VA-K9","VID":"V02","SN":"FGL182022Z1","line":[228,263,340],"fileName":"20190902-TEST02-Session.NT12-53-192.168.5.20.log","warehouse":"AU"}
,{"PID":"","VID":"","SN":"FO61819072S","line":[329],"fileName":"20190902-TEST02-Session.NT12-53-192.168.5.20.log","warehouse":"AU"}
,{"PID":"CISCO887VA-SEC-K9","VID":"V02","SN":"FGL1635265Y","line":[394,429],"fileName":"20190902-TEST02-Session.NT12-53-192.168.5.20.log","warehouse":"AU"}
,{"PID":"WS-C3560G-24TS-S","VID":"V03","SN":"FOC1413Y4YY","line":[504,537,771,804],"fileName":"20190902-TEST02-Session.NT12-53-192.168.5.20.log","warehouse":"AU"}
,{"PID":"WS-C3560G-24TS-S","VID":"V03","SN":"FOC1415Y14B","line":[859,892],"fileName":"20190902-TEST02-Session.NT12-53-192.168.5.20.log","warehouse":"AU"}
,{"PID":"WS-C3560G-24TS-S","VID":"V03","SN":"FOC1415Y182","line":[940,958,1208,1225],"fileName":"20190902-TEST02-Session.NT12-53-192.168.5.20.log","warehouse":"AU"}
,{"PID":"WS-C2950T-48-SI","VID":"N/A","SN":"FHK0817Y0XQ","line":[1845,1895,1913],"fileName":"20190902-TEST02-Session.NT12-53-192.168.5.20.log","warehouse":"AU"}
,{"PID":"CISCO2921/K9","VID":"V03","SN":"FGL150415EL","line":[2095,2387,2425],"fileName":"20190902-TEST02-Session.NT12-53-192.168.5.20.log","warehouse":"AU"}
,{"PID":"CISCO2921/K9","VID":"V03","SN":"FGL151112C1","line":[2259,2722,2760,2814],"fileName":"20190902-TEST02-Session.NT12-53-192.168.5.20.log","warehouse":"AU"}
,{"PID":"PWR-2921-51-AC","VID":"V02","SN":"QCS1502H0SA","line":[2390],"fileName":"20190902-TEST02-Session.NT12-53-192.168.5.20.log","warehouse":"AU"}
,{"PID":"CISCO2921/K9","VID":"V03","SN":"FGL150415EW","line":[2470,2511],"fileName":"20190902-TEST02-Session.NT12-53-192.168.5.20.log","warehouse":"AU"}
,{"PID":"HWIC-2T","VID":"V04","SN":"FOC16155NTH","line":[2473],"fileName":"20190902-TEST02-Session.NT12-53-192.168.5.20.log","warehouse":"AU"}
,{"PID":"PWR-2921-51-AC","VID":"V02","SN":"QCS1502H119","line":[2476],"fileName":"20190902-TEST02-Session.NT12-53-192.168.5.20.log","warehouse":"AU"}
,{"PID":"CISCO2921/K9","VID":"V03","SN":"FGL151112BH","line":[2587,2641,2679],"fileName":"20190902-TEST02-Session.NT12-53-192.168.5.20.log","warehouse":"AU"}
,{"PID":"PWR-2921-51-AC","VID":"V02","SN":"QCS1508H0WF","line":[2644],"fileName":"20190902-TEST02-Session.NT12-53-192.168.5.20.log","warehouse":"AU"}
,{"PID":"PWR-2921-51-AC","VID":"V02","SN":"QCS1506H25S","line":[2725,2839],"fileName":"20190902-TEST02-Session.NT12-53-192.168.5.20.log","warehouse":"AU"}
,{"PID":"","VID":"","SN":"FOC150459RF","line":[2803],"fileName":"20190902-TEST02-Session.NT12-53-192.168.5.20.log","warehouse":"AU"}
,{"PID":"","VID":"","SN":"FOC192157U4","line":[2869],"fileName":"20190902-TEST02-Session.NT12-53-192.168.5.20.log","warehouse":"AU"}
,{"PID":"CISCO2921/K9","VID":"V03","SN":"FGL151112BM","line":[3000,3077,3245,3336,3388,3418,3507,3558],"fileName":"20190902-TEST02-Session.NT12-53-192.168.5.20.log","warehouse":"AU"}
,{"PID":"EHWIC-4G-LTE-GB","VID":"V01","SN":"FOC200412V6","line":[3391,3472,3510],"fileName":"20190902-TEST02-Session.NT12-53-192.168.5.20.log","warehouse":"AU"}
,{"PID":"MC7304 4G-GB","VID":"1.0","SN":"352761060749463","line":[3394,3513],"fileName":"20190902-TEST02-Session.NT12-53-192.168.5.20.log","warehouse":"AU"}
,{"PID":"PWR-2921-51-AC","VID":"V02","SN":"QCS1506H2BS","line":[3397,3443,3516],"fileName":"20190902-TEST02-Session.NT12-53-192.168.5.20.log","warehouse":"AU"}
,{"PID":"","VID":"","SN":"FOC15036UYY","line":[3407],"fileName":"20190902-TEST02-Session.NT12-53-192.168.5.20.log","warehouse":"AU"}
,{"PID":"CISCO1941/K9","VID":"V02","SN":"FHK144474KN","line":[3694,4104,4167,4208],"fileName":"20190902-TEST02-Session.NT12-53-192.168.5.20.log","warehouse":"AU"}
,{"PID":"CISCO1941/K9","VID":"V02","SN":"FHK144474KC","line":[3834,3880,3919,4291,4332,4380],"fileName":"20190902-TEST02-Session.NT12-53-192.168.5.20.log","warehouse":"AU"}
,{"PID":"HWIC-4ESW","VID":"V01","SN":"FOC14383KY3","line":[3883,4294],"fileName":"20190902-TEST02-Session.NT12-53-192.168.5.20.log","warehouse":"AU"}
,{"PID":"HWIC-4ESW","VID":"V01","SN":"FOC14383MW5","line":[4170],"fileName":"20190902-TEST02-Session.NT12-53-192.168.5.20.log","warehouse":"AU"}
,{"PID":"WS-C3560G-24TS-S","VID":"V03","SN":"FOC1413Y4J3","line":[23,40,263,280],"fileName":"20190902-TEST02-Session.NT13-54-192.168.5.20.log","warehouse":"AU"}
,{"PID":"WS-C3560G-24TS-S","VID":"V03","SN":"FOC1415Y1L3","line":[338,372],"fileName":"20190902-TEST02-Session.NT13-54-192.168.5.20.log","warehouse":"AU"}
,{"PID":"WS-C3560G-24TS-S","VID":"V05","SN":"FOC1533Y03B","line":[428,447,695,713],"fileName":"20190902-TEST02-Session.NT13-54-192.168.5.20.log","warehouse":"AU"}
,{"PID":"","VID":"","SN":"JAD06360853","line":[1568],"fileName":"20190902-TEST02-Session.NT13-54-192.168.5.20.log","warehouse":"AU"}
,{"PID":"WS-C3750G-12S-S","VID":"V04","SN":"CAT0921Y09R","line":[1812,1870,1903],"fileName":"20190902-TEST02-Session.NT13-54-192.168.5.20.log","warehouse":"AU"}
,{"PID":"","VID":"","SN":"FGL150415EW","line":[2207],"fileName":"20190902-TEST02-Session.NT13-54-192.168.5.20.log","warehouse":"AU"}
,{"PID":"","VID":"","SN":"FGL151112BH","line":[2236],"fileName":"20190902-TEST02-Session.NT13-54-192.168.5.20.log","warehouse":"AU"}
,{"PID":"","VID":"","SN":"FOC15036UYY","line":[2262],"fileName":"20190902-TEST02-Session.NT13-54-192.168.5.20.log","warehouse":"AU"}
,{"PID":"CISCO2921/K9","VID":"V03","SN":"FGL151112BM","line":[2273,2356,2826,2864,2980,3026,3064],"fileName":"20190902-TEST02-Session.NT13-54-192.168.5.20.log","warehouse":"AU"}
,{"PID":"PWR-2921-51-AC","VID":"V02","SN":"QCS1506H2BS","line":[2298,2359,2829,3029],"fileName":"20190902-TEST02-Session.NT13-54-192.168.5.20.log","warehouse":"AU"}
,{"PID":"","VID":"","SN":"FOC200412V6","line":[2328],"fileName":"20190902-TEST02-Session.NT13-54-192.168.5.20.log","warehouse":"AU"}
,{"PID":"CISCO2921/K9","VID":"V03","SN":"FGL150415EL","line":[2566,2602],"fileName":"20190902-TEST02-Session.NT13-54-192.168.5.20.log","warehouse":"AU"}
,{"PID":"PWR-2921-51-AC","VID":"V02","SN":"QCS1502H0SA","line":[2569],"fileName":"20190902-TEST02-Session.NT13-54-192.168.5.20.log","warehouse":"AU"}
,{"PID":"WS-C4510R-E","VID":"V02","SN":"FOX1427H06S","line":[5045,5321,6386,6422,6520],"fileName":"20190902-TEST02-Session.NT13-54-192.168.5.20.log","warehouse":"AU"}
,{"PID":"WS-X4K-CLOCK-E","VID":"V01","SN":"NWG142505DX","line":[6425],"fileName":"20190902-TEST02-Session.NT13-54-192.168.5.20.log","warehouse":"AU"}
,{"PID":"WS-X4590-E","VID":"V01","SN":"NWG142502DG","line":[6428],"fileName":"20190902-TEST02-Session.NT13-54-192.168.5.20.log","warehouse":"AU"}
,{"PID":"WS-X4590-E","VID":"V01","SN":"NWG142502N8","line":[6431],"fileName":"20190902-TEST02-Session.NT13-54-192.168.5.20.log","warehouse":"AU"}
,{"PID":"WS-X4590-E","VID":"V01","SN":"NWG142502MM","line":[6434],"fileName":"20190902-TEST02-Session.NT13-54-192.168.5.20.log","warehouse":"AU"}
,{"PID":"WS-X4590-E","VID":"V01","SN":"NWG142502K8","line":[6437],"fileName":"20190902-TEST02-Session.NT13-54-192.168.5.20.log","warehouse":"AU"}
,{"PID":"WS-X4590-E","VID":"V01","SN":"NWG142502M6","line":[6440],"fileName":"20190902-TEST02-Session.NT13-54-192.168.5.20.log","warehouse":"AU"}
,{"PID":"WS-X4590-E","VID":"V01","SN":"NWG142501EU","line":[6443],"fileName":"20190902-TEST02-Session.NT13-54-192.168.5.20.log","warehouse":"AU"}
,{"PID":"WS-X4590-E","VID":"V01","SN":"NWG142502N7","line":[6446],"fileName":"20190902-TEST02-Session.NT13-54-192.168.5.20.log","warehouse":"AU"}
,{"PID":"WS-X4590-E","VID":"V01","SN":"NWG142501ET","line":[6449],"fileName":"20190902-TEST02-Session.NT13-54-192.168.5.20.log","warehouse":"AU"}
,{"PID":"WS-X4648-RJ45V+E","VID":"V05","SN":"JAE1431042M","line":[6452],"fileName":"20190902-TEST02-Session.NT13-54-192.168.5.20.log","warehouse":"AU"}
,{"PID":"WS-X4248-RJ45V","VID":"V11","SN":"JAE142702G0","line":[6455],"fileName":"20190902-TEST02-Session.NT13-54-192.168.5.20.log","warehouse":"AU"}
,{"PID":"WS-X4248-RJ45V","VID":"V11","SN":"JAE142702FQ","line":[6458],"fileName":"20190902-TEST02-Session.NT13-54-192.168.5.20.log","warehouse":"AU"}
,{"PID":"WS-X4248-RJ45V","VID":"V11","SN":"JAE142702I4","line":[6461],"fileName":"20190902-TEST02-Session.NT13-54-192.168.5.20.log","warehouse":"AU"}
,{"PID":"WS-X45-SUP6-E","VID":"V08","SN":"JAE142907UZ","line":[6464],"fileName":"20190902-TEST02-Session.NT13-54-192.168.5.20.log","warehouse":"AU"}
,{"PID":"WS-X4248-RJ45V","VID":"V11","SN":"JAE1428030N","line":[6467],"fileName":"20190902-TEST02-Session.NT13-54-192.168.5.20.log","warehouse":"AU"}
,{"PID":"WS-X4248-RJ45V","VID":"V11","SN":"JAE142803QQ","line":[6470],"fileName":"20190902-TEST02-Session.NT13-54-192.168.5.20.log","warehouse":"AU"}
,{"PID":"WS-X4248-RJ45V","VID":"V12","SN":"JAE153702UM","line":[6473],"fileName":"20190902-TEST02-Session.NT13-54-192.168.5.20.log","warehouse":"AU"}
,{"PID":"WS-X4248-RJ45V","VID":"V06","SN":"JAE1041D5GQ","line":[6476],"fileName":"20190902-TEST02-Session.NT13-54-192.168.5.20.log","warehouse":"AU"}
,{"PID":"WS-X4582-E","VID":"V02","SN":"FOX1427GRHF","line":[6479],"fileName":"20190902-TEST02-Session.NT13-54-192.168.5.20.log","warehouse":"AU"}
,{"PID":"PWR-C45-6000ACV","VID":"V03","SN":"AZS16460B25","line":[6482],"fileName":"20190902-TEST02-Session.NT13-54-192.168.5.20.log","warehouse":"AU"}
,{"PID":"PWR-C45-6000ACV","VID":"V01","SN":"AZS14060K9C","line":[6485],"fileName":"20190902-TEST02-Session.NT13-54-192.168.5.20.log","warehouse":"AU"}]

View File

@ -3,18 +3,24 @@ import chokidar from "chokidar";
import moment from "moment";
import LogDetectFile from "App/Models/LogDetectFile";
import LogReport from "App/Models/LogReport";
import KeyValue from "App/Models/KeyValue";
import Database from "@ioc:Adonis/Lucid/Database";
import { sendMessToZulip } from "./sendMessToZulip";
// export default class loggerAPI {
export function runtimeCheckLogs(folderPath) {
export async function runtimeCheckLogs(folderPath) {
try {
let fileList = Array();
let fileList_old = Array();
let listKeyValues = await KeyValue.all();
// console.log(listKeyValues.map(obj=>obj.$original.value))
// Function to update the list of files
async function updateFileList() {
//get date now
let dateNow = moment(Date.now()).format("YYYY/MM/DD");
//Get list file in folder
fileList = fs.readdirSync(folderPath);
// console.log("File list updated:", fileList);
//Get date modified
fileList.map((file) => {
const filePath = `${folderPath}/${file}`;
if (file?.split(".")[filePath.split(".").length - 1] === "log") {
@ -40,6 +46,10 @@ export function runtimeCheckLogs(folderPath) {
{ file_name: filePath.split("/")[filePath.split("/").length - 1] },
{ file_name: filePath.split("/")[filePath.split("/").length - 1] }
);
// await LogDetectFile.firstOrCreate(
// { file_name: filePath.split("\\")[filePath.split("\\").length - 1] },
// { file_name: filePath.split("\\")[filePath.split("\\").length - 1] }
// );
fileList_old = fileList;
updateFileList();
@ -49,35 +59,78 @@ export function runtimeCheckLogs(folderPath) {
});
// Watch for changes in the files listed
function watchFilesInList() {
async function watchFilesInList() {
// console.log("--------->", fileList);
//get date now
//check new file
fileList
await fileList
?.filter((i) => fileList_old.includes(i) === false)
?.forEach((fileName) => {
//path file
const filePath = `${folderPath}/${fileName}`;
//get date modified
// const stats = fs.statSync(filePath);
// //scan file today
// if (dateNow === moment(stats.mtime).format("2023/08/20")) {
const scan = fs.watchFile(
filePath,
{ interval: 10000 },
async (eventType) => {
//check special item, extra RAM, error in log
//true: import log to log_report table, send report to Zulip
const log = await LogDetectFile.findBy("file_name", fileName);
await LogReport.create({
detected_content: "virk",
line: 123,
id_file: log?.id_ldf,
let lines = [];
let content = await fs
.readFileSync(filePath)
.toString()
?.split("\n");
content.map((line, index) => {
listKeyValues
.map((obj) => obj.$original.value)
.map(async (value) => {
if (line.search(value) !== -1) {
const log = await LogDetectFile.findBy(
"file_name",
fileName
);
let checkLog = await Database.rawQuery(
"select * from log_reports where id_file = " +
log?.id_ldf +
" and line = " +
(index + 1) +
" and detected_content='" +
value +
"'"
);
console.log(checkLog[0].length)
if (checkLog[0].length === 0) {
console.log(content[index])
await LogReport.create({
detected_content: value,
line: index + 1,
id_file: log?.id_ldf,
});
lines.push(index + 1);
}
}
});
});
//true: import log to log_report table, send report to Zulip
setTimeout(async() => {
if (lines.length === 0) {
console.log(`${fileName} has changed (${eventType})---Good`);
} else {
console.log(
`${fileName} has changed (${eventType})---SOS---${lines.length}`
);
let fileDetect = await LogDetectFile.findBy(
"file_name",
fileName
);
let logsDetect = await Database.rawQuery(
"select * from log_reports where id_file = " + fileDetect?.id_ldf
);
sendMessToZulip("stream", "Result test - auto.nswteam.net", "Log Alert", "DETECTED IN "+fileName+"\n"+JSON.stringify(logsDetect[0]))
}
}, 3000);
//false: next
console.log(`${fileName} has changed (${eventType})`);
}
);
//setMaxListeners
@ -85,6 +138,8 @@ export function runtimeCheckLogs(folderPath) {
// }
});
}
} catch (error) {
console.log(error);
}

View File

@ -0,0 +1,22 @@
import zulip from "zulip-js";
export const sendMessToZulip = async (type, to, topic, content) => {
try {
const config = {
username: "networktool-bot@zulip.ipsupply.com.au",
apiKey: "0jMAmOuhfLvBqKJikv5oAkyNM4RIEoAM",
realm: "https://zulip.ipsupply.com.au",
};
const client = await zulip(config);
let params = {
type: type,
to: to,
topic: topic,
content: content
};
await client.messages.send(params);
} catch (error) {
console.log(error);
}
};

194
package-lock.json generated
View File

@ -22,7 +22,8 @@
"mysql2": "^3.6.0",
"proxy-addr": "^2.0.7",
"reflect-metadata": "^0.1.13",
"source-map-support": "^0.5.21"
"source-map-support": "^0.5.21",
"zulip-js": "^2.0.9"
},
"devDependencies": {
"@adonisjs/assembler": "^5.9.5",
@ -651,6 +652,17 @@
"node": ">=4"
}
},
"node_modules/@babel/runtime": {
"version": "7.22.10",
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.22.10.tgz",
"integrity": "sha512-21t/fkKLMZI4pqP2wlmsQAWnYW1PDyKyyUV4vCi+B25ydmdaYTKXPwCj0BzSUnZf4seIiYvSA3jcZ3gdsMFkLQ==",
"dependencies": {
"regenerator-runtime": "^0.14.0"
},
"engines": {
"node": ">=6.9.0"
}
},
"node_modules/@colors/colors": {
"version": "1.5.0",
"resolved": "https://registry.npmjs.org/@colors/colors/-/colors-1.5.0.tgz",
@ -3982,8 +3994,7 @@
"node_modules/ini": {
"version": "1.3.8",
"resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz",
"integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==",
"dev": true
"integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew=="
},
"node_modules/interpret": {
"version": "2.2.0",
@ -4261,6 +4272,36 @@
"node": ">=0.10.0"
}
},
"node_modules/isomorphic-fetch": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/isomorphic-fetch/-/isomorphic-fetch-3.0.0.tgz",
"integrity": "sha512-qvUtwJ3j6qwsF3jLxkZ72qCgjMysPzDfeV240JHiGZsANBYd+EEuu35v7dfrJ9Up0Ak07D7GGSkGhCHTqg/5wA==",
"dependencies": {
"node-fetch": "^2.6.1",
"whatwg-fetch": "^3.4.1"
}
},
"node_modules/isomorphic-form-data": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/isomorphic-form-data/-/isomorphic-form-data-2.0.0.tgz",
"integrity": "sha512-TYgVnXWeESVmQSg4GLVbalmQ+B4NPi/H4eWxqALKj63KsUrcu301YDjBqaOw3h+cbak7Na4Xyps3BiptHtxTfg==",
"dependencies": {
"form-data": "^2.3.2"
}
},
"node_modules/isomorphic-form-data/node_modules/form-data": {
"version": "2.5.1",
"resolved": "https://registry.npmjs.org/form-data/-/form-data-2.5.1.tgz",
"integrity": "sha512-m21N3WOmEEURgk6B9GLOE4RuWOFf28Lhh9qGYeNlGq4VDXUlJy2th2slBNU8Gp8EzloYZOibZJ7t5ecIrFSjVA==",
"dependencies": {
"asynckit": "^0.4.0",
"combined-stream": "^1.0.6",
"mime-types": "^2.1.12"
},
"engines": {
"node": ">= 0.12"
}
},
"node_modules/jest-diff": {
"version": "29.6.2",
"resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.6.2.tgz",
@ -5327,6 +5368,25 @@
"lodash": "^4.17.21"
}
},
"node_modules/node-fetch": {
"version": "2.7.0",
"resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz",
"integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==",
"dependencies": {
"whatwg-url": "^5.0.0"
},
"engines": {
"node": "4.x || >=6.0.0"
},
"peerDependencies": {
"encoding": "^0.1.0"
},
"peerDependenciesMeta": {
"encoding": {
"optional": true
}
}
},
"node_modules/node-repl-await": {
"version": "0.1.2",
"resolved": "https://registry.npmjs.org/node-repl-await/-/node-repl-await-0.1.2.tgz",
@ -6281,6 +6341,11 @@
"resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.1.13.tgz",
"integrity": "sha512-Ts1Y/anZELhSsjMcU605fU9RE4Oi3p5ORujwbIKXfWa+0Zxs510Qrmrce5/Jowq3cHSZSJqBjypxmHarc+vEWg=="
},
"node_modules/regenerator-runtime": {
"version": "0.14.0",
"resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.0.tgz",
"integrity": "sha512-srw17NI0TUWHuGa5CFGGmhfNIeja30WMBfbslPNhf6JrqQlLN5gcrvig1oqPxiVaXb0oW0XRKtH6Nngs5lKCIA=="
},
"node_modules/regex-not": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/regex-not/-/regex-not-1.0.2.tgz",
@ -7466,6 +7531,11 @@
"url": "https://github.com/sponsors/Borewit"
}
},
"node_modules/tr46": {
"version": "0.0.3",
"resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",
"integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw=="
},
"node_modules/traverse": {
"version": "0.6.7",
"resolved": "https://registry.npmjs.org/traverse/-/traverse-0.6.7.tgz",
@ -7723,6 +7793,11 @@
"defaults": "^1.0.3"
}
},
"node_modules/webidl-conversions": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",
"integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ=="
},
"node_modules/webpack-merge": {
"version": "4.2.2",
"resolved": "https://registry.npmjs.org/webpack-merge/-/webpack-merge-4.2.2.tgz",
@ -7732,6 +7807,20 @@
"lodash": "^4.17.15"
}
},
"node_modules/whatwg-fetch": {
"version": "3.6.17",
"resolved": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-3.6.17.tgz",
"integrity": "sha512-c4ghIvG6th0eudYwKZY5keb81wtFz9/WeAHAoy8+r18kcWlitUIrmGFQ2rWEl4UCKUilD3zCLHOIPheHx5ypRQ=="
},
"node_modules/whatwg-url": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz",
"integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==",
"dependencies": {
"tr46": "~0.0.3",
"webidl-conversions": "^3.0.0"
}
},
"node_modules/which": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
@ -7837,6 +7926,17 @@
"engines": {
"node": "^12.20.0 || >=14"
}
},
"node_modules/zulip-js": {
"version": "2.0.9",
"resolved": "https://registry.npmjs.org/zulip-js/-/zulip-js-2.0.9.tgz",
"integrity": "sha512-I8Cjnxa7qTaHwxN6YZ4IOL2IiTz89rD4NZul1t8Hzu+q8muSE4LT2iVAlnCrCut4KEbOZDA+Bsgp0/CtFkUbnA==",
"dependencies": {
"@babel/runtime": "^7.12.5",
"ini": "^1.3.7",
"isomorphic-fetch": "^3.0.0",
"isomorphic-form-data": "2.0.0"
}
}
},
"dependencies": {
@ -8376,6 +8476,14 @@
"resolved": "https://registry.npmjs.org/@arr/every/-/every-1.0.1.tgz",
"integrity": "sha512-UQFQ6SgyJ6LX42W8rHCs8KVc0JS0tzVL9ct4XYedJukskYVWTo49tNiMEK9C2HTyarbNiT/RVIRSY82vH+6sTg=="
},
"@babel/runtime": {
"version": "7.22.10",
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.22.10.tgz",
"integrity": "sha512-21t/fkKLMZI4pqP2wlmsQAWnYW1PDyKyyUV4vCi+B25ydmdaYTKXPwCj0BzSUnZf4seIiYvSA3jcZ3gdsMFkLQ==",
"requires": {
"regenerator-runtime": "^0.14.0"
}
},
"@colors/colors": {
"version": "1.5.0",
"resolved": "https://registry.npmjs.org/@colors/colors/-/colors-1.5.0.tgz",
@ -10980,8 +11088,7 @@
"ini": {
"version": "1.3.8",
"resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz",
"integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==",
"dev": true
"integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew=="
},
"interpret": {
"version": "2.2.0",
@ -11185,6 +11292,35 @@
"integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==",
"dev": true
},
"isomorphic-fetch": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/isomorphic-fetch/-/isomorphic-fetch-3.0.0.tgz",
"integrity": "sha512-qvUtwJ3j6qwsF3jLxkZ72qCgjMysPzDfeV240JHiGZsANBYd+EEuu35v7dfrJ9Up0Ak07D7GGSkGhCHTqg/5wA==",
"requires": {
"node-fetch": "^2.6.1",
"whatwg-fetch": "^3.4.1"
}
},
"isomorphic-form-data": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/isomorphic-form-data/-/isomorphic-form-data-2.0.0.tgz",
"integrity": "sha512-TYgVnXWeESVmQSg4GLVbalmQ+B4NPi/H4eWxqALKj63KsUrcu301YDjBqaOw3h+cbak7Na4Xyps3BiptHtxTfg==",
"requires": {
"form-data": "^2.3.2"
},
"dependencies": {
"form-data": {
"version": "2.5.1",
"resolved": "https://registry.npmjs.org/form-data/-/form-data-2.5.1.tgz",
"integrity": "sha512-m21N3WOmEEURgk6B9GLOE4RuWOFf28Lhh9qGYeNlGq4VDXUlJy2th2slBNU8Gp8EzloYZOibZJ7t5ecIrFSjVA==",
"requires": {
"asynckit": "^0.4.0",
"combined-stream": "^1.0.6",
"mime-types": "^2.1.12"
}
}
}
},
"jest-diff": {
"version": "29.6.2",
"resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.6.2.tgz",
@ -12007,6 +12143,14 @@
"lodash": "^4.17.21"
}
},
"node-fetch": {
"version": "2.7.0",
"resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz",
"integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==",
"requires": {
"whatwg-url": "^5.0.0"
}
},
"node-repl-await": {
"version": "0.1.2",
"resolved": "https://registry.npmjs.org/node-repl-await/-/node-repl-await-0.1.2.tgz",
@ -12742,6 +12886,11 @@
"resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.1.13.tgz",
"integrity": "sha512-Ts1Y/anZELhSsjMcU605fU9RE4Oi3p5ORujwbIKXfWa+0Zxs510Qrmrce5/Jowq3cHSZSJqBjypxmHarc+vEWg=="
},
"regenerator-runtime": {
"version": "0.14.0",
"resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.0.tgz",
"integrity": "sha512-srw17NI0TUWHuGa5CFGGmhfNIeja30WMBfbslPNhf6JrqQlLN5gcrvig1oqPxiVaXb0oW0XRKtH6Nngs5lKCIA=="
},
"regex-not": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/regex-not/-/regex-not-1.0.2.tgz",
@ -13645,6 +13794,11 @@
"ieee754": "^1.2.1"
}
},
"tr46": {
"version": "0.0.3",
"resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",
"integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw=="
},
"traverse": {
"version": "0.6.7",
"resolved": "https://registry.npmjs.org/traverse/-/traverse-0.6.7.tgz",
@ -13848,6 +14002,11 @@
"defaults": "^1.0.3"
}
},
"webidl-conversions": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",
"integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ=="
},
"webpack-merge": {
"version": "4.2.2",
"resolved": "https://registry.npmjs.org/webpack-merge/-/webpack-merge-4.2.2.tgz",
@ -13857,6 +14016,20 @@
"lodash": "^4.17.15"
}
},
"whatwg-fetch": {
"version": "3.6.17",
"resolved": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-3.6.17.tgz",
"integrity": "sha512-c4ghIvG6th0eudYwKZY5keb81wtFz9/WeAHAoy8+r18kcWlitUIrmGFQ2rWEl4UCKUilD3zCLHOIPheHx5ypRQ=="
},
"whatwg-url": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz",
"integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==",
"requires": {
"tr46": "~0.0.3",
"webidl-conversions": "^3.0.0"
}
},
"which": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
@ -13941,6 +14114,17 @@
"optional": true
}
}
},
"zulip-js": {
"version": "2.0.9",
"resolved": "https://registry.npmjs.org/zulip-js/-/zulip-js-2.0.9.tgz",
"integrity": "sha512-I8Cjnxa7qTaHwxN6YZ4IOL2IiTz89rD4NZul1t8Hzu+q8muSE4LT2iVAlnCrCut4KEbOZDA+Bsgp0/CtFkUbnA==",
"requires": {
"@babel/runtime": "^7.12.5",
"ini": "^1.3.7",
"isomorphic-fetch": "^3.0.0",
"isomorphic-form-data": "2.0.0"
}
}
}
}

View File

@ -35,6 +35,7 @@
"mysql2": "^3.6.0",
"proxy-addr": "^2.0.7",
"reflect-metadata": "^0.1.13",
"source-map-support": "^0.5.21"
"source-map-support": "^0.5.21",
"zulip-js": "^2.0.9"
}
}