1(function (angular) { 2 'use strict'; 3 4 angular 5 .module('bidtrack') 6 .factory('camerasResource', 7 [ 8 '$resource', 9 'appSettings', 10 'currentUserService', 11 function ($resource, appSettings, currentUserService) { 12 return $resource(appSettings.serverPath + '/api/cameras/:id', null, 13 { 14 'getCameraEnabledVehicles': { 15 method: 'GET', 16 url: appSettings.serverPath + 'api/cameras/getCameraEnabledVehicles', 17 headers: { 18 'Authorization': 'Bearer ' + currentUserService.getProfile().token 19 }, 20 isArray: true 21 }, 22 23 'getCameraEvents': { 24 method: 'GET', 25 url: appSettings.surfsightAPIUrl + 'api/Cameras/GetCameraEvents', 26 headers: { 27 'Authorization': 'Bearer ' + currentUserService.getProfile().token 28 } 29 }, 30 31 'getDeviceCameras': { 32 method: 'GET', 33 url: appSettings.surfsightAPIUrl + 'api/Cameras/GetDeviceCameras', 34 headers: { 35 'Authorization': 'Bearer ' + currentUserService.getProfile().token 36 } 37 }, 38 39 'getVehicleSnapshots': { 40 method: 'GET', 41 url: appSettings.surfsightAPIUrl + 'api/Cameras/GetVehicleSnapshots', 42 headers: { 43 'Authorization': 'Bearer ' + currentUserService.getProfile().token 44 }, 45 isArray: true 46 }, 47 48 'getEventFootageLinks': { 49 method: 'GET', 50 url: appSettings.surfsightAPIUrl + 'api/Cameras/GetEventFootage', 51 headers: { 52 'Authorization': 'Bearer ' + currentUserService.getProfile().token 53 } 54 }, 55 56 'getEventCoordinates': { 57 method: 'POST', 58 url: appSettings.surfsightAPIUrl + 'api/Cameras/GetEventCoordinates', 59 headers: { 60 'Authorization': 'Bearer ' + currentUserService.getProfile().token 61 }, 62 isArray: true 63 }, 64 65 'getRecordingRanges': { 66 method: 'GET', 67 url: appSettings.surfsightAPIUrl + 'api/Cameras/GetRecordings', 68 headers: { 69 'Authorization': 'Bearer ' + currentUserService.getProfile().token 70 } 71 }, 72 73 'getTripRanges': { 74 method: 'GET', 75 url: appSettings.surfsightAPIUrl + 'api/Cameras/GetTripRanges', 76 headers: { 77 'Authorization': 'Bearer ' + currentUserService.getProfile().token 78 }, 79 isArray: true 80 }, 81 82 'getMediaToken': { 83 method: 'GET', 84 url: appSettings.surfsightAPIUrl + 'api/Cameras/GetMediaToken', 85 headers: { 86 'Authorization': 'Bearer ' + currentUserService.getProfile().token 87 } 88 }, 89 90 'getSnapshotTriggers': { 91 method: 'GET', 92 url: appSettings.serverPath + 'api/cameras/GetSnapshotTriggers', 93 headers: { 94 'Authorization': 'Bearer ' + currentUserService.getProfile().token 95 } 96 }, 97 98 'getCameraAlertsConfig': { 99 method: 'GET', 100 url: appSettings.serverPath + 'api/cameras/GetCameraAlertsConfig', 101 headers: { 102 'Authorization': 'Bearer ' + currentUserService.getProfile().token 103 }, 104 isArray: true 105 }, 106 107 'updateCameraAlertsConfig': { 108 method: 'POST', 109 url: appSettings.serverPath + 'api/cameras/UpdateCameraAlertsConfig', 110 headers: { 111 'Authorization': 'Bearer ' + currentUserService.getProfile().token 112 } 113 }, 114 }); 115 } 116 ]); 117 118})(angular);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.