const users = [
  {
    firstname: "Studio",
    icon: "icons/default/icon_user.png",
    creation_date: "2017-12-07 11:40:37.046",
    userName: "studio",
    title: "",
    created_by_user_id: "-1",
    enabled: "true",
    lastname: "",
    last_connection: "",
    password: "",
    manager_id: "0",
    id: "22",
    job_title: "Studio technical user for preview",
    last_update_date: "2017-12-07 11:40:37.046"
  },
  {
    firstname: "Giovanna",
    icon: "icons/default/icon_user.png",
    creation_date: "2017-12-07 11:40:36.868",
    userName: "giovanna.almeida",
    title: "Mrs",
    created_by_user_id: "-1",
    enabled: "true",
    lastname: "Almeida",
    last_connection: "",
    password: "",
    manager_id: "17",
    id: "21",
    job_title: "Account manager",
    last_update_date: "2017-12-07 11:40:36.868"
  },
  {
    firstname: "Daniela",
    icon: "icons/default/icon_user.png",
    creation_date: "2017-12-07 11:40:36.826",
    userName: "daniela.angelo",
    title: "Mrs",
    created_by_user_id: "-1",
    enabled: "true",
    lastname: "Angelo",
    last_connection: "",
    password: "",
    manager_id: "1",
    id: "17",
    job_title: "Vice President of Sales",
    last_update_date: "2017-12-07 11:40:36.826"
  },
  {
    firstname: "Walter",
    icon: "icons/default/icon_user.png",
    creation_date: "2017-12-07 11:40:36.582",
    userName: "walter.bates",
    title: "Mr",
    created_by_user_id: "-1",
    enabled: "true",
    lastname: "Bates",
    last_connection: "2018-02-28 10:57:26.866",
    password: "",
    manager_id: "3",
    id: "4",
    job_title: "Human resources benefits",
    last_update_date: "2017-12-07 11:40:36.582"
  },
  {
    firstname: "Isabel",
    icon: "icons/default/icon_user.png",
    creation_date: "2017-12-07 11:40:36.750",
    userName: "isabel.bleasdale",
    title: "Mrs",
    created_by_user_id: "-1",
    enabled: "true",
    lastname: "Bleasdale",
    last_connection: "",
    password: "",
    manager_id: "11",
    id: "10",
    job_title: "Product marketing manager",
    last_update_date: "2017-12-07 11:40:36.750"
  },
  {
    firstname: "Jan",
    icon: "icons/default/icon_user.png",
    creation_date: "2017-12-07 11:40:36.617",
    userName: "jan.fisher",
    title: "Mr",
    created_by_user_id: "-1",
    enabled: "true",
    lastname: "Fisher",
    last_connection: "",
    password: "",
    manager_id: "11",
    id: "9",
    job_title: "Infrastucture specialist",
    last_update_date: "2017-12-07 11:40:36.617"
  },
  {
    firstname: "Patrick",
    icon: "icons/default/icon_user.png",
    creation_date: "2017-12-07 11:40:36.595",
    userName: "patrick.gardenier",
    title: "Mr",
    created_by_user_id: "-1",
    enabled: "true",
    lastname: "Gardenier",
    last_connection: "",
    password: "",
    manager_id: "5",
    id: "6",
    job_title: "Financial controller",
    last_update_date: "2017-12-07 11:40:36.595"
  },
  {
    firstname: "Thorsten",
    icon: "icons/default/icon_user.png",
    creation_date: "2017-12-07 11:40:36.610",
    userName: "thorsten.hartmann",
    title: "Mr",
    created_by_user_id: "-1",
    enabled: "true",
    lastname: "Hartmann",
    last_connection: "",
    password: "",
    manager_id: "5",
    id: "8",
    job_title: "Financial planning manager",
    last_update_date: "2017-12-07 11:40:36.610"
  },
  {
    firstname: "Joseph",
    icon: "icons/default/icon_user.png",
    creation_date: "2017-12-07 11:40:36.799",
    userName: "joseph.hovell",
    title: "Mr",
    created_by_user_id: "-1",
    enabled: "true",
    lastname: "Hovell",
    last_connection: "",
    password: "",
    manager_id: "12",
    id: "14",
    job_title: "Engineer",
    last_update_date: "2017-12-07 11:40:36.799"
  },
  {
    firstname: "William",
    icon: "icons/default/icon_user.png",
    creation_date: "2017-12-07 11:40:36.515",
    userName: "william.jobs",
    title: "Mr",
    created_by_user_id: "-1",
    enabled: "true",
    lastname: "Jobs",
    last_connection: "",
    password: "",
    manager_id: "0",
    id: "1",
    job_title: "Chief Executive Officer",
    last_update_date: "2017-12-07 11:40:36.515"
  },
  {
    firstname: "Virgine",
    icon: "icons/default/icon_user.png",
    creation_date: "2017-12-07 11:40:36.603",
    userName: "virginie.jomphe",
    title: "Mrs",
    created_by_user_id: "-1",
    enabled: "true",
    lastname: "Jomphe",
    last_connection: "",
    password: "",
    manager_id: "5",
    id: "7",
    job_title: "Accountant",
    last_update_date: "2017-12-07 11:40:36.603"
  },
  {
    firstname: "Helen",
    icon: "icons/default/icon_user.png",
    creation_date: "2017-12-07 11:40:36.576",
    userName: "helen.kelly",
    title: "Mrs",
    created_by_user_id: "-1",
    enabled: "true",
    lastname: "Kelly",
    last_connection: "",
    password: "",
    manager_id: "1",
    id: "3",
    job_title: "Human resource manager",
    last_update_date: "2017-12-07 11:40:36.576"
  },
  {
    firstname: "Misa",
    icon: "icons/default/icon_user.png",
    creation_date: "2017-12-07 11:40:36.846",
    userName: "misa.kumagai",
    title: "Mrs",
    created_by_user_id: "-1",
    enabled: "true",
    lastname: "Kumagai",
    last_connection: "",
    password: "",
    manager_id: "17",
    id: "19",
    job_title: "Account manager",
    last_update_date: "2017-12-07 11:40:36.846"
  },
  {
    firstname: "Marc",
    icon: "icons/default/icon_user.png",
    creation_date: "2017-12-07 11:40:36.792",
    userName: "marc.marseau",
    title: "Mr",
    created_by_user_id: "-1",
    enabled: "true",
    lastname: "Marseau",
    last_connection: "",
    password: "",
    manager_id: "12",
    id: "13",
    job_title: "Engineer",
    last_update_date: "2017-12-07 11:40:36.792"
  },
  {
    firstname: "Michael",
    icon: "icons/default/icon_user.png",
    creation_date: "2017-12-07 11:40:36.779",
    userName: "michael.morrison",
    title: "Mr",
    created_by_user_id: "-1",
    enabled: "true",
    lastname: "Morrison",
    last_connection: "",
    password: "",
    manager_id: "1",
    id: "12",
    job_title: "Chief Technical Officer",
    last_update_date: "2017-12-07 11:40:36.779"
  },
  {
    firstname: "Anthony",
    icon: "icons/default/icon_user.png",
    creation_date: "2017-12-07 11:40:36.837",
    userName: "anthony.nichols",
    title: "Mr",
    created_by_user_id: "-1",
    enabled: "true",
    lastname: "Nichols",
    last_connection: "",
    password: "",
    manager_id: "17",
    id: "18",
    job_title: "Account manager",
    last_update_date: "2017-12-07 11:40:36.837"
  },
  {
    firstname: "Favio",
    icon: "icons/default/icon_user.png",
    creation_date: "2017-12-07 11:40:36.763",
    userName: "favio.riviera",
    title: "Mr",
    created_by_user_id: "-1",
    enabled: "true",
    lastname: "Riviera",
    last_connection: "",
    password: "",
    manager_id: "1",
    id: "11",
    job_title: "Vice President of Marketing",
    last_update_date: "2017-12-07 11:40:36.763"
  },
  {
    firstname: "April",
    icon: "icons/default/icon_user.png",
    creation_date: "2017-12-07 11:40:36.565",
    userName: "april.sanchez",
    title: "Mrs",
    created_by_user_id: "-1",
    enabled: "true",
    lastname: "Sanchez",
    last_connection: "",
    password: "",
    manager_id: "3",
    id: "2",
    job_title: "Compensation specialist",
    last_update_date: "2017-12-07 11:40:36.565"
  },
  {
    firstname: "Thomas",
    icon: "icons/default/icon_user.png",
    creation_date: "2017-12-07 11:40:36.818",
    userName: "thomas.wallis",
    title: "Mr",
    created_by_user_id: "-1",
    enabled: "true",
    lastname: "Wallis",
    last_connection: "",
    password: "",
    manager_id: "12",
    id: "16",
    job_title: "Consultant",
    last_update_date: "2017-12-07 11:40:36.818"
  },
  {
    firstname: "Zachary",
    icon: "icons/default/icon_user.png",
    creation_date: "2017-12-07 11:40:36.588",
    userName: "zachary.williamson",
    title: "Mr",
    created_by_user_id: "-1",
    enabled: "true",
    lastname: "Williamson",
    last_connection: "",
    password: "",
    manager_id: "1",
    id: "5",
    job_title: "Chief Financial Officer",
    last_update_date: "2017-12-07 11:40:36.588"
  },
  {
    firstname: "Norio",
    icon: "icons/default/icon_user.png",
    creation_date: "2017-12-07 11:40:36.856",
    userName: "norio.yamazaki",
    title: "Mr",
    created_by_user_id: "-1",
    enabled: "true",
    lastname: "Yamazaki",
    last_connection: "",
    password: "",
    manager_id: "17",
    id: "20",
    job_title: "Account manager",
    last_update_date: "2017-12-07 11:40:36.856"
  },
  {
    firstname: "Mauro",
    icon: "icons/default/icon_user.png",
    creation_date: "2017-12-07 11:40:36.809",
    userName: "mauro.zetticci",
    title: "Mr",
    created_by_user_id: "-1",
    enabled: "true",
    lastname: "Zetticci",
    last_connection: "",
    password: "",
    manager_id: "12",
    id: "15",
    job_title: "Consultant",
    last_update_date: "2017-12-07 11:40:36.809"
  }
];

const filter = (text) => users.filter((user) => user.userName.includes(text.toLowerCase()));

module.exports = {
  filter
};
