PageSourceSearch

https://camerdata.es/js/admin/adminIpController.js?version=2.2

js camerdata.es collected 2026-10-02 10:42:33 UTC 2,508 bytes, 101 lines download raw bytes

1(function(){
2
3var app = angular.module('camerdata');
4
5  app.controller('adminIpController', function($scope, comunications, StorageService, $location, sharedProperties, $state, $document, $translate, $timeout) {
6
7    $scope.loadFinish = false;
8
9    $scope.init = function(){
10
11        comunications.getIpConfig().then(function(response){
12        
13                
14               $scope.duration = response.data.data.duration;
15               $scope.intents = response.data.data.intents;
16
17
18        });
19
20        comunications.getBlockedIps().then(function(response){     
21               $scope.ips = response.data.data;
22               $scope.loadFinish = true;
23         });
24
25
26        
27    }
28
29    $scope.updatePack = function(pack){
30
31        comunications.updatePackPriceAdmin(pack.id, pack.price ).then(function(response){
32            //Ok
33            alert("Modificado correctamente!");
34
35        }, function(error){
36
37            alert("Ha ocurrido un error");
38        
39        });
40    }
41
42    $scope.unblockIp = function(ip){
43
44        comunications.deleteBlockedIp(ip.ip).then(function(response){
45            //Ok
46            $scope.ips = response.data.data;
47            alert("IP desbloqueada correctamente!");
48
49        }, function(error){
50
51            alert("Ha ocurrido un error");
52        
53        });
54    }
55
56    $scope.reBlockIp = function(ip){
57
58        comunications.reBlockIp(ip.ip).then(function(response){
59            //Ok
60            $scope.ips = response.data.data;
61            alert("IP bloqueada correctamente!");
62
63        }, function(error){
64
65            alert("Ha ocurrido un error");
66        
67        });
68    }
69
70    $scope.updatePropietario = function(ip){
71
72        comunications.updateIpPropietario(ip).then(function(response){
73            //Ok
74            $scope.ips = response.data.data;
75            alert("Propietario modificado correctamente");
76
77        }, function(error){
78
79            alert("Ha ocurrido un error");
80        
81        });
82    }
83
84    $scope.updateIpConfig = function(ip){
85
86        comunications.updateIpConfig($scope.duration, $scope.intents).then(function(response){
87            //Ok
88            alert("Parámetros modificados correctamente!")
89            $scope.duration = response.data.data.duration;
90            $scope.intents = response.data.data.intents;
91
92        }, function(error){
93
94            alert("Ha ocurrido un error");
95        
96        });
97    }
98
99  })
100
101})();

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.