diff --git a/src/libs/app.js b/src/libs/app.js index acb4dd1fd352a282e1fb595726c74e69b5f68404..9ea95aa1325c813e94dffb15c63940416fb9b083 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 2c07d19e94ba2505205d613a9ac6d5596c388502..083e3545b7bb7ec27e81f4b783e9f2e9e2c4b78e 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 d19fb37dfac5ed68cc15c1762a822818dbbc82da..8894aa6e32dd8bcdf1dd852a2866062cf75a9974 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 d8594158aba29c2c732e8e348bca7930fbb84e73..d5872e92537b34109d5d04e318e2fa5f91682b71 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 c43b1dbee3640a71e1957db722e6eab84e1d8533..0cbe126ad2f180c6ae4d746344a03d9f99a54f3c 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 ddf0303f8481514b047aa6678894316500d25a96..bfdb3ec9446588452d95945481947318e7e886a5 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 c3187adba9081e2a992d09df36e839efc23dfca0..27770768418bec58069edfcb38b3031954d5873c 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 2f154fd10e954b343b67d6be52daec299d2fd433..fad051b9aae696807dda0bdace0d02f2fe7ef5e2 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 c939926099b845b641268d66e9d2bccf9085a043..23c598607d89e03ea3f3b5d5530e2002f4104762 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 4fdb1f23e54b6c833c868c056ed106d2fa7d09d0..72018c9526cae069e0af351e9ab560f71bd3aaa1 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 21d2df21b941b28e00716f2738aecba4a833433d..ed394132fc66c1dabaf1d36ee9c4da3eb80e0b15 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 097ba9c4ae1fb0ce197ddc9b00b62780914362eb..3722ba93f060c3b40f114e2b6aadfc7ddf72e686 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 9b9c2fa5c70bafd507f0a60a062b80efe45b4d13..41d69b3f371de83676d235419832a756c82a9bd0 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 acc70f72cd1916c11c4003091243e6c604676e27..bcdfbcd739deaa9a4dac00f5e9d192b90a88ffff 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 7bf10660b1ec0dc13090b91e0217809b0e4c6f90..7c27401641356a18657fe9b2ca6dd3eb097f41f5 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 749e7cc5f4ab03b556838609d1c09af8828347bd..998082ad449014595ba302ba5ebe5aeac64faf25 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 c8320c0de0e8ce91cccf5fabdaadaaaab7317c5e..e86b74ad8c40ef9c59d899797b866c9a2d618cc6 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 5852a44d8c2a6c7b75ffab33d383d4e9b38c2529..ac20d23d39d9429b8a6d428669581bb32ab4664e 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 b5476ea6352d086cb8d43f8e1f091686bc4f91c4..bd8ef145355c0e040a0360c491592ad7ddcbc67b 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 04ab8e9e58a521ff2b555c891fa53a919066c2d9..104dad55c48606e8882006ba51324ce6492e0f96 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');