text: 'use strict';var cov_vekjmu01s=function(){var path="C:\\Users\\Angel Barusta\\Desktop\\nodejs\\iot_nodejs\\tests\\fixtures\\agent.js",hash="337a75659018d74538351764043769e36bc654c5",Function=function(){}.constructor,global=new Function('return this')(),gcv="__coverage__",coverageData={path:"C:\\Users\\Angel Barusta\\Desktop\\nodejs\\iot_nodejs\\tests\\fixtures\\agent.js",statementMap:{"0":{start:{line:3,column:14},end:{line:13,column:1}},"1":{start:{line:15,column:15},end:{line:20,column:1}},"2":{start:{line:23,column:18},end:{line:23,column:40}},"3":{start:{line:24,column:4},end:{line:24,column:39}},"4":{start:{line:27,column:0},end:{line:36,column:1}},"5":{start:{line:30,column:34},end:{line:30,column:45}},"6":{start:{line:31,column:28},end:{line:31,column:48}},"7":{start:{line:32,column:18},end:{line:32,column:59}},"8":{start:{line:32,column:37},end:{line:32,column:50}},"9":{start:{line:33,column:16},end:{line:33,column:55}},"10":{start:{line:33,column:35},end:{line:33,column:46}}},fnMap:{"0":{name:"extend",decl:{start:{line:22,column:9},end:{line:22,column:15}},loc:{start:{line:22,column:29},end:{line:25,column:1}},line:22},"1":{name:"(anonymous_1)",decl:{start:{line:30,column:29},end:{line:30,column:30}},loc:{start:{line:30,column:34},end:{line:30,column:45}},line:30},"2":{name:"(anonymous_2)",decl:{start:{line:31,column:23},end:{line:31,column:24}},loc:{start:{line:31,column:28},end:{line:31,column:48}},line:31},"3":{name:"(anonymous_3)",decl:{start:{line:32,column:12},end:{line:32,column:13}},loc:{start:{line:32,column:18},end:{line:32,column:59}},line:32},"4":{name:"(anonymous_4)",decl:{start:{line:32,column:32},end:{line:32,column:33}},loc:{start:{line:32,column:37},end:{line:32,column:50}},line:32},"5":{name:"(anonymous_5)",decl:{start:{line:33,column:10},end:{line:33,column:11}},loc:{start:{line:33,column:16},end:{line:33,column:55}},line:33},"6":{name:"(anonymous_6)",decl:{start:{line:33,column:30},end:{line:33,column:31}},loc:{start:{line:33,column:35},end:{line:33,column:46}},line:33}},branchMap:{},s:{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0},f:{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0},b:{},_coverageSchema:"43e27e138ebf9cfc5966b082cf9a028302ed4184"},coverage=global[gcv]||(global[gcv]={});if(coverage[path]&&coverage[path].hash===hash){return coverage[path];}coverageData.hash=hash;return coverage[path]=coverageData;}();const agent=(cov_vekjmu01s.s[0]++,{id:1,uuid:'yyy-yyy-yyy',name:'fixture',username:'iot',hostname:'test-host',pid:0,connected:true,createdAt:new Date(),//fecha de craciom
  updatedAt:new Date()//fecha de actualizacion
  });const agents=(cov_vekjmu01s.s[1]++,[agent,extend(agent,{id:2,uuid:'yyy-yyy-yyw',connected:false,username:'test'}),extend(agent,{id:3,uuid:'yyy-yyy-yyx,'}),extend(agent,{id:4,uuid:'yyy-yyy-yyz',username:'test'})]);function extend(obj,values){cov_vekjmu01s.f[0]++;//funcion para sobre escribir un objeto
  const clone=(cov_vekjmu01s.s[2]++,Object.assign({},obj));cov_vekjmu01s.s[3]++;return Object.assign(clone,values);}cov_vekjmu01s.s[4]++;module.exports={single:agent,//filtros
  all:agents,//filtros
  connected:agents.filter(a=>{cov_vekjmu01s.f[1]++;cov_vekjmu01s.s[5]++;return a.connected;}),iot:agents.filter(a=>{cov_vekjmu01s.f[2]++;cov_vekjmu01s.s[6]++;return a.usarname==='iot';}),// para filtrar por usuario
  byUuid:id=>{cov_vekjmu01s.f[3]++;cov_vekjmu01s.s[7]++;return agents.filter(a=>{cov_vekjmu01s.f[4]++;cov_vekjmu01s.s[8]++;return a.uuid===id;}).shift();},// para filtrar por uuid
  byId:id=>{cov_vekjmu01s.f[5]++;cov_vekjmu01s.s[9]++;return agents.filter(a=>{cov_vekjmu01s.f[6]++;cov_vekjmu01s.s[10]++;return a.id===id;}).shift();}// para filtrar por id
  //primero abrir en terminal: node
  //despues >var agentFixtures = require('./tests/fixtures/agent')
  //despues >agentFixtures.single;
  //> agentFixtures.byId(1)
  };