This commit is contained in:
sigonasr2 2020-08-22 01:29:47 +09:00
parent 13da878026
commit 68408b7cd3

View File

@ -3,10 +3,12 @@ const moment = require('moment')
const Agents = () => {
const obj = {}
obj.agents = []
obj._agentId = 0
obj.addAgent = (os, ip, profile, interval) => {
const agent = {}
agent.id = obj.agents.length + 1
obj._agentId += 1
agent.id = obj._agentId
agent.os = os
agent.ip = ip
agent.profile = profile