diff --git a/app/scripts/app.js b/app/scripts/app.js index 07dc5f9..1774200 100644 --- a/app/scripts/app.js +++ b/app/scripts/app.js @@ -1,3 +1,31 @@ +/** + * ---------------------------------------------------------------------------- + * LICENSE + * + * This file is part of Flyve MDM Web Dashboard. + * + * Flyve MDM Web Dashboard is a subproject of Flyve MDM. Flyve MDM is a mobile + * device management software. + * + * Flyve MDM Web Dashboard 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. + * + * Flyve MDM Web Dashboard 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 Affero General Public License for more details. + * ----------------------------------------------------------------------------- + * @author Alexander Salas - asalas@teclib.com + * @copyright Copyright (c) 2017 Flyve MDM + * @license AGPLv3 https://www.gnu.org/licenses/agpl-3.0.html + * @link https://github.com/flyve-mdm/legacy-web-dashboard/ + * @link http://www.glpi-project.org/ + * @link https://flyve-mdm.com/ + * ----------------------------------------------------------------------------- + */ + 'use strict'; /** * @ngdoc overview diff --git a/app/scripts/controllers/about.js b/app/scripts/controllers/about.js index 89d98fc..618c6ec 100644 --- a/app/scripts/controllers/about.js +++ b/app/scripts/controllers/about.js @@ -1,3 +1,31 @@ +/** + * ---------------------------------------------------------------------------- + * LICENSE + * + * This file is part of Flyve MDM Web Dashboard. + * + * Flyve MDM Web Dashboard is a subproject of Flyve MDM. Flyve MDM is a mobile + * device management software. + * + * Flyve MDM Web Dashboard 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. + * + * Flyve MDM Web Dashboard 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 Affero General Public License for more details. + * ----------------------------------------------------------------------------- + * @author Alexander Salas - asalas@teclib.com + * @copyright Copyright (c) 2017 Flyve MDM + * @license AGPLv3 https://www.gnu.org/licenses/agpl-3.0.html + * @link https://github.com/flyve-mdm/legacy-web-dashboard/ + * @link http://www.glpi-project.org/ + * @link https://flyve-mdm.com/ + * ----------------------------------------------------------------------------- + */ + 'use strict'; /** * @ngdoc function diff --git a/app/scripts/controllers/accountvalidation.js b/app/scripts/controllers/accountvalidation.js index be16da7..ff2a823 100644 --- a/app/scripts/controllers/accountvalidation.js +++ b/app/scripts/controllers/accountvalidation.js @@ -1,3 +1,31 @@ +/** + * ---------------------------------------------------------------------------- + * LICENSE + * + * This file is part of Flyve MDM Web Dashboard. + * + * Flyve MDM Web Dashboard is a subproject of Flyve MDM. Flyve MDM is a mobile + * device management software. + * + * Flyve MDM Web Dashboard 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. + * + * Flyve MDM Web Dashboard 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 Affero General Public License for more details. + * ----------------------------------------------------------------------------- + * @author Alexander Salas - asalas@teclib.com + * @copyright Copyright (c) 2017 Flyve MDM + * @license AGPLv3 https://www.gnu.org/licenses/agpl-3.0.html + * @link https://github.com/flyve-mdm/legacy-web-dashboard/ + * @link http://www.glpi-project.org/ + * @link https://flyve-mdm.com/ + * ----------------------------------------------------------------------------- + */ + 'use strict'; /** * @ngdoc function diff --git a/app/scripts/controllers/applications.js b/app/scripts/controllers/applications.js index e400f28..e962f78 100644 --- a/app/scripts/controllers/applications.js +++ b/app/scripts/controllers/applications.js @@ -1,3 +1,31 @@ +/** + * ---------------------------------------------------------------------------- + * LICENSE + * + * This file is part of Flyve MDM Web Dashboard. + * + * Flyve MDM Web Dashboard is a subproject of Flyve MDM. Flyve MDM is a mobile + * device management software. + * + * Flyve MDM Web Dashboard 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. + * + * Flyve MDM Web Dashboard 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 Affero General Public License for more details. + * ----------------------------------------------------------------------------- + * @author Alexander Salas - asalas@teclib.com + * @copyright Copyright (c) 2017 Flyve MDM + * @license AGPLv3 https://www.gnu.org/licenses/agpl-3.0.html + * @link https://github.com/flyve-mdm/legacy-web-dashboard/ + * @link http://www.glpi-project.org/ + * @link https://flyve-mdm.com/ + * ----------------------------------------------------------------------------- + */ + 'use strict'; /** * @ngdoc function diff --git a/app/scripts/controllers/contact.js b/app/scripts/controllers/contact.js index 9a7b883..b2f72bd 100644 --- a/app/scripts/controllers/contact.js +++ b/app/scripts/controllers/contact.js @@ -1,3 +1,31 @@ +/** + * ---------------------------------------------------------------------------- + * LICENSE + * + * This file is part of Flyve MDM Web Dashboard. + * + * Flyve MDM Web Dashboard is a subproject of Flyve MDM. Flyve MDM is a mobile + * device management software. + * + * Flyve MDM Web Dashboard 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. + * + * Flyve MDM Web Dashboard 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 Affero General Public License for more details. + * ----------------------------------------------------------------------------- + * @author Alexander Salas - asalas@teclib.com + * @copyright Copyright (c) 2017 Flyve MDM + * @license AGPLv3 https://www.gnu.org/licenses/agpl-3.0.html + * @link https://github.com/flyve-mdm/legacy-web-dashboard/ + * @link http://www.glpi-project.org/ + * @link https://flyve-mdm.com/ + * ----------------------------------------------------------------------------- + */ + 'use strict'; /** * @ngdoc function diff --git a/app/scripts/controllers/dashboard.js b/app/scripts/controllers/dashboard.js index 11c9ce4..29906d0 100644 --- a/app/scripts/controllers/dashboard.js +++ b/app/scripts/controllers/dashboard.js @@ -1,3 +1,31 @@ +/** + * ---------------------------------------------------------------------------- + * LICENSE + * + * This file is part of Flyve MDM Web Dashboard. + * + * Flyve MDM Web Dashboard is a subproject of Flyve MDM. Flyve MDM is a mobile + * device management software. + * + * Flyve MDM Web Dashboard 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. + * + * Flyve MDM Web Dashboard 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 Affero General Public License for more details. + * ----------------------------------------------------------------------------- + * @author Alexander Salas - asalas@teclib.com + * @copyright Copyright (c) 2017 Flyve MDM + * @license AGPLv3 https://www.gnu.org/licenses/agpl-3.0.html + * @link https://github.com/flyve-mdm/legacy-web-dashboard/ + * @link http://www.glpi-project.org/ + * @link https://flyve-mdm.com/ + * ----------------------------------------------------------------------------- + */ + 'use strict'; /** * @ngdoc function diff --git a/app/scripts/controllers/device.js b/app/scripts/controllers/device.js index 03825b3..2eef02b 100644 --- a/app/scripts/controllers/device.js +++ b/app/scripts/controllers/device.js @@ -1,3 +1,31 @@ +/** + * ---------------------------------------------------------------------------- + * LICENSE + * + * This file is part of Flyve MDM Web Dashboard. + * + * Flyve MDM Web Dashboard is a subproject of Flyve MDM. Flyve MDM is a mobile + * device management software. + * + * Flyve MDM Web Dashboard 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. + * + * Flyve MDM Web Dashboard 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 Affero General Public License for more details. + * ----------------------------------------------------------------------------- + * @author Alexander Salas - asalas@teclib.com + * @copyright Copyright (c) 2017 Flyve MDM + * @license AGPLv3 https://www.gnu.org/licenses/agpl-3.0.html + * @link https://github.com/flyve-mdm/legacy-web-dashboard/ + * @link http://www.glpi-project.org/ + * @link https://flyve-mdm.com/ + * ----------------------------------------------------------------------------- + */ + 'use strict'; /** * @ngdoc function @@ -109,6 +137,11 @@ angular.module('FlyveMDM') $scope.geolocationsLoading = false; }); }; + + /** + * Get the inventory of the device + * @param {*} toast + */ function getInventory(toast) { $scope.lock_inventory = false; InventoryFac.getComputer($scope.agent.computers_id).then(function (aComputer) { @@ -127,6 +160,10 @@ angular.module('FlyveMDM') $scope.no_inventory = true; }); } + + /** + * Get the inventory of the device when the user requests it + */ $scope.getInventoryFromDevice = function () { $scope.lock_inventory = true; var request = AgentFac.requestCurrentInventory($scope.agent.id); @@ -177,6 +214,10 @@ angular.module('FlyveMDM') $scope.displayedApplications = []; $scope.stCtrl.slice(0, $scope.stCtrl.tableState().pagination.number); }; + + /** + * Sends a ping to the device to check connectivity + */ $scope.sendPing = function () { $scope.pingSendingStatus = 'Ping sent as of ' + moment().format('dddd, MMMM Do YYYY, h:mm:ss a'); $scope.pingReplyStatus = ''; @@ -195,6 +236,10 @@ angular.module('FlyveMDM') }); Notifications.loading("Echo request", request.cancel); }; + + /** + * Save the changes made to the device + */ $scope.saveDevice = function () { $scope.lock_save_device = true; var aName = (device_name !== $scope.agent.name); @@ -238,6 +283,10 @@ angular.module('FlyveMDM') .targetEvent(ev) ); }; + + /** + * Erase the data storaged in the device + */ $scope.wipeDevice = function () { $mdDialog.show( $mdDialog.confirm() @@ -254,6 +303,10 @@ angular.module('FlyveMDM') }); }); }; + + /** + * Deletes the device from the dashboard + */ $scope.deleteDevice = function () { $mdDialog.show( $mdDialog.confirm() @@ -270,6 +323,10 @@ angular.module('FlyveMDM') }); }); }; + + /** + * Unenrolls the device from the Dashboard + */ $scope.unenrollDevice = function () { $mdDialog.show( $mdDialog.confirm() @@ -286,6 +343,10 @@ angular.module('FlyveMDM') }); }); }; + + /** + * Request the current Geolocation of the device + */ $scope.requestCurrentGeolocation = function () { $scope.lock_geolocation = true; var request = AgentFac.requestCurrentGeolocation($scope.agent.id); @@ -300,6 +361,11 @@ angular.module('FlyveMDM') }); Notifications.loading("Current geolocation in progress...", request.cancel); }; + + /** + * Display the map pages where the device was located + * @param n_page + */ $scope.displayGeolocationPage = function (n_page) { $scope.currentOpenedPage = n_page; n_page--; @@ -307,6 +373,11 @@ angular.module('FlyveMDM') var stop = start + nGeolocationsPerPage; getDeviceGeolocations(start, stop); }; + + /** + * Display the device in the map when selected an option + * @param aGeolocation + */ $scope.toggleSelectGeolocation = function (aGeolocation) { var foundIndex = false; if ((foundIndex = $scope.isSelectedGeolocation(aGeolocation)) === false) { diff --git a/app/scripts/controllers/devices.js b/app/scripts/controllers/devices.js index 90d5c51..2220cb9 100644 --- a/app/scripts/controllers/devices.js +++ b/app/scripts/controllers/devices.js @@ -1,3 +1,31 @@ +/** + * ---------------------------------------------------------------------------- + * LICENSE + * + * This file is part of Flyve MDM Web Dashboard. + * + * Flyve MDM Web Dashboard is a subproject of Flyve MDM. Flyve MDM is a mobile + * device management software. + * + * Flyve MDM Web Dashboard 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. + * + * Flyve MDM Web Dashboard 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 Affero General Public License for more details. + * ----------------------------------------------------------------------------- + * @author Alexander Salas - asalas@teclib.com + * @copyright Copyright (c) 2017 Flyve MDM + * @license AGPLv3 https://www.gnu.org/licenses/agpl-3.0.html + * @link https://github.com/flyve-mdm/legacy-web-dashboard/ + * @link http://www.glpi-project.org/ + * @link https://flyve-mdm.com/ + * ----------------------------------------------------------------------------- + */ + 'use strict'; /** * @ngdoc function diff --git a/app/scripts/controllers/files.js b/app/scripts/controllers/files.js index 2a2dc60..84e6bc9 100644 --- a/app/scripts/controllers/files.js +++ b/app/scripts/controllers/files.js @@ -1,3 +1,31 @@ +/** + * ---------------------------------------------------------------------------- + * LICENSE + * + * This file is part of Flyve MDM Web Dashboard. + * + * Flyve MDM Web Dashboard is a subproject of Flyve MDM. Flyve MDM is a mobile + * device management software. + * + * Flyve MDM Web Dashboard 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. + * + * Flyve MDM Web Dashboard 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 Affero General Public License for more details. + * ----------------------------------------------------------------------------- + * @author Alexander Salas - asalas@teclib.com + * @copyright Copyright (c) 2017 Flyve MDM + * @license AGPLv3 https://www.gnu.org/licenses/agpl-3.0.html + * @link https://github.com/flyve-mdm/legacy-web-dashboard/ + * @link http://www.glpi-project.org/ + * @link https://flyve-mdm.com/ + * ----------------------------------------------------------------------------- + */ + 'use strict'; /** * @ngdoc function diff --git a/app/scripts/controllers/fleets.js b/app/scripts/controllers/fleets.js index 0d95ff6..ecdbab6 100644 --- a/app/scripts/controllers/fleets.js +++ b/app/scripts/controllers/fleets.js @@ -1,3 +1,31 @@ +/** + * ---------------------------------------------------------------------------- + * LICENSE + * + * This file is part of Flyve MDM Web Dashboard. + * + * Flyve MDM Web Dashboard is a subproject of Flyve MDM. Flyve MDM is a mobile + * device management software. + * + * Flyve MDM Web Dashboard 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. + * + * Flyve MDM Web Dashboard 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 Affero General Public License for more details. + * ----------------------------------------------------------------------------- + * @author Alexander Salas - asalas@teclib.com + * @copyright Copyright (c) 2017 Flyve MDM + * @license AGPLv3 https://www.gnu.org/licenses/agpl-3.0.html + * @link https://github.com/flyve-mdm/legacy-web-dashboard/ + * @link http://www.glpi-project.org/ + * @link https://flyve-mdm.com/ + * ----------------------------------------------------------------------------- + */ + 'use strict'; /** * @ngdoc function diff --git a/app/scripts/controllers/invitationlogs.js b/app/scripts/controllers/invitationlogs.js index 27526eb..70450db 100644 --- a/app/scripts/controllers/invitationlogs.js +++ b/app/scripts/controllers/invitationlogs.js @@ -1,3 +1,31 @@ +/** + * ---------------------------------------------------------------------------- + * LICENSE + * + * This file is part of Flyve MDM Web Dashboard. + * + * Flyve MDM Web Dashboard is a subproject of Flyve MDM. Flyve MDM is a mobile + * device management software. + * + * Flyve MDM Web Dashboard 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. + * + * Flyve MDM Web Dashboard 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 Affero General Public License for more details. + * ----------------------------------------------------------------------------- + * @author Alexander Salas - asalas@teclib.com + * @copyright Copyright (c) 2017 Flyve MDM + * @license AGPLv3 https://www.gnu.org/licenses/agpl-3.0.html + * @link https://github.com/flyve-mdm/legacy-web-dashboard/ + * @link http://www.glpi-project.org/ + * @link https://flyve-mdm.com/ + * ----------------------------------------------------------------------------- + */ + 'use strict'; /** * @ngdoc function diff --git a/app/scripts/controllers/invitations.js b/app/scripts/controllers/invitations.js index 75bde5c..e8f5264 100644 --- a/app/scripts/controllers/invitations.js +++ b/app/scripts/controllers/invitations.js @@ -1,3 +1,31 @@ +/** + * ---------------------------------------------------------------------------- + * LICENSE + * + * This file is part of Flyve MDM Web Dashboard. + * + * Flyve MDM Web Dashboard is a subproject of Flyve MDM. Flyve MDM is a mobile + * device management software. + * + * Flyve MDM Web Dashboard 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. + * + * Flyve MDM Web Dashboard 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 Affero General Public License for more details. + * ----------------------------------------------------------------------------- + * @author Alexander Salas - asalas@teclib.com + * @copyright Copyright (c) 2017 Flyve MDM + * @license AGPLv3 https://www.gnu.org/licenses/agpl-3.0.html + * @link https://github.com/flyve-mdm/legacy-web-dashboard/ + * @link http://www.glpi-project.org/ + * @link https://flyve-mdm.com/ + * ----------------------------------------------------------------------------- + */ + 'use strict'; /** * @ngdoc function diff --git a/app/scripts/controllers/login.js b/app/scripts/controllers/login.js index 9fa5e4e..1150e1a 100644 --- a/app/scripts/controllers/login.js +++ b/app/scripts/controllers/login.js @@ -1,3 +1,31 @@ +/** + * ---------------------------------------------------------------------------- + * LICENSE + * + * This file is part of Flyve MDM Web Dashboard. + * + * Flyve MDM Web Dashboard is a subproject of Flyve MDM. Flyve MDM is a mobile + * device management software. + * + * Flyve MDM Web Dashboard 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. + * + * Flyve MDM Web Dashboard 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 Affero General Public License for more details. + * ----------------------------------------------------------------------------- + * @author Alexander Salas - asalas@teclib.com + * @copyright Copyright (c) 2017 Flyve MDM + * @license AGPLv3 https://www.gnu.org/licenses/agpl-3.0.html + * @link https://github.com/flyve-mdm/legacy-web-dashboard/ + * @link http://www.glpi-project.org/ + * @link https://flyve-mdm.com/ + * ----------------------------------------------------------------------------- + */ + 'use strict'; /** * @ngdoc function diff --git a/app/scripts/controllers/navbar.js b/app/scripts/controllers/navbar.js index 0a29abc..7df25bb 100644 --- a/app/scripts/controllers/navbar.js +++ b/app/scripts/controllers/navbar.js @@ -1,3 +1,31 @@ +/** + * ---------------------------------------------------------------------------- + * LICENSE + * + * This file is part of Flyve MDM Web Dashboard. + * + * Flyve MDM Web Dashboard is a subproject of Flyve MDM. Flyve MDM is a mobile + * device management software. + * + * Flyve MDM Web Dashboard 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. + * + * Flyve MDM Web Dashboard 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 Affero General Public License for more details. + * ----------------------------------------------------------------------------- + * @author Alexander Salas - asalas@teclib.com + * @copyright Copyright (c) 2017 Flyve MDM + * @license AGPLv3 https://www.gnu.org/licenses/agpl-3.0.html + * @link https://github.com/flyve-mdm/legacy-web-dashboard/ + * @link http://www.glpi-project.org/ + * @link https://flyve-mdm.com/ + * ----------------------------------------------------------------------------- + */ + 'use strict'; /** * @ngdoc function diff --git a/app/scripts/controllers/userpreferences.js b/app/scripts/controllers/userpreferences.js index 196f6cd..90fd68a 100644 --- a/app/scripts/controllers/userpreferences.js +++ b/app/scripts/controllers/userpreferences.js @@ -1,3 +1,31 @@ +/** + * ---------------------------------------------------------------------------- + * LICENSE + * + * This file is part of Flyve MDM Web Dashboard. + * + * Flyve MDM Web Dashboard is a subproject of Flyve MDM. Flyve MDM is a mobile + * device management software. + * + * Flyve MDM Web Dashboard 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. + * + * Flyve MDM Web Dashboard 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 Affero General Public License for more details. + * ----------------------------------------------------------------------------- + * @author Alexander Salas - asalas@teclib.com + * @copyright Copyright (c) 2017 Flyve MDM + * @license AGPLv3 https://www.gnu.org/licenses/agpl-3.0.html + * @link https://github.com/flyve-mdm/legacy-web-dashboard/ + * @link http://www.glpi-project.org/ + * @link https://flyve-mdm.com/ + * ----------------------------------------------------------------------------- + */ + 'use strict'; /** diff --git a/app/scripts/controllers/users.js b/app/scripts/controllers/users.js index 8f83499..04a0e7f 100644 --- a/app/scripts/controllers/users.js +++ b/app/scripts/controllers/users.js @@ -1,3 +1,31 @@ +/** + * ---------------------------------------------------------------------------- + * LICENSE + * + * This file is part of Flyve MDM Web Dashboard. + * + * Flyve MDM Web Dashboard is a subproject of Flyve MDM. Flyve MDM is a mobile + * device management software. + * + * Flyve MDM Web Dashboard 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. + * + * Flyve MDM Web Dashboard 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 Affero General Public License for more details. + * ----------------------------------------------------------------------------- + * @author Alexander Salas - asalas@teclib.com + * @copyright Copyright (c) 2017 Flyve MDM + * @license AGPLv3 https://www.gnu.org/licenses/agpl-3.0.html + * @link https://github.com/flyve-mdm/legacy-web-dashboard/ + * @link http://www.glpi-project.org/ + * @link https://flyve-mdm.com/ + * ----------------------------------------------------------------------------- + */ + 'use strict'; /** * @ngdoc function diff --git a/app/scripts/directives/browse-file-button.js b/app/scripts/directives/browse-file-button.js index 8d50f0c..95de6ae 100644 --- a/app/scripts/directives/browse-file-button.js +++ b/app/scripts/directives/browse-file-button.js @@ -1,3 +1,31 @@ +/** + * ---------------------------------------------------------------------------- + * LICENSE + * + * This file is part of Flyve MDM Web Dashboard. + * + * Flyve MDM Web Dashboard is a subproject of Flyve MDM. Flyve MDM is a mobile + * device management software. + * + * Flyve MDM Web Dashboard 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. + * + * Flyve MDM Web Dashboard 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 Affero General Public License for more details. + * ----------------------------------------------------------------------------- + * @author Alexander Salas - asalas@teclib.com + * @copyright Copyright (c) 2017 Flyve MDM + * @license AGPLv3 https://www.gnu.org/licenses/agpl-3.0.html + * @link https://github.com/flyve-mdm/legacy-web-dashboard/ + * @link http://www.glpi-project.org/ + * @link https://flyve-mdm.com/ + * ----------------------------------------------------------------------------- + */ + 'use strict'; /** * @ngdoc directive @@ -10,8 +38,8 @@ angular.module('FlyveMDM') return { restrict: 'E', template: 'Upload File ' + - '' + - '
{{model.name}}
', + '' + + '
{{model.name}}
', link: function postLink(scope, element) { var trigger = element.find('.browse-button'); var realBrowseButton = element.find('.browse-button-real'); diff --git a/app/scripts/directives/editabletd.js b/app/scripts/directives/editabletd.js index 779584a..469ad8d 100644 --- a/app/scripts/directives/editabletd.js +++ b/app/scripts/directives/editabletd.js @@ -1,3 +1,31 @@ +/** + * ---------------------------------------------------------------------------- + * LICENSE + * + * This file is part of Flyve MDM Web Dashboard. + * + * Flyve MDM Web Dashboard is a subproject of Flyve MDM. Flyve MDM is a mobile + * device management software. + * + * Flyve MDM Web Dashboard 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. + * + * Flyve MDM Web Dashboard 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 Affero General Public License for more details. + * ----------------------------------------------------------------------------- + * @author Alexander Salas - asalas@teclib.com + * @copyright Copyright (c) 2017 Flyve MDM + * @license AGPLv3 https://www.gnu.org/licenses/agpl-3.0.html + * @link https://github.com/flyve-mdm/legacy-web-dashboard/ + * @link http://www.glpi-project.org/ + * @link https://flyve-mdm.com/ + * ----------------------------------------------------------------------------- + */ + 'use strict'; /** * @ngdoc directive @@ -10,7 +38,7 @@ angular.module('FlyveMDM') return { restrict: 'A', template: '{{value}}' + - '
', + '
', link: function postLink(scope, element, attrs, ctrl) { var input = element.find('input'); // initializing initial value diff --git a/app/scripts/directives/facarets.js b/app/scripts/directives/facarets.js index 2a8af17..90b2373 100644 --- a/app/scripts/directives/facarets.js +++ b/app/scripts/directives/facarets.js @@ -1,3 +1,31 @@ +/** + * ---------------------------------------------------------------------------- + * LICENSE + * + * This file is part of Flyve MDM Web Dashboard. + * + * Flyve MDM Web Dashboard is a subproject of Flyve MDM. Flyve MDM is a mobile + * device management software. + * + * Flyve MDM Web Dashboard 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. + * + * Flyve MDM Web Dashboard 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 Affero General Public License for more details. + * ----------------------------------------------------------------------------- + * @author Alexander Salas - asalas@teclib.com + * @copyright Copyright (c) 2017 Flyve MDM + * @license AGPLv3 https://www.gnu.org/licenses/agpl-3.0.html + * @link https://github.com/flyve-mdm/legacy-web-dashboard/ + * @link http://www.glpi-project.org/ + * @link https://flyve-mdm.com/ + * ----------------------------------------------------------------------------- + */ + 'use strict'; /** * @ngdoc directive diff --git a/app/scripts/directives/hasripple.js b/app/scripts/directives/hasripple.js index 8a7d50b..ab6eb4e 100644 --- a/app/scripts/directives/hasripple.js +++ b/app/scripts/directives/hasripple.js @@ -1,3 +1,31 @@ +/** + * ---------------------------------------------------------------------------- + * LICENSE + * + * This file is part of Flyve MDM Web Dashboard. + * + * Flyve MDM Web Dashboard is a subproject of Flyve MDM. Flyve MDM is a mobile + * device management software. + * + * Flyve MDM Web Dashboard 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. + * + * Flyve MDM Web Dashboard 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 Affero General Public License for more details. + * ----------------------------------------------------------------------------- + * @author Alexander Salas - asalas@teclib.com + * @copyright Copyright (c) 2017 Flyve MDM + * @license AGPLv3 https://www.gnu.org/licenses/agpl-3.0.html + * @link https://github.com/flyve-mdm/legacy-web-dashboard/ + * @link http://www.glpi-project.org/ + * @link https://flyve-mdm.com/ + * ----------------------------------------------------------------------------- + */ + 'use strict'; /** * @ngdoc directive diff --git a/app/scripts/directives/loggedusermenu.js b/app/scripts/directives/loggedusermenu.js index 21b1379..cccd36f 100644 --- a/app/scripts/directives/loggedusermenu.js +++ b/app/scripts/directives/loggedusermenu.js @@ -1,3 +1,31 @@ +/** + * ---------------------------------------------------------------------------- + * LICENSE + * + * This file is part of Flyve MDM Web Dashboard. + * + * Flyve MDM Web Dashboard is a subproject of Flyve MDM. Flyve MDM is a mobile + * device management software. + * + * Flyve MDM Web Dashboard 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. + * + * Flyve MDM Web Dashboard 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 Affero General Public License for more details. + * ----------------------------------------------------------------------------- + * @author Alexander Salas - asalas@teclib.com + * @copyright Copyright (c) 2017 Flyve MDM + * @license AGPLv3 https://www.gnu.org/licenses/agpl-3.0.html + * @link https://github.com/flyve-mdm/legacy-web-dashboard/ + * @link http://www.glpi-project.org/ + * @link https://flyve-mdm.com/ + * ----------------------------------------------------------------------------- + */ + 'use strict'; /** * @ngdoc directive diff --git a/app/scripts/directives/stpaginationscroll.js b/app/scripts/directives/stpaginationscroll.js index edbb28f..dc36b83 100644 --- a/app/scripts/directives/stpaginationscroll.js +++ b/app/scripts/directives/stpaginationscroll.js @@ -1,3 +1,31 @@ +/** + * ---------------------------------------------------------------------------- + * LICENSE + * + * This file is part of Flyve MDM Web Dashboard. + * + * Flyve MDM Web Dashboard is a subproject of Flyve MDM. Flyve MDM is a mobile + * device management software. + * + * Flyve MDM Web Dashboard 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. + * + * Flyve MDM Web Dashboard 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 Affero General Public License for more details. + * ----------------------------------------------------------------------------- + * @author Alexander Salas - asalas@teclib.com + * @copyright Copyright (c) 2017 Flyve MDM + * @license AGPLv3 https://www.gnu.org/licenses/agpl-3.0.html + * @link https://github.com/flyve-mdm/legacy-web-dashboard/ + * @link http://www.glpi-project.org/ + * @link https://flyve-mdm.com/ + * ----------------------------------------------------------------------------- + */ + 'use strict'; /** * @ngdoc directive diff --git a/app/scripts/services/account.js b/app/scripts/services/account.js index 855f7be..533085e 100644 --- a/app/scripts/services/account.js +++ b/app/scripts/services/account.js @@ -1,3 +1,31 @@ +/** + * ---------------------------------------------------------------------------- + * LICENSE + * + * This file is part of Flyve MDM Web Dashboard. + * + * Flyve MDM Web Dashboard is a subproject of Flyve MDM. Flyve MDM is a mobile + * device management software. + * + * Flyve MDM Web Dashboard 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. + * + * Flyve MDM Web Dashboard 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 Affero General Public License for more details. + * ----------------------------------------------------------------------------- + * @author Alexander Salas - asalas@teclib.com + * @copyright Copyright (c) 2017 Flyve MDM + * @license AGPLv3 https://www.gnu.org/licenses/agpl-3.0.html + * @link https://github.com/flyve-mdm/legacy-web-dashboard/ + * @link http://www.glpi-project.org/ + * @link https://flyve-mdm.com/ + * ----------------------------------------------------------------------------- + */ + 'use strict'; /** diff --git a/app/scripts/services/agent.js b/app/scripts/services/agent.js index 88e1f46..687b957 100644 --- a/app/scripts/services/agent.js +++ b/app/scripts/services/agent.js @@ -1,3 +1,31 @@ +/** + * ---------------------------------------------------------------------------- + * LICENSE + * + * This file is part of Flyve MDM Web Dashboard. + * + * Flyve MDM Web Dashboard is a subproject of Flyve MDM. Flyve MDM is a mobile + * device management software. + * + * Flyve MDM Web Dashboard 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. + * + * Flyve MDM Web Dashboard 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 Affero General Public License for more details. + * ----------------------------------------------------------------------------- + * @author Alexander Salas - asalas@teclib.com + * @copyright Copyright (c) 2017 Flyve MDM + * @license AGPLv3 https://www.gnu.org/licenses/agpl-3.0.html + * @link https://github.com/flyve-mdm/legacy-web-dashboard/ + * @link http://www.glpi-project.org/ + * @link https://flyve-mdm.com/ + * ----------------------------------------------------------------------------- + */ + 'use strict'; /** @@ -12,6 +40,10 @@ angular.module('FlyveMDM') // Service logic // Public API here return { + /** + * Get the device + * @param aDeviceId the id of the device + */ getDevice: function (aDeviceId) { var agentDefer = $q.defer(); $http({ @@ -62,6 +94,11 @@ angular.module('FlyveMDM') }); return deferred.promise; }, + + /** + * Sends a ping to the device to check connectivity + * @param aDeviceId the id of the device + */ sendPing: function (aDeviceId) { var canceller = $q.defer(); var cancel = function (reason) { @@ -82,6 +119,10 @@ angular.module('FlyveMDM') cancel: cancel }; }, + /** + * Request the current geolocation of the device + * @param aDeviceId the id of the device + */ requestCurrentGeolocation: function (aDeviceId) { var canceller = $q.defer(); var cancel = function (reason) { @@ -102,6 +143,11 @@ angular.module('FlyveMDM') cancel: cancel }; }, + + /** + * Request the current inventory of the device + * @param aDeviceId the id of the device + */ requestCurrentInventory: function (aDeviceId) { var canceller = $q.defer(); var cancel = function (reason) { @@ -122,6 +168,13 @@ angular.module('FlyveMDM') cancel: cancel }; }, + + /** + * Update the device information + * @param aDeviceId the id of the device + * @param aName the name given to the device + * @param aFleetId the id of the fleet assigned + */ updateDevice: function (aDeviceId, aName, aFleetId) { var canceller = $q.defer(); var cancel = function (reason) { @@ -149,6 +202,11 @@ angular.module('FlyveMDM') cancel: cancel }; }, + + /** + * Erase the data storaged in the device + * @param aDeviceId the id of the device + */ wipeDevice: function (aDeviceId) { var canceller = $q.defer(); var cancel = function (reason) { @@ -169,6 +227,11 @@ angular.module('FlyveMDM') cancel: cancel }; }, + + /** + * Delete the device + * @param aDeviceId the id of the device + */ deleteDevice: function (aDeviceId) { var canceller = $q.defer(); var cancel = function (reason) { @@ -183,6 +246,11 @@ angular.module('FlyveMDM') cancel: cancel }; }, + + /** + * Unenrolls the device + * @param aDeviceId the id of the device + */ unenrollDevice: function (aDeviceId) { var canceller = $q.defer(); var cancel = function (reason) { diff --git a/app/scripts/services/applications.js b/app/scripts/services/applications.js index f14e2db..d4c7e02 100644 --- a/app/scripts/services/applications.js +++ b/app/scripts/services/applications.js @@ -1,3 +1,31 @@ +/** + * ---------------------------------------------------------------------------- + * LICENSE + * + * This file is part of Flyve MDM Web Dashboard. + * + * Flyve MDM Web Dashboard is a subproject of Flyve MDM. Flyve MDM is a mobile + * device management software. + * + * Flyve MDM Web Dashboard 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. + * + * Flyve MDM Web Dashboard 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 Affero General Public License for more details. + * ----------------------------------------------------------------------------- + * @author Alexander Salas - asalas@teclib.com + * @copyright Copyright (c) 2017 Flyve MDM + * @license AGPLv3 https://www.gnu.org/licenses/agpl-3.0.html + * @link https://github.com/flyve-mdm/legacy-web-dashboard/ + * @link http://www.glpi-project.org/ + * @link https://flyve-mdm.com/ + * ----------------------------------------------------------------------------- + */ + 'use strict'; /** @@ -21,6 +49,10 @@ angular.module('FlyveMDM') } // Public API here return { + /** + * Get a specific application + * @param anApplicationId the id of the application + */ getApplication: function (anApplicationId) { var getApplicationDefer = $q.defer(); $http({ @@ -36,6 +68,10 @@ angular.module('FlyveMDM') }); return getApplicationDefer.promise; }, + + /** + * Get all the applications + */ getApplications: function () { var getApplicationsDefer = $q.defer(); $http({ @@ -60,6 +96,12 @@ angular.module('FlyveMDM') }); return getApplicationsDefer.promise; }, + + /** + * Updates the application + * @param anApplicationId the id of the application + * @param anApplicationAlias the alias of the application + */ updateApplication: function (anApplicationId, anApplicationAlias) { var updateApplicationDefer = $q.defer(); $http({ @@ -78,6 +120,11 @@ angular.module('FlyveMDM') }); return updateApplicationDefer.promise; }, + + /** + * Deletes the application + * @param anApplicationId the id of the applicatication + */ deleteApplication: function (anApplicationId) { var deleteApplicationDefer = $q.defer(); $http({ @@ -90,6 +137,12 @@ angular.module('FlyveMDM') }); return deleteApplicationDefer.promise; }, + + /** + * Upload the application + * @param aApplicationToUpload an application + * @param anApplicationAlias an alias for the application + */ uploadApplication: function (aApplicationToUpload, anApplicationAlias) { return Upload.upload({ url: GLPI_API_URL + PluginObjectNames.Application, diff --git a/app/scripts/services/auth.js b/app/scripts/services/auth.js index 3f9014e..0a11361 100644 --- a/app/scripts/services/auth.js +++ b/app/scripts/services/auth.js @@ -1,3 +1,31 @@ +/** + * ---------------------------------------------------------------------------- + * LICENSE + * + * This file is part of Flyve MDM Web Dashboard. + * + * Flyve MDM Web Dashboard is a subproject of Flyve MDM. Flyve MDM is a mobile + * device management software. + * + * Flyve MDM Web Dashboard 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. + * + * Flyve MDM Web Dashboard 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 Affero General Public License for more details. + * ----------------------------------------------------------------------------- + * @author Alexander Salas - asalas@teclib.com + * @copyright Copyright (c) 2017 Flyve MDM + * @license AGPLv3 https://www.gnu.org/licenses/agpl-3.0.html + * @link https://github.com/flyve-mdm/legacy-web-dashboard/ + * @link http://www.glpi-project.org/ + * @link https://flyve-mdm.com/ + * ----------------------------------------------------------------------------- + */ + 'use strict'; /** * @ngdoc service diff --git a/app/scripts/services/computers.js b/app/scripts/services/computers.js index d9307ec..e75220f 100644 --- a/app/scripts/services/computers.js +++ b/app/scripts/services/computers.js @@ -1,3 +1,31 @@ +/** + * ---------------------------------------------------------------------------- + * LICENSE + * + * This file is part of Flyve MDM Web Dashboard. + * + * Flyve MDM Web Dashboard is a subproject of Flyve MDM. Flyve MDM is a mobile + * device management software. + * + * Flyve MDM Web Dashboard 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. + * + * Flyve MDM Web Dashboard 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 Affero General Public License for more details. + * ----------------------------------------------------------------------------- + * @author Alexander Salas - asalas@teclib.com + * @copyright Copyright (c) 2017 Flyve MDM + * @license AGPLv3 https://www.gnu.org/licenses/agpl-3.0.html + * @link https://github.com/flyve-mdm/legacy-web-dashboard/ + * @link http://www.glpi-project.org/ + * @link https://flyve-mdm.com/ + * ----------------------------------------------------------------------------- + */ + 'use strict'; /** @@ -12,6 +40,9 @@ angular.module('FlyveMDM') // Service logic // Public API here return { + /** + * Get all the computers + */ getComputers: function () { var getUsersDefer = $q.defer(); $http({ diff --git a/app/scripts/services/dashboard.js b/app/scripts/services/dashboard.js index 4b4e857..87cd7db 100644 --- a/app/scripts/services/dashboard.js +++ b/app/scripts/services/dashboard.js @@ -1,3 +1,31 @@ +/** + * ---------------------------------------------------------------------------- + * LICENSE + * + * This file is part of Flyve MDM Web Dashboard. + * + * Flyve MDM Web Dashboard is a subproject of Flyve MDM. Flyve MDM is a mobile + * device management software. + * + * Flyve MDM Web Dashboard 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. + * + * Flyve MDM Web Dashboard 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 Affero General Public License for more details. + * ----------------------------------------------------------------------------- + * @author Alexander Salas - asalas@teclib.com + * @copyright Copyright (c) 2017 Flyve MDM + * @license AGPLv3 https://www.gnu.org/licenses/agpl-3.0.html + * @link https://github.com/flyve-mdm/legacy-web-dashboard/ + * @link http://www.glpi-project.org/ + * @link https://flyve-mdm.com/ + * ----------------------------------------------------------------------------- + */ + 'use strict'; /** @@ -21,6 +49,10 @@ angular.module('FlyveMDM') } // Public API here return { + /** + * Get Android Versions to display the number of computers + * per Operating System version + */ getAndroidVersions: function () { var deferred = $q.defer(); $http({ @@ -64,6 +96,10 @@ angular.module('FlyveMDM') }); return deferred.promise; }, + /** + * Get the invitations information + * to display by 'Pending' and 'Done' + */ getInvitations: function () { var deferred = $q.defer(); var pending = { status: 'pending' }; @@ -98,6 +134,9 @@ angular.module('FlyveMDM') }); return deferred.promise; }, + /** + * Get the number of users registered + */ getNumberOfUsers: function () { var deferred = $q.defer(); $http({ @@ -118,6 +157,10 @@ angular.module('FlyveMDM') }); return deferred.promise; }, + + /** + * Get number of policies + */ getNumberOfPolicies: function () { var deferred = $q.defer(); $http({ @@ -138,6 +181,10 @@ angular.module('FlyveMDM') }); return deferred.promise; }, + + /** + * Get number of the categories of the policies + */ getNumberOfPolicyCategories: function () { var deferred = $q.defer(); $http({ @@ -158,6 +205,10 @@ angular.module('FlyveMDM') }); return deferred.promise; }, + + /** + * Get number of files for display + */ getNumberOfFiles: function () { var deferred = $q.defer(); $http({ @@ -178,6 +229,10 @@ angular.module('FlyveMDM') }); return deferred.promise; }, + + /** + * Get number of fleets for display + */ getNumberOfFleets: function () { var deferred = $q.defer(); $http({ @@ -198,6 +253,10 @@ angular.module('FlyveMDM') }); return deferred.promise; }, + + /** + * Get number of applications for display + */ getNumberOfApplications: function () { var deferred = $q.defer(); $http({ @@ -218,6 +277,10 @@ angular.module('FlyveMDM') }); return deferred.promise; }, + + /** + * Get number of devices registered for display + */ getNumberOfDevices: function () { var deferred = $q.defer(); $http({ @@ -238,6 +301,10 @@ angular.module('FlyveMDM') }); return deferred.promise; }, + + /** + * Get Mac Address + */ getMacAddress: function () { var deferred = $q.defer(); $http({ @@ -275,6 +342,10 @@ angular.module('FlyveMDM') }); return deferred.promise; }, + + /** + * Get the devices by users + */ getDevicesByRealName: function () { var deferred = $q.defer(); var promises = { diff --git a/app/scripts/services/devices.js b/app/scripts/services/devices.js index c77e6fe..599546a 100644 --- a/app/scripts/services/devices.js +++ b/app/scripts/services/devices.js @@ -1,3 +1,31 @@ +/** + * ---------------------------------------------------------------------------- + * LICENSE + * + * This file is part of Flyve MDM Web Dashboard. + * + * Flyve MDM Web Dashboard is a subproject of Flyve MDM. Flyve MDM is a mobile + * device management software. + * + * Flyve MDM Web Dashboard 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. + * + * Flyve MDM Web Dashboard 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 Affero General Public License for more details. + * ----------------------------------------------------------------------------- + * @author Alexander Salas - asalas@teclib.com + * @copyright Copyright (c) 2017 Flyve MDM + * @license AGPLv3 https://www.gnu.org/licenses/agpl-3.0.html + * @link https://github.com/flyve-mdm/legacy-web-dashboard/ + * @link http://www.glpi-project.org/ + * @link https://flyve-mdm.com/ + * ----------------------------------------------------------------------------- + */ + 'use strict'; /** * @ngdoc service @@ -12,6 +40,9 @@ angular.module('FlyveMDM') // ... // Public API here return { + /** + * Get the data of the devices + */ getDevicesData: function () { //param range ToDo var promises = { getAgents: $http.get(GLPI_API_URL + PluginObjectNames.Agent), @@ -21,6 +52,11 @@ angular.module('FlyveMDM') }; return $q.all(promises); }, + + /** + * Deletes the device + * @param aDeviceId the Id of the device to delete + */ deleteDevice: function (aDeviceId) { var deferred = $q.defer(); $http({ diff --git a/app/scripts/services/engine.js b/app/scripts/services/engine.js index 67b57e5..5297834 100644 --- a/app/scripts/services/engine.js +++ b/app/scripts/services/engine.js @@ -1,3 +1,31 @@ +/** + * ---------------------------------------------------------------------------- + * LICENSE + * + * This file is part of Flyve MDM Web Dashboard. + * + * Flyve MDM Web Dashboard is a subproject of Flyve MDM. Flyve MDM is a mobile + * device management software. + * + * Flyve MDM Web Dashboard 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. + * + * Flyve MDM Web Dashboard 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 Affero General Public License for more details. + * ----------------------------------------------------------------------------- + * @author Alexander Salas - asalas@teclib.com + * @copyright Copyright (c) 2017 Flyve MDM + * @license AGPLv3 https://www.gnu.org/licenses/agpl-3.0.html + * @link https://github.com/flyve-mdm/legacy-web-dashboard/ + * @link http://www.glpi-project.org/ + * @link https://flyve-mdm.com/ + * ----------------------------------------------------------------------------- + */ + (function () { 'use strict'; var options = {}; diff --git a/app/scripts/services/entityconfig.js b/app/scripts/services/entityconfig.js index 297c535..edfb5a5 100644 --- a/app/scripts/services/entityconfig.js +++ b/app/scripts/services/entityconfig.js @@ -1,3 +1,31 @@ +/** + * ---------------------------------------------------------------------------- + * LICENSE + * + * This file is part of Flyve MDM Web Dashboard. + * + * Flyve MDM Web Dashboard is a subproject of Flyve MDM. Flyve MDM is a mobile + * device management software. + * + * Flyve MDM Web Dashboard 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. + * + * Flyve MDM Web Dashboard 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 Affero General Public License for more details. + * ----------------------------------------------------------------------------- + * @author Alexander Salas - asalas@teclib.com + * @copyright Copyright (c) 2017 Flyve MDM + * @license AGPLv3 https://www.gnu.org/licenses/agpl-3.0.html + * @link https://github.com/flyve-mdm/legacy-web-dashboard/ + * @link http://www.glpi-project.org/ + * @link https://flyve-mdm.com/ + * ----------------------------------------------------------------------------- + */ + 'use strict'; /** * @ngdoc service @@ -11,6 +39,12 @@ angular.module('FlyveMDM') // Service logic // Public API here return { + + /** + * Edit the configuration of an entity + * @param aEntityId the id of the entiy to be edited + * @param anInput the information edited + */ editConfiguration: function (aEntityId, anInput) { var deferred = $q.defer(); $http({ @@ -26,6 +60,11 @@ angular.module('FlyveMDM') }); return deferred.promise; }, + + /** + * Get the entity configuration + * @param aEntityId the id of the entity + */ getConfiguration: function (aEntityId) { var deferred = $q.defer(); $http({ @@ -38,6 +77,10 @@ angular.module('FlyveMDM') }); return deferred.promise; }, + + /** + * Get the entities + */ getConfigurations: function () { var deferred = $q.defer(); $http({ diff --git a/app/scripts/services/files.js b/app/scripts/services/files.js index 0e492a9..f6022d4 100644 --- a/app/scripts/services/files.js +++ b/app/scripts/services/files.js @@ -1,3 +1,31 @@ +/** + * ---------------------------------------------------------------------------- + * LICENSE + * + * This file is part of Flyve MDM Web Dashboard. + * + * Flyve MDM Web Dashboard is a subproject of Flyve MDM. Flyve MDM is a mobile + * device management software. + * + * Flyve MDM Web Dashboard 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. + * + * Flyve MDM Web Dashboard 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 Affero General Public License for more details. + * ----------------------------------------------------------------------------- + * @author Alexander Salas - asalas@teclib.com + * @copyright Copyright (c) 2017 Flyve MDM + * @license AGPLv3 https://www.gnu.org/licenses/agpl-3.0.html + * @link https://github.com/flyve-mdm/legacy-web-dashboard/ + * @link http://www.glpi-project.org/ + * @link https://flyve-mdm.com/ + * ----------------------------------------------------------------------------- + */ + 'use strict'; /** @@ -12,6 +40,11 @@ angular.module('FlyveMDM') // Service logic // Public API here return { + + /** + * Get a specific file + * @param aFileId the id of the file + */ getFile: function (aFileId) { var getFileDefer = $q.defer(); $http({ @@ -29,6 +62,10 @@ angular.module('FlyveMDM') }); return getFileDefer.promise; }, + + /** + * Get all the files + */ getFiles: function () { var getFilesDefer = $q.defer(); $http({ @@ -49,6 +86,12 @@ angular.module('FlyveMDM') }); return getFilesDefer.promise; }, + + /** + * Updates a file + * @param aFileId the id of the file + * @param aFileName the name of the file + */ updateFile: function (aFileId, aFileName) { var updateFileDefer = $q.defer(); $http({ @@ -67,6 +110,11 @@ angular.module('FlyveMDM') }); return updateFileDefer.promise; }, + + /** + * Deletes a file + * @param aFileId the id of the file to delete + */ deleteFile: function (aFileId) { var deleteFileDefer = $q.defer(); $http({ @@ -79,6 +127,11 @@ angular.module('FlyveMDM') }); return deleteFileDefer.promise; }, + + /** + * Uploads a file + * @param aFileToUpload the file to upload + */ uploadFile: function (aFileToUpload) { var uploadFileDefer = $q.defer(); Upload.upload({ diff --git a/app/scripts/services/fleets.js b/app/scripts/services/fleets.js index 68cbcea..fc3db8e 100644 --- a/app/scripts/services/fleets.js +++ b/app/scripts/services/fleets.js @@ -1,3 +1,31 @@ +/** + * ---------------------------------------------------------------------------- + * LICENSE + * + * This file is part of Flyve MDM Web Dashboard. + * + * Flyve MDM Web Dashboard is a subproject of Flyve MDM. Flyve MDM is a mobile + * device management software. + * + * Flyve MDM Web Dashboard 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. + * + * Flyve MDM Web Dashboard 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 Affero General Public License for more details. + * ----------------------------------------------------------------------------- + * @author Alexander Salas - asalas@teclib.com + * @copyright Copyright (c) 2017 Flyve MDM + * @license AGPLv3 https://www.gnu.org/licenses/agpl-3.0.html + * @link https://github.com/flyve-mdm/legacy-web-dashboard/ + * @link http://www.glpi-project.org/ + * @link https://flyve-mdm.com/ + * ----------------------------------------------------------------------------- + */ + 'use strict'; /** * @ngdoc service @@ -25,6 +53,12 @@ angular.module('FlyveMDM') }); return createPolicyDefer.promise; }, + + /** + * Updates the value of a policy + * @param aPolicyId the id of the policy to update + * @param aValue the new value of the policy + */ updatePolicy: function (aPolicyId, aValue) { var updatePolicyDefer = $q.defer(); $http({ @@ -43,6 +77,11 @@ angular.module('FlyveMDM') }); return updatePolicyDefer.promise; }, + + /** + * Deletes a policy from the fleet + * @param aPolicyId the policy to be deleted + */ deletePolicy: function (aPolicyId) { var deletePolicyDefer = $q.defer(); $http({ @@ -55,6 +94,10 @@ angular.module('FlyveMDM') }); return deletePolicyDefer.promise; }, + + /** + * Get the policies + */ getPolicies: function () { var getPoliciesDefer = $q.defer(); $http({ @@ -68,6 +111,12 @@ angular.module('FlyveMDM') }); return getPoliciesDefer.promise; }, + + /** + * Create the policies in the fleet + * @param policies the policies to be created + * @param fleetId the id of the fleet + */ createPolicies: function (policies, fleetId) { var promises = policies.map(function (aPolicy) { var deffered = $q.defer(); @@ -91,6 +140,11 @@ angular.module('FlyveMDM') }); return $q.all(promises); }, + + /** + * Delete the policies of the fleet + * @param policies the policies to be deleted + */ deletePolicies: function (policies) { var promises = policies.map(function (aPolicy) { var deffered = $q.defer(); @@ -106,6 +160,11 @@ angular.module('FlyveMDM') }); return $q.all(promises); }, + + /** + * Updates the policies in the fleet + * @param policies the policies to update + */ updatePolicies: function (policies) { var promises = policies.map(function (aPolicy) { var deffered = $q.defer(); @@ -128,6 +187,10 @@ angular.module('FlyveMDM') }); return $q.all(promises); }, + + /** + * Get all the fleets in the dashboard + */ getFleets: function () { var FleetsDefer = $q.defer(); if (fleets.length > 0) { @@ -148,6 +211,10 @@ angular.module('FlyveMDM') } return FleetsDefer.promise; }, + + /** + * Get the data of the fleet + */ getFleetsData: function () { //param range ToDo var config = { params: { @@ -165,6 +232,11 @@ angular.module('FlyveMDM') }; return $q.all(promises); }, + + /** + * Creates a new fleet + * @param anInput the information of the fleet + */ createFleet: function (anInput) { var createFleetDefer = $q.defer(); $http({ @@ -180,6 +252,12 @@ angular.module('FlyveMDM') }); return createFleetDefer.promise; }, + + /** + * Updates the fleet + * @param aPolicyId the id of the policy updated + * @param aValue the new value of the policy updated + */ updateFleet: function (aPolicyId, aValue) { var updateFleetDefer = $q.defer(); $http({ @@ -198,6 +276,11 @@ angular.module('FlyveMDM') }); return updateFleetDefer.promise; }, + + /** + * Deletes a fleet + * @param aFleetId the id of the fleet to be deleted + */ deleteFleet: function (aFleetId) { var deleteFleetDefer = $q.defer(); $http({ diff --git a/app/scripts/services/fullsession.js b/app/scripts/services/fullsession.js index 7e23290..48ae3e3 100644 --- a/app/scripts/services/fullsession.js +++ b/app/scripts/services/fullsession.js @@ -1,3 +1,31 @@ +/** + * ---------------------------------------------------------------------------- + * LICENSE + * + * This file is part of Flyve MDM Web Dashboard. + * + * Flyve MDM Web Dashboard is a subproject of Flyve MDM. Flyve MDM is a mobile + * device management software. + * + * Flyve MDM Web Dashboard 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. + * + * Flyve MDM Web Dashboard 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 Affero General Public License for more details. + * ----------------------------------------------------------------------------- + * @author Alexander Salas - asalas@teclib.com + * @copyright Copyright (c) 2017 Flyve MDM + * @license AGPLv3 https://www.gnu.org/licenses/agpl-3.0.html + * @link https://github.com/flyve-mdm/legacy-web-dashboard/ + * @link http://www.glpi-project.org/ + * @link https://flyve-mdm.com/ + * ----------------------------------------------------------------------------- + */ + 'use strict'; /** * @ngdoc service @@ -11,7 +39,7 @@ angular.module('FlyveMDM') return { getSession: function () { var promises = { - getFullSession: $http.get(GLPI_API_URL + GlpiObjectNames.FullSession) + getFullSession: $http.get(GLPI_API_URL + GlpiObjectNames.FullSession) }; return $q.all(promises); } diff --git a/app/scripts/services/geolocation.js b/app/scripts/services/geolocation.js index 588b83f..fe377fe 100644 --- a/app/scripts/services/geolocation.js +++ b/app/scripts/services/geolocation.js @@ -1,3 +1,31 @@ +/** + * ---------------------------------------------------------------------------- + * LICENSE + * + * This file is part of Flyve MDM Web Dashboard. + * + * Flyve MDM Web Dashboard is a subproject of Flyve MDM. Flyve MDM is a mobile + * device management software. + * + * Flyve MDM Web Dashboard 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. + * + * Flyve MDM Web Dashboard 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 Affero General Public License for more details. + * ----------------------------------------------------------------------------- + * @author Alexander Salas - asalas@teclib.com + * @copyright Copyright (c) 2017 Flyve MDM + * @license AGPLv3 https://www.gnu.org/licenses/agpl-3.0.html + * @link https://github.com/flyve-mdm/legacy-web-dashboard/ + * @link http://www.glpi-project.org/ + * @link https://flyve-mdm.com/ + * ----------------------------------------------------------------------------- + */ + 'use strict'; /** * @ngdoc service @@ -11,6 +39,11 @@ angular.module('FlyveMDM') // Service logic // Public API here return { + + /** + * Get the device geolocations + * provides search options like latitude and longitude and a datetime + */ getDeviceGeolocations: function (aComputerId, from, to) { // the searchOption IDs for geolocation var deviceGeolocationsDefer = $q.defer(); @@ -76,6 +109,11 @@ angular.module('FlyveMDM') }); return deviceGeolocationsDefer.promise; }, + + /** + * Request the current Geolocation of the device + * @param aDeviceId the id of the device + */ requestCurrentGeolocation: function (aDeviceId) { var currentGeolocationDefer = $q.defer(); $http({ diff --git a/app/scripts/services/glosaryobjectnames.js b/app/scripts/services/glosaryobjectnames.js index 081faf9..92cb429 100644 --- a/app/scripts/services/glosaryobjectnames.js +++ b/app/scripts/services/glosaryobjectnames.js @@ -1,3 +1,31 @@ +/** + * ---------------------------------------------------------------------------- + * LICENSE + * + * This file is part of Flyve MDM Web Dashboard. + * + * Flyve MDM Web Dashboard is a subproject of Flyve MDM. Flyve MDM is a mobile + * device management software. + * + * Flyve MDM Web Dashboard 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. + * + * Flyve MDM Web Dashboard 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 Affero General Public License for more details. + * ----------------------------------------------------------------------------- + * @author Alexander Salas - asalas@teclib.com + * @copyright Copyright (c) 2017 Flyve MDM + * @license AGPLv3 https://www.gnu.org/licenses/agpl-3.0.html + * @link https://github.com/flyve-mdm/legacy-web-dashboard/ + * @link http://www.glpi-project.org/ + * @link https://flyve-mdm.com/ + * ----------------------------------------------------------------------------- + */ + 'use strict'; /** diff --git a/app/scripts/services/glpiobjectnames.js b/app/scripts/services/glpiobjectnames.js index 1313070..2a1c261 100644 --- a/app/scripts/services/glpiobjectnames.js +++ b/app/scripts/services/glpiobjectnames.js @@ -1,3 +1,31 @@ +/** + * ---------------------------------------------------------------------------- + * LICENSE + * + * This file is part of Flyve MDM Web Dashboard. + * + * Flyve MDM Web Dashboard is a subproject of Flyve MDM. Flyve MDM is a mobile + * device management software. + * + * Flyve MDM Web Dashboard 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. + * + * Flyve MDM Web Dashboard 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 Affero General Public License for more details. + * ----------------------------------------------------------------------------- + * @author Alexander Salas - asalas@teclib.com + * @copyright Copyright (c) 2017 Flyve MDM + * @license AGPLv3 https://www.gnu.org/licenses/agpl-3.0.html + * @link https://github.com/flyve-mdm/legacy-web-dashboard/ + * @link http://www.glpi-project.org/ + * @link https://flyve-mdm.com/ + * ----------------------------------------------------------------------------- + */ + 'use strict'; /** * @ngdoc service diff --git a/app/scripts/services/inventory.js b/app/scripts/services/inventory.js index 15fd7f5..7d76343 100644 --- a/app/scripts/services/inventory.js +++ b/app/scripts/services/inventory.js @@ -1,3 +1,31 @@ +/** + * ---------------------------------------------------------------------------- + * LICENSE + * + * This file is part of Flyve MDM Web Dashboard. + * + * Flyve MDM Web Dashboard is a subproject of Flyve MDM. Flyve MDM is a mobile + * device management software. + * + * Flyve MDM Web Dashboard 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. + * + * Flyve MDM Web Dashboard 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 Affero General Public License for more details. + * ----------------------------------------------------------------------------- + * @author Alexander Salas - asalas@teclib.com + * @copyright Copyright (c) 2017 Flyve MDM + * @license AGPLv3 https://www.gnu.org/licenses/agpl-3.0.html + * @link https://github.com/flyve-mdm/legacy-web-dashboard/ + * @link http://www.glpi-project.org/ + * @link https://flyve-mdm.com/ + * ----------------------------------------------------------------------------- + */ + 'use strict'; /** diff --git a/app/scripts/services/invitationlogs.js b/app/scripts/services/invitationlogs.js index 7f6adf3..434acbf 100644 --- a/app/scripts/services/invitationlogs.js +++ b/app/scripts/services/invitationlogs.js @@ -1,3 +1,31 @@ +/** + * ---------------------------------------------------------------------------- + * LICENSE + * + * This file is part of Flyve MDM Web Dashboard. + * + * Flyve MDM Web Dashboard is a subproject of Flyve MDM. Flyve MDM is a mobile + * device management software. + * + * Flyve MDM Web Dashboard 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. + * + * Flyve MDM Web Dashboard 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 Affero General Public License for more details. + * ----------------------------------------------------------------------------- + * @author Alexander Salas - asalas@teclib.com + * @copyright Copyright (c) 2017 Flyve MDM + * @license AGPLv3 https://www.gnu.org/licenses/agpl-3.0.html + * @link https://github.com/flyve-mdm/legacy-web-dashboard/ + * @link http://www.glpi-project.org/ + * @link https://flyve-mdm.com/ + * ----------------------------------------------------------------------------- + */ + 'use strict'; /** * @ngdoc service diff --git a/app/scripts/services/invitations.js b/app/scripts/services/invitations.js index b01a377..989fce3 100644 --- a/app/scripts/services/invitations.js +++ b/app/scripts/services/invitations.js @@ -1,3 +1,31 @@ +/** + * ---------------------------------------------------------------------------- + * LICENSE + * + * This file is part of Flyve MDM Web Dashboard. + * + * Flyve MDM Web Dashboard is a subproject of Flyve MDM. Flyve MDM is a mobile + * device management software. + * + * Flyve MDM Web Dashboard 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. + * + * Flyve MDM Web Dashboard 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 Affero General Public License for more details. + * ----------------------------------------------------------------------------- + * @author Alexander Salas - asalas@teclib.com + * @copyright Copyright (c) 2017 Flyve MDM + * @license AGPLv3 https://www.gnu.org/licenses/agpl-3.0.html + * @link https://github.com/flyve-mdm/legacy-web-dashboard/ + * @link http://www.glpi-project.org/ + * @link https://flyve-mdm.com/ + * ----------------------------------------------------------------------------- + */ + 'use strict'; /** * @ngdoc service @@ -11,6 +39,11 @@ angular.module('FlyveMDM') // Service logic // Public API here return { + + /** + * Sends an invitation to enroll a new device + * @param anUserEmail the email of the user whose device will be enrolled + */ enrollNewDevice: function (anUserEmail) { var deferred = $q.defer(); $http({ @@ -28,6 +61,12 @@ angular.module('FlyveMDM') }); return deferred.promise; }, + + /** + * Re - sends an invitation + * @param aDeviceId the id of the device + * @param anUserEmail the email of the user + */ resendInvitation: function (aDeviceId, anUserEmail) { var deferred = $q.defer(); $http({ @@ -45,6 +84,11 @@ angular.module('FlyveMDM') }); return deferred.promise; }, + + /** + * Deletes an invitation + * @param aDeviceId the id of the device + */ deleteInvitation: function (aDeviceId) { var deferred = $q.defer(); $http({ @@ -57,6 +101,10 @@ angular.module('FlyveMDM') }); return deferred.promise; }, + + /** + * Get the pending invitations + */ getInvitations: function () { var deferred = $q.defer(); $http({ @@ -79,6 +127,11 @@ angular.module('FlyveMDM') }; return $q.all(promises); }, + + /** + * Get a specific invitation + * @param invitationId the id of the invitation + */ getInvitation: function (invitationId) { var deferred = $q.defer(); $http({ diff --git a/app/scripts/services/navigation.js b/app/scripts/services/navigation.js index f928d3f..c626cf9 100644 --- a/app/scripts/services/navigation.js +++ b/app/scripts/services/navigation.js @@ -1,3 +1,31 @@ +/** + * ---------------------------------------------------------------------------- + * LICENSE + * + * This file is part of Flyve MDM Web Dashboard. + * + * Flyve MDM Web Dashboard is a subproject of Flyve MDM. Flyve MDM is a mobile + * device management software. + * + * Flyve MDM Web Dashboard 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. + * + * Flyve MDM Web Dashboard 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 Affero General Public License for more details. + * ----------------------------------------------------------------------------- + * @author Alexander Salas - asalas@teclib.com + * @copyright Copyright (c) 2017 Flyve MDM + * @license AGPLv3 https://www.gnu.org/licenses/agpl-3.0.html + * @link https://github.com/flyve-mdm/legacy-web-dashboard/ + * @link http://www.glpi-project.org/ + * @link https://flyve-mdm.com/ + * ----------------------------------------------------------------------------- + */ + 'use strict'; /** * @ngdoc service diff --git a/app/scripts/services/notifications.js b/app/scripts/services/notifications.js index 44e8e28..32d3740 100644 --- a/app/scripts/services/notifications.js +++ b/app/scripts/services/notifications.js @@ -1,3 +1,31 @@ +/** + * ---------------------------------------------------------------------------- + * LICENSE + * + * This file is part of Flyve MDM Web Dashboard. + * + * Flyve MDM Web Dashboard is a subproject of Flyve MDM. Flyve MDM is a mobile + * device management software. + * + * Flyve MDM Web Dashboard 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. + * + * Flyve MDM Web Dashboard 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 Affero General Public License for more details. + * ----------------------------------------------------------------------------- + * @author Alexander Salas - asalas@teclib.com + * @copyright Copyright (c) 2017 Flyve MDM + * @license AGPLv3 https://www.gnu.org/licenses/agpl-3.0.html + * @link https://github.com/flyve-mdm/legacy-web-dashboard/ + * @link http://www.glpi-project.org/ + * @link https://flyve-mdm.com/ + * ----------------------------------------------------------------------------- + */ + 'use strict'; /** diff --git a/app/scripts/services/pluginobjectnames.js b/app/scripts/services/pluginobjectnames.js index 3f6ddc5..1ecfb69 100644 --- a/app/scripts/services/pluginobjectnames.js +++ b/app/scripts/services/pluginobjectnames.js @@ -1,3 +1,31 @@ +/** + * ---------------------------------------------------------------------------- + * LICENSE + * + * This file is part of Flyve MDM Web Dashboard. + * + * Flyve MDM Web Dashboard is a subproject of Flyve MDM. Flyve MDM is a mobile + * device management software. + * + * Flyve MDM Web Dashboard 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. + * + * Flyve MDM Web Dashboard 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 Affero General Public License for more details. + * ----------------------------------------------------------------------------- + * @author Alexander Salas - asalas@teclib.com + * @copyright Copyright (c) 2017 Flyve MDM + * @license AGPLv3 https://www.gnu.org/licenses/agpl-3.0.html + * @link https://github.com/flyve-mdm/legacy-web-dashboard/ + * @link http://www.glpi-project.org/ + * @link https://flyve-mdm.com/ + * ----------------------------------------------------------------------------- + */ + 'use strict'; /** diff --git a/app/scripts/services/policies.js b/app/scripts/services/policies.js index 13c83b7..d83c1e6 100644 --- a/app/scripts/services/policies.js +++ b/app/scripts/services/policies.js @@ -1,3 +1,31 @@ +/** + * ---------------------------------------------------------------------------- + * LICENSE + * + * This file is part of Flyve MDM Web Dashboard. + * + * Flyve MDM Web Dashboard is a subproject of Flyve MDM. Flyve MDM is a mobile + * device management software. + * + * Flyve MDM Web Dashboard 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. + * + * Flyve MDM Web Dashboard 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 Affero General Public License for more details. + * ----------------------------------------------------------------------------- + * @author Alexander Salas - asalas@teclib.com + * @copyright Copyright (c) 2017 Flyve MDM + * @license AGPLv3 https://www.gnu.org/licenses/agpl-3.0.html + * @link https://github.com/flyve-mdm/legacy-web-dashboard/ + * @link http://www.glpi-project.org/ + * @link https://flyve-mdm.com/ + * ----------------------------------------------------------------------------- + */ + 'use strict'; /** diff --git a/app/scripts/services/software.js b/app/scripts/services/software.js index 21c6994..5333c6c 100644 --- a/app/scripts/services/software.js +++ b/app/scripts/services/software.js @@ -1,3 +1,31 @@ +/** + * ---------------------------------------------------------------------------- + * LICENSE + * + * This file is part of Flyve MDM Web Dashboard. + * + * Flyve MDM Web Dashboard is a subproject of Flyve MDM. Flyve MDM is a mobile + * device management software. + * + * Flyve MDM Web Dashboard 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. + * + * Flyve MDM Web Dashboard 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 Affero General Public License for more details. + * ----------------------------------------------------------------------------- + * @author Alexander Salas - asalas@teclib.com + * @copyright Copyright (c) 2017 Flyve MDM + * @license AGPLv3 https://www.gnu.org/licenses/agpl-3.0.html + * @link https://github.com/flyve-mdm/legacy-web-dashboard/ + * @link http://www.glpi-project.org/ + * @link https://flyve-mdm.com/ + * ----------------------------------------------------------------------------- + */ + 'use strict'; /** diff --git a/app/scripts/services/userpreferences.js b/app/scripts/services/userpreferences.js index 4539881..19d1137 100644 --- a/app/scripts/services/userpreferences.js +++ b/app/scripts/services/userpreferences.js @@ -1,3 +1,31 @@ +/** + * ---------------------------------------------------------------------------- + * LICENSE + * + * This file is part of Flyve MDM Web Dashboard. + * + * Flyve MDM Web Dashboard is a subproject of Flyve MDM. Flyve MDM is a mobile + * device management software. + * + * Flyve MDM Web Dashboard 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. + * + * Flyve MDM Web Dashboard 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 Affero General Public License for more details. + * ----------------------------------------------------------------------------- + * @author Alexander Salas - asalas@teclib.com + * @copyright Copyright (c) 2017 Flyve MDM + * @license AGPLv3 https://www.gnu.org/licenses/agpl-3.0.html + * @link https://github.com/flyve-mdm/legacy-web-dashboard/ + * @link http://www.glpi-project.org/ + * @link https://flyve-mdm.com/ + * ----------------------------------------------------------------------------- + */ + 'use strict'; /** * @ngdoc service @@ -22,6 +50,12 @@ angular.module('FlyveMDM') }); return deffered.promise; }, + + /** + * Change language of the dashboard + * @param aUserId the id of the user + * @param aCode the new language + */ changeLanguage: function (aUserId, aCode) { var deffered = $q.defer(); $http.put( @@ -34,6 +68,11 @@ angular.module('FlyveMDM') }); return deffered.promise; }, + + /** + * Update the user information + * @param anInput the new information + */ updateUserInformation: function (anInput) { var deffered = $q.defer(); var user = { @@ -55,6 +94,11 @@ angular.module('FlyveMDM') }); return deffered.promise; }, + + /** + * Get the user information + * @param aUserId the id of the user + */ getUserInformation: function (aUserId) { var deffered = $q.defer(); $http({ @@ -82,6 +126,10 @@ angular.module('FlyveMDM') }); return deffered.promise; }, + + /** + * Get the Version of the plugin + */ getPluginVersion: function () { var deffered = $q.defer(); $http({ @@ -100,6 +148,10 @@ angular.module('FlyveMDM') }); return deffered.promise; }, + + /** + * Get the version of GLPI + */ getGLPiVersion: function () { var deffered = $q.defer(); $http({ @@ -118,6 +170,10 @@ angular.module('FlyveMDM') }); return deffered.promise; }, + + /** + * Get the list of the plugins + */ getPluginList: function () { var deffered = $q.defer(); $http({ diff --git a/app/scripts/services/users.js b/app/scripts/services/users.js index 3d794a2..642d4ac 100644 --- a/app/scripts/services/users.js +++ b/app/scripts/services/users.js @@ -1,3 +1,31 @@ +/** + * ---------------------------------------------------------------------------- + * LICENSE + * + * This file is part of Flyve MDM Web Dashboard. + * + * Flyve MDM Web Dashboard is a subproject of Flyve MDM. Flyve MDM is a mobile + * device management software. + * + * Flyve MDM Web Dashboard 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. + * + * Flyve MDM Web Dashboard 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 Affero General Public License for more details. + * ----------------------------------------------------------------------------- + * @author Alexander Salas - asalas@teclib.com + * @copyright Copyright (c) 2017 Flyve MDM + * @license AGPLv3 https://www.gnu.org/licenses/agpl-3.0.html + * @link https://github.com/flyve-mdm/legacy-web-dashboard/ + * @link http://www.glpi-project.org/ + * @link https://flyve-mdm.com/ + * ----------------------------------------------------------------------------- + */ + 'use strict'; /** @@ -14,6 +42,11 @@ angular.module('FlyveMDM') var current_entity = false; // Public API here return { + + /** + * Get a specific user + * @param aUserId the id of the user + */ getUser: function (aUserId) { var getUserDefer = $q.defer(); $http({ @@ -31,6 +64,10 @@ angular.module('FlyveMDM') }); return getUserDefer.promise; }, + + /** + * Get all the users + */ getUsers: function () { var getUsersDefer = $q.defer(); $http({ @@ -63,6 +100,11 @@ angular.module('FlyveMDM') }); return getUsersDefer.promise; }, + + /** + * Update user information + * @param aUser the user to update + */ updateUser: function (aUser) { var preRequestDefer = $q.defer(); var updateUserDefer = $q.defer(); @@ -124,6 +166,11 @@ angular.module('FlyveMDM') }); return updateUserDefer.promise; }, + + /** + * Deletes the user from the dashboard + * @param aUserId the user ID + */ deleteUser: function (aUserId) { var deleteUserDefer = $q.defer(); $http({ @@ -154,6 +201,11 @@ angular.module('FlyveMDM') }); return deleteUserDefer.promise; }, + + /** + * Register a new user from the dashboard + * @param profileInfos the information of the profile + */ attemptRegister: function (profileInfos) { var activeProfileDefer = $q.defer(); var createUserDefer = $q.defer(); diff --git a/app/views/about.html b/app/views/about.html index f569654..32d49e8 100644 --- a/app/views/about.html +++ b/app/views/about.html @@ -5,7 +5,9 @@

-

About

+

+ About +