From eb41218dbd41837e5afb750553abcfaf9c9ced9f Mon Sep 17 00:00:00 2001
From: Fernando Erd <fernandoerd2012@gmail.com>
Date: Fri, 11 Jan 2019 11:15:24 -0200
Subject: [PATCH] Add GNU GPLv3

---
 src/libs/app.js                      | 20 ++++++++++++++++++++
 src/libs/config.js                   | 20 ++++++++++++++++++++
 src/libs/db/monet.js                 | 20 ++++++++++++++++++++
 src/libs/db/mongoose.js              | 20 ++++++++++++++++++++
 src/libs/db/query_exec.js            | 20 ++++++++++++++++++++
 src/libs/log.js                      | 20 ++++++++++++++++++++
 src/libs/middlewares/checkVersion.js | 20 ++++++++++++++++++++
 src/libs/middlewares/email.js        | 20 ++++++++++++++++++++
 src/libs/middlewares/passport.js     | 20 ++++++++++++++++++++
 src/libs/models/filters.js           | 20 ++++++++++++++++++++
 src/libs/models/indicator.js         | 20 ++++++++++++++++++++
 src/libs/models/message.js           | 20 ++++++++++++++++++++
 src/libs/models/user.js              | 20 ++++++++++++++++++++
 src/libs/routes/api.js               | 20 ++++++++++++++++++++
 src/libs/routes/indicator.js         | 20 ++++++++++++++++++++
 src/libs/routes/message.js           | 20 ++++++++++++++++++++
 src/libs/routes/user.js              | 20 ++++++++++++++++++++
 src/server.js                        | 20 ++++++++++++++++++++
 src/test/api.js                      | 20 ++++++++++++++++++++
 src/test/user.js                     | 20 ++++++++++++++++++++
 20 files changed, 400 insertions(+)

diff --git a/src/libs/app.js b/src/libs/app.js
index acb4dd1..9ea95aa 100644
--- a/src/libs/app.js
+++ b/src/libs/app.js
@@ -1,3 +1,23 @@
+/*
+Copyright (C) 2016 Centro de Computacao Cientifica e Software Livre
+Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR
+
+This file is part of lde-api.
+
+lde-api is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+lde-api is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with lde-api.  If not, see <https://www.gnu.org/licenses/>.
+*/
+
 const express = require('express');
 const cookieParser = require('cookie-parser');
 const bodyParser = require('body-parser');
diff --git a/src/libs/config.js b/src/libs/config.js
index 2c07d19..083e354 100644
--- a/src/libs/config.js
+++ b/src/libs/config.js
@@ -1,3 +1,23 @@
+/*
+Copyright (C) 2016 Centro de Computacao Cientifica e Software Livre
+Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR
+
+This file is part of lde-api.
+
+lde-api is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+lde-api is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with lde-api.  If not, see <https://www.gnu.org/licenses/>.
+*/
+
 let conf = require(`${process.cwd()}/config.json`);
 
 conf = conf[process.env.NODE_ENV];
diff --git a/src/libs/db/monet.js b/src/libs/db/monet.js
index d19fb37..8894aa6 100644
--- a/src/libs/db/monet.js
+++ b/src/libs/db/monet.js
@@ -1,3 +1,23 @@
+/*
+Copyright (C) 2016 Centro de Computacao Cientifica e Software Livre
+Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR
+
+This file is part of lde-api.
+
+lde-api is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+lde-api is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with lde-api.  If not, see <https://www.gnu.org/licenses/>.
+*/
+
 const MonetDBPool = require('monetdb-pool');
 
 const libs = `${process.cwd()}/libs`;
diff --git a/src/libs/db/mongoose.js b/src/libs/db/mongoose.js
index d859415..d5872e9 100644
--- a/src/libs/db/mongoose.js
+++ b/src/libs/db/mongoose.js
@@ -1,3 +1,23 @@
+/*
+Copyright (C) 2016 Centro de Computacao Cientifica e Software Livre
+Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR
+
+This file is part of lde-api.
+
+lde-api is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+lde-api is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with lde-api.  If not, see <https://www.gnu.org/licenses/>.
+*/
+
 const libs = `${process.cwd()}/libs`;
 
 const config = require(`${libs}/config`);
diff --git a/src/libs/db/query_exec.js b/src/libs/db/query_exec.js
index c43b1db..0cbe126 100644
--- a/src/libs/db/query_exec.js
+++ b/src/libs/db/query_exec.js
@@ -1,3 +1,23 @@
+/*
+Copyright (C) 2016 Centro de Computacao Cientifica e Software Livre
+Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR
+
+This file is part of lde-api.
+
+lde-api is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+lde-api is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with lde-api.  If not, see <https://www.gnu.org/licenses/>.
+*/
+
 
 const libs = `${process.cwd()}/libs`;
 
diff --git a/src/libs/log.js b/src/libs/log.js
index ddf0303..bfdb3ec 100644
--- a/src/libs/log.js
+++ b/src/libs/log.js
@@ -1,3 +1,23 @@
+/*
+Copyright (C) 2016 Centro de Computacao Cientifica e Software Livre
+Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR
+
+This file is part of lde-api.
+
+lde-api is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+lde-api is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with lde-api.  If not, see <https://www.gnu.org/licenses/>.
+*/
+
 const libs = `${process.cwd()}/libs`;
 const config = require(`${libs}/config`);
 
diff --git a/src/libs/middlewares/checkVersion.js b/src/libs/middlewares/checkVersion.js
index c3187ad..2777076 100644
--- a/src/libs/middlewares/checkVersion.js
+++ b/src/libs/middlewares/checkVersion.js
@@ -1,3 +1,23 @@
+/*
+Copyright (C) 2016 Centro de Computacao Cientifica e Software Livre
+Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR
+
+This file is part of lde-api.
+
+lde-api is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+lde-api is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with lde-api.  If not, see <https://www.gnu.org/licenses/>.
+*/
+
 const curPath = process.cwd();
 const libs = `${process.cwd()}/libs`;
 const log = require(`${libs}/log`)(module);
diff --git a/src/libs/middlewares/email.js b/src/libs/middlewares/email.js
index 2f154fd..fad051b 100644
--- a/src/libs/middlewares/email.js
+++ b/src/libs/middlewares/email.js
@@ -1,3 +1,23 @@
+/*
+Copyright (C) 2016 Centro de Computacao Cientifica e Software Livre
+Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR
+
+This file is part of lde-api.
+
+lde-api is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+lde-api is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with lde-api.  If not, see <https://www.gnu.org/licenses/>.
+*/
+
 const nodemailer = require('nodemailer');
 
 let transporter = nodemailer.createTransport({
diff --git a/src/libs/middlewares/passport.js b/src/libs/middlewares/passport.js
index c939926..23c5986 100644
--- a/src/libs/middlewares/passport.js
+++ b/src/libs/middlewares/passport.js
@@ -1,3 +1,23 @@
+/*
+Copyright (C) 2016 Centro de Computacao Cientifica e Software Livre
+Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR
+
+This file is part of lde-api.
+
+lde-api is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+lde-api is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with lde-api.  If not, see <https://www.gnu.org/licenses/>.
+*/
+
 const JwtStrategy = require('passport-jwt').Strategy;
 const ExtractJwt = require('passport-jwt').ExtractJwt;
 const libs = `${process.cwd()}/libs`;
diff --git a/src/libs/models/filters.js b/src/libs/models/filters.js
index 4fdb1f2..72018c9 100644
--- a/src/libs/models/filters.js
+++ b/src/libs/models/filters.js
@@ -1,3 +1,23 @@
+/*
+Copyright (C) 2016 Centro de Computacao Cientifica e Software Livre
+Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR
+
+This file is part of lde-api.
+
+lde-api is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+lde-api is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with lde-api.  If not, see <https://www.gnu.org/licenses/>.
+*/
+
 const mongoose = require('mongoose');
 const libs = `${process.cwd()}/libs`;
 const log = require(`${libs}/log`)(module);
diff --git a/src/libs/models/indicator.js b/src/libs/models/indicator.js
index 21d2df2..ed39413 100644
--- a/src/libs/models/indicator.js
+++ b/src/libs/models/indicator.js
@@ -1,3 +1,23 @@
+/*
+Copyright (C) 2016 Centro de Computacao Cientifica e Software Livre
+Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR
+
+This file is part of lde-api.
+
+lde-api is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+lde-api is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with lde-api.  If not, see <https://www.gnu.org/licenses/>.
+*/
+
 const mongoose = require('mongoose');
 const libs = `${process.cwd()}/libs`;
 const log = require(`${libs}/log`)(module);
diff --git a/src/libs/models/message.js b/src/libs/models/message.js
index 097ba9c..3722ba9 100644
--- a/src/libs/models/message.js
+++ b/src/libs/models/message.js
@@ -1,3 +1,23 @@
+/*
+Copyright (C) 2016 Centro de Computacao Cientifica e Software Livre
+Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR
+
+This file is part of lde-api.
+
+lde-api is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+lde-api is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with lde-api.  If not, see <https://www.gnu.org/licenses/>.
+*/
+
 const mongoose = require('mongoose');
 const libs = `${process.cwd()}/libs`;
 const log = require(`${libs}/log`)(module);
diff --git a/src/libs/models/user.js b/src/libs/models/user.js
index 9b9c2fa..41d69b3 100644
--- a/src/libs/models/user.js
+++ b/src/libs/models/user.js
@@ -1,3 +1,23 @@
+/*
+Copyright (C) 2016 Centro de Computacao Cientifica e Software Livre
+Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR
+
+This file is part of lde-api.
+
+lde-api is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+lde-api is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with lde-api.  If not, see <https://www.gnu.org/licenses/>.
+*/
+
 const mongoose = require('mongoose');
 const bcrypt = require('bcrypt-nodejs');
 const libs = `${process.cwd()}/libs`;
diff --git a/src/libs/routes/api.js b/src/libs/routes/api.js
index acc70f7..bcdfbcd 100644
--- a/src/libs/routes/api.js
+++ b/src/libs/routes/api.js
@@ -1,3 +1,23 @@
+/*
+Copyright (C) 2016 Centro de Computacao Cientifica e Software Livre
+Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR
+
+This file is part of lde-api.
+
+lde-api is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+lde-api is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with lde-api.  If not, see <https://www.gnu.org/licenses/>.
+*/
+
 const express = require('express');
 
 const api = express();
diff --git a/src/libs/routes/indicator.js b/src/libs/routes/indicator.js
index 7bf1066..7c27401 100644
--- a/src/libs/routes/indicator.js
+++ b/src/libs/routes/indicator.js
@@ -1,3 +1,23 @@
+/*
+Copyright (C) 2016 Centro de Computacao Cientifica e Software Livre
+Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR
+
+This file is part of lde-api.
+
+lde-api is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+lde-api is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with lde-api.  If not, see <https://www.gnu.org/licenses/>.
+*/
+
 const express = require('express');
 
 const indicatorApp = express();
diff --git a/src/libs/routes/message.js b/src/libs/routes/message.js
index 749e7cc..998082a 100644
--- a/src/libs/routes/message.js
+++ b/src/libs/routes/message.js
@@ -1,3 +1,23 @@
+/*
+Copyright (C) 2016 Centro de Computacao Cientifica e Software Livre
+Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR
+
+This file is part of lde-api.
+
+lde-api is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+lde-api is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with lde-api.  If not, see <https://www.gnu.org/licenses/>.
+*/
+
 const express = require('express');
 
 const messageApp = express();
diff --git a/src/libs/routes/user.js b/src/libs/routes/user.js
index c8320c0..e86b74a 100644
--- a/src/libs/routes/user.js
+++ b/src/libs/routes/user.js
@@ -1,3 +1,23 @@
+/*
+Copyright (C) 2016 Centro de Computacao Cientifica e Software Livre
+Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR
+
+This file is part of lde-api.
+
+lde-api is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+lde-api is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with lde-api.  If not, see <https://www.gnu.org/licenses/>.
+*/
+
 const express = require('express');
 
 const userApp = express();
diff --git a/src/server.js b/src/server.js
index 5852a44..ac20d23 100644
--- a/src/server.js
+++ b/src/server.js
@@ -1,3 +1,23 @@
+/*
+Copyright (C) 2016 Centro de Computacao Cientifica e Software Livre
+Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR
+
+This file is part of lde-api.
+
+lde-api is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+lde-api is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with lde-api.  If not, see <https://www.gnu.org/licenses/>.
+*/
+
 const debug = require('debug')('simcaq-api');
 const libs = `${process.cwd()}/libs`;
 const config = require(`${libs}/config`);
diff --git a/src/test/api.js b/src/test/api.js
index b5476ea..bd8ef14 100644
--- a/src/test/api.js
+++ b/src/test/api.js
@@ -1,3 +1,23 @@
+/*
+Copyright (C) 2016 Centro de Computacao Cientifica e Software Livre
+Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR
+
+This file is part of lde-api.
+
+lde-api is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+lde-api is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with lde-api.  If not, see <https://www.gnu.org/licenses/>.
+*/
+
 process.env.NODE_ENV = 'test';
 
 const chai = require('chai');
diff --git a/src/test/user.js b/src/test/user.js
index 04ab8e9..104dad5 100644
--- a/src/test/user.js
+++ b/src/test/user.js
@@ -1,3 +1,23 @@
+/*
+Copyright (C) 2016 Centro de Computacao Cientifica e Software Livre
+Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR
+
+This file is part of lde-api.
+
+lde-api is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+lde-api is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with lde-api.  If not, see <https://www.gnu.org/licenses/>.
+*/
+
 process.env.NODE_ENV = 'test';
 
 const chai = require('chai');
-- 
GitLab