Atualli commited on
Commit
bce4323
1 Parent(s): 1ecb642

Upload 85 files

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. static/a-operation.css +707 -0
  2. static/a-operation.html +1664 -0
  3. static/accessdenied.png +0 -0
  4. static/alogo.PNG +0 -0
  5. static/anonymus.jpg +0 -0
  6. static/atualli.png +0 -0
  7. static/atualli_old.png +0 -0
  8. static/audioocorrencia.ogg +0 -0
  9. static/cam-log.png +0 -0
  10. static/caveira.png +0 -0
  11. static/celula.html +3 -0
  12. static/celulaestatica.html +3 -0
  13. static/csa.html +59 -0
  14. static/csaTemplate.html +2326 -0
  15. static/data/DLQBUG/419601.txt +1 -0
  16. static/data/DLQBUG/419656.txt +1 -0
  17. static/data/DLQBUG/419657.txt +1 -0
  18. static/data/DLQBUG/419659.txt +1 -0
  19. static/data/DLQBUG/419679.txt +1 -0
  20. static/data/DLQBUG/419693.txt +1 -0
  21. static/data/DLQBUG/419699.txt +1 -0
  22. static/data/cache/cameras.txt +0 -0
  23. static/data/cache/comando.txt +1 -0
  24. static/data/cache/feriados.txt +1 -0
  25. static/data/cache/mosaicoall.txt +1 -0
  26. static/data/cache/operacao.txt +1 -0
  27. static/data/cache/programacao.txt +0 -0
  28. static/data/cache/roteiro.txt +1 -0
  29. static/data/cache/tokengoogle.txt +1 -0
  30. static/data/dlq/16.txt +1 -0
  31. static/data/dlq/25.txt +1 -0
  32. static/data/dlq/419601.txt +1 -0
  33. static/data/dlq/419656.txt +1 -0
  34. static/data/dlq/419657.txt +1 -0
  35. static/data/dlq/419659.txt +1 -0
  36. static/data/dlq/419679.txt +1 -0
  37. static/data/dlq/419693.txt +1 -0
  38. static/data/dlq/419699.txt +1 -0
  39. static/data/dlq/419777.txt +1 -0
  40. static/data/dlq/419781.txt +1 -0
  41. static/data/dlq/419813.txt +1 -0
  42. static/data/dlq/55.txt +1 -0
  43. static/data/dlq/56.txt +1 -0
  44. static/data/dlq/57.txt +1 -0
  45. static/data/dlq/58.txt +1 -0
  46. static/data/dlq/59.txt +1 -0
  47. static/data/dlq/60.txt +1 -0
  48. static/data/dlq/ERROJSON_17.txt +1 -0
  49. static/data/operacao.txt +1 -0
  50. static/data/operacaoTemplate.html +2249 -0
static/a-operation.css ADDED
@@ -0,0 +1,707 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ * {
2
+ box-sizing: border-box;
3
+ }
4
+
5
+ body {
6
+ margin: 0;
7
+ font-family: Arial;
8
+ background: #000000;
9
+ }
10
+
11
+ #logo {
12
+ width: 100%;
13
+ top: 10px;
14
+ z-index: 1;
15
+ }
16
+
17
+ .title_print, .reporting_period {
18
+ text-align: center;
19
+ }
20
+
21
+ .header {
22
+ text-align: center;
23
+ padding: 0.05%;
24
+ background: #053067;
25
+ color: white;
26
+ }
27
+
28
+ .buttondiv {
29
+ float: left;
30
+ overflow: auto;
31
+ padding: 4px 10px;
32
+
33
+ }
34
+
35
+ .buttonfila {
36
+
37
+ font-size: 14px;
38
+ border-radius: 25px;
39
+ border: 2px solid black;
40
+ outline: none;
41
+ color: white;
42
+ padding: 11px 16px;
43
+ background-color: #000000;
44
+ font-family: inherit;
45
+ margin: 0;
46
+
47
+ }
48
+
49
+ .buttonwork {
50
+
51
+ font-size: 14px;
52
+ border-radius: 25px;
53
+ /* // border: none; */
54
+ border: 2px solid black;
55
+ outline: none;
56
+ color: white;
57
+ padding: 11px 16px;
58
+ background-color: #339BFF;
59
+ font-family: inherit;
60
+ margin: 0;
61
+ }
62
+
63
+ /*
64
+ .tudo {
65
+
66
+ // position: absolute;
67
+ // display: none;
68
+ // flex-wrap: wrap;
69
+ // background: #000000;
70
+ // height: 100%;
71
+ // width: 100%;
72
+ } */
73
+
74
+ /* Bottom left text */
75
+ .bottom-left {
76
+ position: absolute;
77
+ bottom: 8px;
78
+ left: 16px;
79
+ }
80
+
81
+ /* Top left text */
82
+ .top-left {
83
+ position: absolute;
84
+ top: 18px;
85
+ left: 16px;
86
+ }
87
+
88
+ /* Top right text */
89
+ .top-right {
90
+ position: absolute;
91
+ top: 18px;
92
+ right: 16px;
93
+ }
94
+
95
+ /* Bottom right text */
96
+ .bottom-right {
97
+ position: absolute;
98
+ bottom: 8px;
99
+ right: 16px;
100
+ }
101
+
102
+ /* Centered text */
103
+ .centered {
104
+ position: absolute;
105
+ top: 50%;
106
+ left: 50%;
107
+ transform: translate(-50%, -50%);
108
+ }
109
+
110
+ .row {
111
+ /* // position: fixed; */
112
+ display: none;
113
+ flex-wrap: wrap;
114
+ padding: 6.3vh 0;
115
+ background: #000000;
116
+ width:100%;
117
+ height:92%;
118
+ }
119
+
120
+ .rowblock {
121
+ display: none;
122
+ flex-wrap: wrap;
123
+ padding: 100% 0;
124
+ background-image: url('getresource?r=accessdenied.png');
125
+ height: 100%;
126
+ }
127
+
128
+ /* Create four equal columns that sits next to each other */
129
+ .column7x {
130
+ flex: 14.28%;
131
+ max-width: 14.28%;
132
+ padding: 0 2px;
133
+ }
134
+ .column7x img {
135
+ margin-top: 2px;
136
+ vertical-align: middle;
137
+ }
138
+
139
+ .column7x:active canvas {
140
+ position: fixed;
141
+ top: 50%;
142
+ left: 0;
143
+ width: 100%;
144
+ height: 100%;
145
+ -webkit-transform: translateY(-50%);
146
+ transform: translateY(-50%);
147
+ cursor: zoom-out;
148
+ }
149
+
150
+ .column6x {
151
+ flex: 16.6%;
152
+ max-width: 16.6%;
153
+ padding: 0 2px;
154
+ }
155
+ .column6x img {
156
+ margin-top: 2px;
157
+ vertical-align: middle;
158
+ }
159
+
160
+ .column6x:active canvas {
161
+ position: fixed;
162
+ top: 50%;
163
+ left: 0;
164
+ width: 100%;
165
+ height: 100%;
166
+ -webkit-transform: translateY(-50%);
167
+ transform: translateY(-50%);
168
+ cursor: zoom-out;
169
+ }
170
+
171
+
172
+ .column5x {
173
+ flex: 20%;
174
+ max-width: 20%;
175
+ padding: 0 2px;
176
+ }
177
+ .column5x img {
178
+ margin-top: 2px;
179
+ vertical-align: middle;
180
+ }
181
+
182
+ .column5x:active canvas {
183
+ position: fixed;
184
+ top: 50%;
185
+ left: 0;
186
+ width: 100%;
187
+ height: 100%;
188
+ -webkit-transform: translateY(-50%);
189
+ transform: translateY(-50%);
190
+ cursor: zoom-out;
191
+ }
192
+
193
+
194
+ .column3x {
195
+ flex: 33.33%;
196
+ max-width: 33.33%;
197
+ padding: 0 2px;
198
+ }
199
+ .column3x img {
200
+ margin-top: 2px;
201
+ vertical-align: middle;
202
+ }
203
+
204
+ .column3x:active canvas {
205
+ position: fixed;
206
+ top: 50%;
207
+ left: 0;
208
+ width: 100%;
209
+ height: 100%;
210
+ -webkit-transform: translateY(-50%);
211
+ transform: translateY(-50%);
212
+ cursor: zoom-out;
213
+ }
214
+
215
+
216
+ .column {
217
+ flex: 25%;
218
+ max-width: 25%;
219
+ padding: 0 2px;
220
+ }
221
+
222
+ .column img {
223
+ margin-top: 2px;
224
+ vertical-align: middle;
225
+
226
+ }
227
+
228
+ .column:hover img {
229
+ /* position: absolute;
230
+ // bottom: 0%;
231
+ left: 0;
232
+ right: 0;
233
+ height: 50%;
234
+ width: 50%;
235
+ background: rgba(0, 0, 0, 0.5);
236
+ padding: 5px 10px;
237
+ transition: all 1s;
238
+ color: white; */
239
+ }
240
+ .column:active canvas {
241
+ position: fixed;
242
+ top: 50%;
243
+ left: 0;
244
+ width: 100%;
245
+ height: 100%;
246
+ -webkit-transform: translateY(-50%);
247
+ transform: translateY(-50%);
248
+ cursor: zoom-out;
249
+ }
250
+
251
+ /* Responsive layout - makes a two column-layout instead of four columns */
252
+ @media screen and (max-width: 800px) {
253
+ .column {
254
+ flex: 50%;
255
+ max-width: 50%;
256
+ }
257
+ }
258
+
259
+ /* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
260
+ @media screen and (max-width: 600px) {
261
+ .column {
262
+ flex: 100%;
263
+ max-width: 100%;
264
+ }
265
+ }
266
+
267
+ #popupbox {
268
+ margin: 0;
269
+ margin-left: 40%;
270
+ margin-right: 40%;
271
+ margin-top: 50px;
272
+ padding-top: 10px;
273
+ width: 20%;
274
+ height: 150px;
275
+ position: fixed;
276
+ background: #FBFBF0;
277
+ border: solid #000000 2px;
278
+ z-index: 9;
279
+ font-family: arial;
280
+ visibility: hidden;
281
+ }
282
+
283
+
284
+ #ocorrencia {
285
+ margin: 0;
286
+ margin-left: 25%;
287
+ margin-right: 25%;
288
+ margin-top: 12%;
289
+ padding-top: 10px;
290
+ width: 50%;
291
+ height: 50%;
292
+ position: fixed;
293
+ background: white;
294
+ border: solid black 2px;
295
+ z-index: 9;
296
+ font-family: arial;
297
+ visibility: hidden;
298
+ }
299
+
300
+ .sidenav {
301
+ height: 100%;
302
+ width: 0;
303
+ position: fixed;
304
+ z-index: 1;
305
+ top: 0;
306
+ left: 0;
307
+ background-color: #111;
308
+ overflow-x: hidden;
309
+ transition: 0.5s;
310
+ padding-top: 60px;
311
+ }
312
+
313
+ .sidenav a {
314
+ padding: 8px 8px 8px 32px;
315
+ text-decoration: none;
316
+ font-size: 25px;
317
+ color: #818181;
318
+ display: block;
319
+ transition: 0.3s;
320
+ }
321
+
322
+ .sidenav a:hover {
323
+ color: #f1f1f1;
324
+ }
325
+
326
+ .sidenav .closebtn {
327
+ position: absolute;
328
+ top: 0;
329
+ right: 25px;
330
+ font-size: 36px;
331
+ margin-left: 50px;
332
+ }
333
+
334
+ @media screen and (max-height: 450px) {
335
+ .sidenav {padding-top: 15px;}
336
+ .sidenav a {font-size: 18px;}
337
+ }
338
+
339
+ .topnav {
340
+ position: fixed;
341
+ top: 0;
342
+ width: 100%;
343
+ height:6.3vh;
344
+ overflow: hidden;
345
+ background-color: #fefefe;
346
+ }
347
+
348
+
349
+ .topnav a {
350
+ float: left;
351
+ display: block;
352
+ color: #000000;
353
+ text-align: center;
354
+ padding: 14px 16px;
355
+ text-decoration: none;
356
+ font-size: 17px;
357
+ }
358
+
359
+ .active {
360
+ background-color: #4CAF50;
361
+ color: white;
362
+ }
363
+
364
+ .topnav .icon {
365
+ display: none;
366
+ }
367
+
368
+ .dropdown {
369
+ float: left;
370
+ overflow: auto;
371
+ padding: 4px 10px;
372
+
373
+ }
374
+
375
+ .dropdown .dropbtn {
376
+ font-size: 14px;
377
+ border-radius: 25px;
378
+ border: 2px solid black;
379
+ outline: none;
380
+ color: black;
381
+ padding: 11px 16px;
382
+ background-color: #fefefe;
383
+ font-family: inherit;
384
+ margin: 0;
385
+ }
386
+
387
+ .dropdown-content {
388
+ display: none;
389
+ position: fixed;
390
+ background-color: #f9f9f9;
391
+ min-width: 160px;
392
+ overflow: auto;
393
+ max-height: 90%;/* you can change as you need it */
394
+ box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
395
+ z-index: 1;
396
+ }
397
+
398
+ .dropdown-content a {
399
+ float: none;
400
+ color: black;
401
+ padding: 12px 16px;
402
+ text-decoration: none;
403
+ display: block;
404
+ text-align: left;
405
+ }
406
+
407
+ .topnav a:hover, .dropdown:hover .dropbtn {
408
+ background-color: #555;
409
+ color: white;
410
+ }
411
+
412
+ .dropdown-content a:hover {
413
+ background-color: #ddd;
414
+ color: black;
415
+ }
416
+
417
+ .dropdown:hover .dropdown-content {
418
+ display: block;
419
+ }
420
+
421
+ @media screen and (max-width: 1300px) {
422
+ .topnav a:not(:first-child), .dropdown .dropbtn {
423
+ display: none;
424
+ }
425
+
426
+ .topnav a.icon {
427
+ float: right;
428
+ display: block;
429
+ }
430
+ }
431
+
432
+ @media screen and (max-width: 1300px) {
433
+ .topnav.responsive {
434
+ position: relative;
435
+ height:1%;
436
+ }
437
+
438
+ .topnav.responsive .icon {
439
+ position: absolute;
440
+ right: 0;
441
+ top: 0;
442
+ }
443
+
444
+ .topnav.responsive a {
445
+ float: none;
446
+ display: block;
447
+ text-align: left;
448
+ }
449
+
450
+ .topnav.responsive .dropdown {
451
+ float: none;
452
+ }
453
+
454
+ .topnav.responsive .dropdown-content {
455
+ position: relative;
456
+ }
457
+
458
+ .topnav.responsive .dropdown .dropbtn {
459
+ display: block;
460
+ width: 100%;
461
+ text-align: left;
462
+ }
463
+ }
464
+ /*
465
+ novo popup
466
+ */
467
+
468
+ /* Button used to open the contact form - fixed at the bottom of the page */
469
+ .open-button {
470
+ background-color: #555;
471
+ color: white;
472
+ padding: 16px 20px;
473
+ border: none;
474
+ cursor: pointer;
475
+ opacity: 0.8;
476
+ position: fixed;
477
+ bottom: 23px;
478
+ right: 28px;
479
+ width: 280px;
480
+ }
481
+
482
+ /* The popup form - hidden by default */
483
+ .form-popup {
484
+ display: none;
485
+ position: fixed;
486
+ bottom: 0;
487
+ right: 15px;
488
+ border: 3px solid #f1f1f1;
489
+ z-index: 9;
490
+ }
491
+
492
+ /* Add styles to the form container */
493
+ .form-container {
494
+ max-width: 300px;
495
+ padding: 10px;
496
+ background-color: white;
497
+ }
498
+
499
+ /* Full-width input fields */
500
+ .form-container input[type=text], .form-container input[type=password] {
501
+ width: 100%;
502
+ padding: 15px;
503
+ margin: 5px 0 22px 0;
504
+ border: none;
505
+ background: #f1f1f1;
506
+ }
507
+
508
+ /* When the inputs get focus, do something */
509
+ .form-container input[type=text]:focus, .form-container input[type=password]:focus {
510
+ background-color: #ddd;
511
+ outline: none;
512
+ }
513
+
514
+ /* Set a style for the submit/login button */
515
+ .form-container .btn {
516
+ background-color: #4CAF50;
517
+ color: white;
518
+ padding: 16px 20px;
519
+ border: none;
520
+ cursor: pointer;
521
+ width: 100%;
522
+ margin-bottom: 10px;
523
+ opacity: 0.8;
524
+ }
525
+
526
+ /* Add a red background color to the cancel button */
527
+ .form-container .cancel {
528
+ background-color: red;
529
+ }
530
+
531
+ /* Add some hover effects to buttons */
532
+ .form-container .btn:hover, .open-button:hover {
533
+ opacity: 1;
534
+ }
535
+ /* POPUP central */
536
+ /* Full-width input fields */
537
+ input[type=text], input[type=password] {
538
+ width: 100%;
539
+ padding: 12px 20px;
540
+ margin: 8px 0;
541
+ display: inline-block;
542
+ border: 1px solid #ccc;
543
+ box-sizing: border-box;
544
+ }
545
+
546
+
547
+ /* Set a style for all buttons */
548
+ .button {
549
+ background-color: #4CAF50;
550
+ color: white;
551
+ padding: 14px 20px;
552
+ margin: 8px 0;
553
+ border: none;
554
+ cursor: pointer;
555
+ width: 100%;
556
+ text-align: center;
557
+ }
558
+
559
+ button:hover {
560
+ opacity: 0.8;
561
+ }
562
+
563
+ /* Extra styles for the cancel button */
564
+ .cancelbtn {
565
+ width: 100%;
566
+ padding: 10px 18px;
567
+ background-color: #f44336;
568
+ text-align: center;
569
+ }
570
+
571
+ /* Center the image and position the close button */
572
+ .imgcontainer {
573
+ text-align: center;
574
+ margin: 24px 0 12px 0;
575
+ position: relative;
576
+ border: 3px solid #fff;
577
+ background: #f1f1f1;
578
+ width: 100%;
579
+ // min-height: 450px;
580
+
581
+ }
582
+
583
+
584
+ .imgchild {
585
+ width: 50%;
586
+ height: 26vw;
587
+ float: left;
588
+ padding: 0px;
589
+ margin: 0 0;
590
+ border: 1px solid #000;
591
+ }
592
+
593
+ img.avatar {
594
+ width: 40%;
595
+ border-radius: 50%;
596
+ }
597
+
598
+ .container {
599
+ padding: 16px;
600
+ }
601
+
602
+ .select {
603
+ padding: 16px;
604
+ width: 40%;
605
+ }
606
+
607
+ .select_audio {
608
+ width: 40%;
609
+ }
610
+
611
+ options {
612
+ padding: 16px;
613
+ width: 40%;
614
+ }
615
+
616
+ span.psw {
617
+ float: right;
618
+ padding-top: 16px;
619
+ }
620
+
621
+ /* The Modal (background) */
622
+ .modal {
623
+ display: none; /* Hidden by default */
624
+ position: fixed; /* Stay in place */
625
+ z-index: 1; /* Sit on top */
626
+ left: 0;
627
+ top: 0;
628
+ width: 100%; /* Full width */
629
+ height: 100%; /* Full height */
630
+ overflow: auto; /* Enable scroll if needed */
631
+ background-color: rgb(0,0,0); /* Fallback color */
632
+ background-color: rgba(0,0,0,0.0); /* Black w/ opacity */
633
+ padding-top: 60px;
634
+ }
635
+
636
+ /* Hide scrollbar for Chrome, Safari and Opera */
637
+ .modal::-webkit-scrollbar {
638
+ display: none;
639
+ }
640
+
641
+ /* Hide scrollbar for IE, Edge and Firefox */
642
+ .modal {
643
+ -ms-overflow-style: none; /* IE and Edge */
644
+ scrollbar-width: none; /* Firefox */
645
+ }
646
+
647
+ /* Modal Content/Box */
648
+ .modal-content {
649
+ background-color: #fefefe;
650
+ margin: 5% auto 15% auto; /* 5% from the top, 15% from the bottom and centered */
651
+ border: 1px solid #888;
652
+ width: 60%; /* Could be more or less, depending on screen size */
653
+ }
654
+
655
+ /* The Close Button (x) */
656
+ .close {
657
+ position: absolute;
658
+ right: 25px;
659
+ top: 0;
660
+ color: #000;
661
+ font-size: 35px;
662
+ font-weight: bold;
663
+ }
664
+
665
+ .close:hover,
666
+ .close:focus {
667
+ color: red;
668
+ cursor: pointer;
669
+ }
670
+
671
+ /* Add Zoom Animation */
672
+ .animate {
673
+ -webkit-animation: animatezoom 0.6s;
674
+ animation: animatezoom 0.6s
675
+ }
676
+
677
+ @-webkit-keyframes animatezoom {
678
+ from {
679
+ -webkit-transform: scale(0)
680
+ }
681
+
682
+ to {
683
+ -webkit-transform: scale(1)
684
+ }
685
+ }
686
+
687
+ @keyframes animatezoom {
688
+ from {
689
+ transform: scale(0)
690
+ }
691
+
692
+ to {
693
+ transform: scale(1)
694
+ }
695
+ }
696
+
697
+ /* Change styles for span and cancel button on extra small screens */
698
+ @media screen and (max-width: 300px) {
699
+ span.psw {
700
+ display: block;
701
+ float: none;
702
+ }
703
+
704
+ .cancelbtn {
705
+ width: 100%;
706
+ }
707
+ }
static/a-operation.html ADDED
@@ -0,0 +1,1664 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+
5
+ <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
6
+ <meta http-equiv="Pragma" content="no-cache" />
7
+ <meta http-equiv="Expires" content="0" />
8
+ <meta charset="utf-8" />
9
+ <title>ATUALLI MOSAICO WEB</title>
10
+ <meta name="viewport" content="width=device-width, initial-scale=1">
11
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
12
+
13
+ <link rel="stylesheet" type="text/css" href="a-operation.css" />
14
+
15
+
16
+
17
+ </head>
18
+ <body onload="iniciaPagina();">
19
+ <!-- <title>Hello</title> -->
20
+
21
+
22
+ <!--Add buttons to initiate auth sequence and sign out
23
+ <button id="authorize_button" style="display: none;">Authorize</button>
24
+ <button id="signout_button" style="display: none;">Sign Out</button>
25
+ -->
26
+
27
+ <script type="text/javascript">
28
+ // Client ID and API key from the Developer Console
29
+ var CLIENT_ID = '346985849712-4diehepugvj39n4e3ednr25qieekkmen.apps.googleusercontent.com'; //'392646183283-5f9h5jgsll9hfcb46mlfplu57vtmhaa0.apps.googleusercontent.com';
30
+ var API_KEY = 'AIzaSyDGpegS1TV-7moMp5dKz-BEtt6bA864h_4';//'AIzaSyASaqrMk2sPLTnXsW8fjCcTvAsagc28DhA';
31
+
32
+
33
+ // Array of API discovery doc URLs for APIs used by the quickstart
34
+ var DISCOVERY_DOCS = ["https://sheets.googleapis.com/$discovery/rest?version=v4"];
35
+
36
+ // Authorization scopes required by the API; multiple scopes can be
37
+ // included, separated by spaces.
38
+ var SCOPES = "https://www.googleapis.com/auth/spreadsheets.readonly";
39
+
40
+ // var authorizeButton = document.getElementById('authorize_button');
41
+ //var signoutButton = document.getElementById('signout_button');
42
+
43
+ /**
44
+ * On load, called to load the auth2 library and API client library.
45
+ */
46
+
47
+ function storeLogin(name)
48
+ {
49
+ setCookieh("LOGIN",name,10);
50
+ }
51
+
52
+ function loadLogin() {
53
+
54
+ var name = getCookieh("LOGIN");
55
+ return name;
56
+ }
57
+
58
+ function setCookieh(name,value,days) {
59
+
60
+ window.localStorage.setItem(name, value);
61
+ }
62
+
63
+ function getCookieh(name) {
64
+
65
+ return window.localStorage.getItem(name);
66
+ }
67
+
68
+ function sleeph(time) {
69
+ return new Promise((resolve) => setTimeout(resolve, time));
70
+ }
71
+
72
+
73
+ function handleClientLoad() {
74
+
75
+ sleeph(100).then(() => {
76
+
77
+
78
+ document.getElementById("conteudo").style.display = "flex";
79
+ var name=loadLogin();
80
+ if((!name) || (name=="LOGIN"))
81
+ {
82
+ waitLogin();
83
+ }
84
+ else
85
+ {
86
+ waitLogout(name);
87
+ }
88
+ });
89
+ }
90
+
91
+ function SignOUT()
92
+ {
93
+ var name = gapi.auth2.getAuthInstance().currentUser.get();
94
+ if(name.getBasicProfile())
95
+ {
96
+ var logname = name.getBasicProfile().getName() + " ( " + name.getBasicProfile().getEmail() + " )";
97
+ logout(logname);
98
+ }
99
+ else
100
+ {
101
+ var logname = loadLogin();
102
+ logout(logname);
103
+ }
104
+
105
+ gapi.auth2.getAuthInstance().signOut();
106
+ gapi.auth2.getAuthInstance().disconnect();
107
+ }
108
+
109
+ /**
110
+ * Initializes the API client library and sets up sign-in state
111
+ * listeners.
112
+ */
113
+ function initClient() {
114
+ gapi.client.init({
115
+ apiKey: API_KEY,
116
+ clientId: CLIENT_ID,
117
+ discoveryDocs: DISCOVERY_DOCS,
118
+ scope: SCOPES
119
+ }).then(function () {
120
+ // Listen for sign-in state changes.
121
+ gapi.auth2.getAuthInstance().isSignedIn.listen(updateSigninStatus);
122
+
123
+ // Handle the initial sign-in state.
124
+ updateSigninStatus(gapi.auth2.getAuthInstance().isSignedIn.get());
125
+
126
+ }, function(error) {
127
+ waitLogin();
128
+ alert(error.message);
129
+ });
130
+ }
131
+
132
+ function initClientSigIn() {
133
+ gapi.client.init({
134
+ apiKey: API_KEY,
135
+ clientId: CLIENT_ID,
136
+ discoveryDocs: DISCOVERY_DOCS,
137
+ scope: SCOPES
138
+ }).then(function () {
139
+ // Listen for sign-in state changes.
140
+ gapi.auth2.getAuthInstance().isSignedIn.listen(updateSigninStatus);
141
+
142
+ // Handle the initial sign-in state.
143
+ updateSigninStatus(gapi.auth2.getAuthInstance().isSignedIn.get());
144
+ gapi.auth2.getAuthInstance().signIn();
145
+
146
+ }, function(error) {
147
+ waitLogin();
148
+ alert(error.message);
149
+ });
150
+ }
151
+
152
+ function initClientSigOut() {
153
+ gapi.client.init({
154
+ apiKey: API_KEY,
155
+ clientId: CLIENT_ID,
156
+ discoveryDocs: DISCOVERY_DOCS,
157
+ scope: SCOPES
158
+ }).then(function () {
159
+ // Listen for sign-in state changes.
160
+ gapi.auth2.getAuthInstance().isSignedIn.listen(updateSigninStatus);
161
+
162
+ // Handle the initial sign-in state.
163
+ // updateSigninStatus(gapi.auth2.getAuthInstance().isSignedIn.get());
164
+ SignOUT();
165
+ waitLogin();
166
+ }, function(error) {
167
+ waitLogin();
168
+ alert(error.message);
169
+ });
170
+ }
171
+
172
+ /**
173
+ * Called when the signed in status changes, to update the UI
174
+ * appropriately. After a sign-in, the API is called.
175
+ */
176
+ function updateSigninStatus(isSignedIn) {
177
+ if (isSignedIn) {
178
+ //authorizeButton.style.display = 'none';
179
+ //signoutButton.style.display = 'block';
180
+
181
+
182
+ listMajors();
183
+ } else {
184
+ //authorizeButton.style.display = 'block';
185
+ //signoutButton.style.display = 'none';
186
+ waitLogin();
187
+ }
188
+ }
189
+
190
+ /**
191
+ * Sign in the user upon button click.
192
+ */
193
+ var init=0;
194
+ function handleAuthClick(event) {
195
+ document.getElementById("myLogin").innerHTML = "AGUARDE...";
196
+ if(init==0)
197
+ {
198
+ gapi.load('client:auth2', initClientSigIn);
199
+ init=1;
200
+ }
201
+ else
202
+ gapi.auth2.getAuthInstance().signIn();
203
+ }
204
+
205
+ function waitLogin()
206
+ {
207
+ document.getElementById("conteudo").style.display = "none";
208
+ document.getElementById("listaclientes").style.display = "none";
209
+ // document.getElementById("ferramentas").style.display = "none";
210
+ document.getElementById("Fila").style.display = "none";
211
+ document.getElementById("operacao").style.display = "none";
212
+ document.getElementById("viewList").style.display = "none";
213
+ document.getElementById("portal").style.display = "flex";
214
+ document.getElementById("myLogin").innerHTML = "LOGIN";
215
+ document.getElementById("myLoginS").innerHTML = "LOGIN";
216
+ var obj = document.getElementById("myLoginS");
217
+ obj.setAttribute('href', "javascript:handleAuthClick(0);");
218
+ document.getElementById("Fila").setAttribute('onclick', "document.getElementById('ocoModal').style.display = 'none'; javascript:void(0);");
219
+ storeLogin("LOGIN");
220
+ }
221
+
222
+ function waitLogout(logname) {
223
+ document.getElementById("conteudo").style.display = "flex";
224
+ document.getElementById("listaclientes").style.display = "inline";
225
+ // document.getElementById("ferramentas").style.display = "inline";
226
+ document.getElementById("Fila").style.display = "flex";
227
+ document.getElementById("operacao").style.display = "flex";
228
+ document.getElementById("viewList").style.display = "inline";
229
+ document.getElementById("portal").style.display = "none";
230
+ document.getElementById("myLogin").innerHTML = "LOGOFF";
231
+ var obj = document.getElementById("myLoginS");
232
+ obj.setAttribute('href', "javascript:handleSignoutClick(0);");
233
+ document.getElementById("Fila").setAttribute('onclick', "getVideoOcorrencia();");
234
+ // var name = gapi.auth2.getAuthInstance().currentUser.get();
235
+ // var logname = name.getBasicProfile().getName() + " ( " + name.getBasicProfile().getEmail() + " )";
236
+ //login(logname);
237
+ document.getElementById("myLogin").innerHTML = logname; // Qt.Au = email , Qt.Bd= fullname, Qt.zU=lastname, Qt.zW=firstname.
238
+ var clip=logname.indexOf("(");
239
+ document.getElementById("myLoginS").innerHTML = logname.substring(0,clip);
240
+ storeLogin(logname);
241
+ }
242
+
243
+ /**
244
+ * Sign out the user upon button click.
245
+ */
246
+ function handleSignoutClick(event) {
247
+
248
+ var x;
249
+ var r = confirm("Deseja finalizar a sessao ?");
250
+ if (r == true) {
251
+
252
+ document.getElementById("myLogin").innerHTML = "AGUARDE...";
253
+ gapi.load('client:auth2', initClientSigOut);
254
+ init=1;
255
+ }
256
+
257
+ }
258
+
259
+ /**
260
+ * Append a pre element to the body containing the given message
261
+ * as its text node. Used to display the results of the API call.
262
+ *
263
+ * @param {string} message Text to be placed in pre element.
264
+ */
265
+ function appendPre(message) {
266
+ //var pre = document.getElementById('content');
267
+ // var textContent = document.createTextNode(message + '\n');
268
+ document.body.innerHTML = message.trim();
269
+ //pre.appendChild(message);
270
+ }
271
+
272
+ /**
273
+ * Print the names and majors of students in a sample spreadsheet:
274
+ * https://docs.google.com/spreadsheets/d/1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms/edit
275
+ */
276
+ function listMajors() {
277
+ gapi.client.sheets.spreadsheets.values.get({
278
+ spreadsheetId: '1edERX6z500r_PzovDi0zuRxU_wKrBGxZlTAPDWKZKEY', // '1PIAQ9qDorLJ99SjXmtx_OsT_aSI2_oumHw4ukgqwQos',
279
+ range: 'PESSOAS!A1:N23',
280
+ }).then(function(response) {
281
+ var name = gapi.auth2.getAuthInstance().currentUser.get();
282
+ var logname = name.getBasicProfile().getName() + " ( " + name.getBasicProfile().getEmail() + " )";
283
+ waitLogout(logname);
284
+ }, function(response) {
285
+ // appendPre('Error: ' + response.result.error.message);
286
+ // nao tem acesso desconecta
287
+ waitLogin();
288
+ gapi.auth2.getAuthInstance().signOut();
289
+ gapi.auth2.getAuthInstance().disconnect();
290
+ alert("ACESSO NEGADO!")
291
+ });
292
+ }
293
+
294
+ </script>
295
+
296
+ <script async defer src="https://apis.google.com/js/api.js"
297
+ onload="this.onload=function(){};handleClientLoad()"
298
+ onreadystatechange="if (this.readyState === 'complete') this.onload()">
299
+ </script>
300
+ <div class="tudo">
301
+
302
+ <div id="mySidenav" class="sidenav">
303
+ <a href="javascript:void(0)" class="closebtn" onclick="closeNav()">&times;</a>
304
+
305
+ <a href="javascript:setMosaico();" id="mosaico">Mosaico1</a>
306
+ <!--a href="javascript:popupwindow('https://datastudio.google.com/reporting/9aefeac4-1d0d-47c4-b5cf-66f49d41c4f2/page/p_2yjwggbisc', 'RESUMO', screen.width/1.5, screen.height/1.5);" id="dash">Dashboard</a-->
307
+ <a href="javascript:setDash();" id="dash">Operacao</a>
308
+ <!--a href="javascript:window.open('https://datastudio.google.com/reporting/9aefeac4-1d0d-47c4-b5cf-66f49d41c4f2/page/p_2yjwggbisc', '_blank').focus();" id="dash">Operacao</a-->
309
+ <a href="javascript:popupwindow('/visualizacao','VISUALIZACAO', screen.width/1, screen.height/1);"> Visualizacao</a>
310
+ <!--a href="javascript:popupwindow('/programacao?id=1','PROGRAMACAO', screen.width/2, screen.height/2);"> Programacao</a-->
311
+ <!--a href="javascript:setCercaVirtual()" id="conf">Cerca Virtual</a-->
312
+ <!--a href="javascript:popupwindow('https://www.appsheet.com/start/8ec6ba07-1f60-4525-87a4-bd3208dfb0b7', 'CONFIGURACAO', screen.width/1.5, screen.height/1.5);" id="conf">Configuracao</a-->
313
+ <a href="javascript:setConfig()" id="conf">Configuracao</a>
314
+ <a href="javascript:setConfigCheckList()" id="conf">Check-List</a>
315
+ <a href="javascript:setTelegram()" id="conf">Telegram</a>
316
+ <a href="javascript:setSimulador()" id="conf">Simulador</a>
317
+ <a href="" id="conf">Bloqueios</a>
318
+ <!--a href="javascript:popupwindow('http://painel.atualli.com/recogimg', 'SIMULADOR', screen.width/1.5, screen.height/1.5);" id="conf">Simulador</a-->
319
+ <a href="javascript:setResetMosaico();" id="reset">Reset Mosaico</a>
320
+ </div>
321
+
322
+ <div class="topnav" id="myTopnav">
323
+ <span style="background-color: #000000;color: blue;float:left;font-size:40px;cursor:pointer" onclick="openNav()">&#9776; </span>
324
+ <img title = "logo" src="getresource?r=alogo.png" align="left">
325
+ <!--a href="#news" onclick="javascript:void(0);" id="Fila">Fila</a-->
326
+ <div class="buttondiv">
327
+ <button class="buttonfila" id="Fila">Fila</button>
328
+ </div>
329
+ <div class="dropdown" id="listaclientes">
330
+ <button class="dropbtn" id="clientelabel">
331
+ <?CLIENTE?>
332
+ </button>
333
+ <div class="dropdown-content">
334
+ <?LISTA?>
335
+ </div>
336
+ </div>
337
+
338
+ <!--a href="javascript:void(0);" id="clientelabel">(MULTILASER-MANAUS-DVR-1)</a-->
339
+
340
+ <!--div class="dropdown" id="ferramentas">
341
+ <button class="dropbtn">
342
+ Ferramentas
343
+ <i class="fa fa-caret-down"></i>
344
+ </button>
345
+ <div class="dropdown-content">
346
+ <a href="javascript:resetMosaico(0);" id="reset">RESET MOSAICO</a>
347
+ <a href="javascript:popupwindow('https://datastudio.google.com/reporting/9aefeac4-1d0d-47c4-b5cf-66f49d41c4f2', 'RESUMO', screen.width/1.5, screen.height/1.5);" id="dash">Dashboard</a>
348
+ <a href="javascript:popupwindow('/visualizacao','VISUALIZACAO', screen.width/1, screen.height/1);"> Visualizacao</a>
349
+ <a href="javascript:popupwindow('/programacao?id=1','PROGRAMACAO', screen.width/2, screen.height/2);"> Programacao</a>
350
+ <a href="javascript:popupwindow('https://www.appsheet.com/start/8ec6ba07-1f60-4525-87a4-bd3208dfb0b7', 'CONFIGURACAO', screen.width/1.5, screen.height/1.5);" id="conf">Configuracao</a>
351
+ <a href="javascript:popupwindow('http://painel.atualli.com/recogimg', 'SIMULADOR', screen.width/1.5, screen.height/1.5);" id="conf">Simulador</a>
352
+ </div>
353
+ </div-->
354
+ <!--a href="javascript:handleAuthClick(0);" id="myLogin"></a-->
355
+ <!--div class="dropdown" id="loginlist">
356
+ <button class="dropbtn" id="myLogin">
357
+ LOGIN
358
+ <i class="fa fa-caret-down"></i>
359
+ </button>
360
+ <div class="dropdown-content">
361
+ <a href="javascript:selecionaOperador('LOGOFF');">LOGIN</a>
362
+ <a href="javascript:selecionaOperador('PAUSAR');">PAUSAR</a>
363
+ <a href="javascript:selecionaOperador('LOGIN');">LOGOFF</a>
364
+ </div>
365
+ </div-->
366
+ <!--a href="javascript:setoperacao(0);" id="operacao">AGUARDE...</a-->
367
+ <div class="buttondiv">
368
+ <button onclick="javascript:setoperacao(0);" class="buttonwork" id="operacao">>AGUARDE...</button>
369
+ </div>
370
+ <!--a href="javascript:void(0);" class="icon" onclick="myFunctionNav()">
371
+ <i class="fa fa-bars"></i>
372
+ </a-->
373
+ <div class="dropdown" id="viewList">
374
+ <button class="dropbtn">
375
+ VIEW
376
+ <i class="fa fa-caret-down"></i>
377
+ </button>
378
+ <div class="dropdown-content">
379
+ <a href="javascript:changeGrade('column7x');">7x</a>
380
+ <a href="javascript:changeGrade('column6x');">6x</a>
381
+ <a href="javascript:changeGrade('column5x');">5x</a>
382
+ <a href="javascript:changeGrade('column');">4x</a>
383
+ <a href="javascript:changeGrade('column3x');">3x</a>
384
+ <a href="javascript:changeGrade('Auto');">Auto</a>
385
+ </div>
386
+ </div>
387
+
388
+ <img title = "avatar" id="myavatar" style="width:3%" src="getresource?r=anonymus.jpg" align="left">
389
+ <a href="" style="display:none" id="myLogin"></a>
390
+ <a href="javascript:handleAuthClick(0);" id="myLoginS"></a>
391
+ <a href="javascript:void(0);" class="icon" onclick="NavResponsive()">
392
+ <i class="fa fa-bars"></i>
393
+ </a>
394
+ </div>
395
+
396
+ <div class="rowblock" id="portal">
397
+ <tr></tr>
398
+ </div>
399
+
400
+ <div style="display:none" id="listocorrencias">
401
+ <tr>
402
+ <iframe id="iframelistocorrencias" src="" frameborder="0" style="position:absolute; top:7%; left:0; width:100%; height:100%; border:0" allowfullscreen></iframe>
403
+ </tr>
404
+ </div>
405
+
406
+ <div style="display:none" id="configuracao">
407
+ <tr>
408
+ <iframe id="iframeconfiguracao" src="" frameborder="0" style="position:absolute; top:7%; left:0; width:80%; height:100%; border:0" allowfullscreen></iframe>
409
+ </tr>
410
+ </div>
411
+
412
+ <div style="display:none" id="configuracaochecklist">
413
+ <tr>
414
+ <iframe id="iframeconfiguracaochecklist" src="" frameborder="0" style="position:absolute; top:7%; left:0; width:100%; height:100%; border:0" allowfullscreen></iframe>
415
+ </tr>
416
+ </div>
417
+
418
+ <div style="display:none" id="cercavirtual">
419
+ <tr>
420
+ <iframe id="iframecercavirtual" src="" frameborder="0" style="position:absolute; top:7%; left:80%; width:20%; height:100%; border:0" allowfullscreen></iframe>
421
+ </tr>
422
+ </div>
423
+
424
+ <div style="display:none" id="simulador">
425
+ <tr>
426
+ <iframe id="iframesimulador" src="" frameborder="0" style="position:absolute; top:7%; left:0; width:100%; height:100%; border:0" allowfullscreen></iframe>
427
+ </tr>
428
+ </div>
429
+
430
+
431
+
432
+ <div class="row" id="conteudo">
433
+ <tr>
434
+ <div id="ocoModal" class="modal">
435
+
436
+ <form class="modal-content animate" id="formOcorrencia" action="javascript:gravaOcorrencia()" method="get">
437
+
438
+ <div class="imgcontainer">
439
+
440
+ <div style="width:100%">
441
+ <p><b>TRATAMENTO DE OCORRENCIA</b></p> <span onclick="document.getElementById('ocoModal').style.display = 'none'" class="close" title="Close Modal">&times;</span>
442
+ </div>
443
+
444
+ <div class="imgchild">
445
+ <p><b>Gravacao</b></p>
446
+ <video id="videoocorrencia" preload="metadata" autoplay loop muted playsinline width=100% height=77% controls src="getresource?r=atualli.png&" type="video/mp4"> </video>
447
+
448
+ </div>
449
+ <div class="imgchild">
450
+ <p><b>Ao Vivo</b></p>
451
+ <img src="" id="aovivo" class="refrx" alt="" style="width:100%;display:none;">
452
+ <canvas title="Ao vivo" id="cvcx" alt="" style="width:100%"></canvas>
453
+ </div>
454
+ </div>
455
+
456
+ <div class="container" style="background-color:#f1f1f1">
457
+
458
+ <label for="rot"><b>.</b></label></br>
459
+
460
+ <label id="IdOcoView" for="rot"><b>ID: </b></label></br>
461
+
462
+
463
+
464
+ <label id="IdCliente" for="rot"><b>Cliente: </b></label></br>
465
+
466
+
467
+
468
+ <label id="Operador" for="rot"><b>Operador: </b></label></br>
469
+
470
+
471
+
472
+ <label id="DataOcorrencia" for="rot"><b>Data: </b></label></br>
473
+
474
+
475
+
476
+ <label id="NomeRoteiro" for="rot"><b>Roteiro: </b></label></br>
477
+
478
+ <label id="Prioridade" for="rot"><b>Prioridade: </b></label></br>
479
+
480
+
481
+
482
+ <!--label id="videoOco" for="rot"><b>Video: </b></label></br-->
483
+ </div>
484
+
485
+ <div class="container">
486
+
487
+ <label id="pergunta1" for="uname"><b>Procedimento</b></label>
488
+ <input type="text" id="procedimento" placeholder="Texto livre" name="procedimento" readonly style="background-color:#f1f1f1">
489
+
490
+ <label id="pergunta2" for="psw"><b>Motivo</b></label>
491
+ <input type="text" id="template" placeholder="Texto livre" name="template" required onkeydown="return (event.keyCode!=13);">
492
+ <!--textarea placeholder="Texto livre" rows="5" cols="10" id="template" style = "font-size: 12pt; width:100%; margin:5px 0;padding:3px" ></textarea-->
493
+ <label id="pergunta3" for="psw"><b>Audio</b></label>
494
+ <input type="file" id="audio" name="audio" accept="audio/*" multiple>
495
+ <button type="button" id="loadLastAudio" onclick="javascript:getUltimoAudio()">Carrega Ultimos Audios</button>
496
+ <select id="listaAudios" class="select_audio" style="background-color:#f1f1f1" name="formal" onchange="javascript:selAudio(this)"></select>
497
+ </br></br>
498
+ <a href="" id="lastaudio"></a>
499
+ <input type="hidden" name="cmd" id="GravaOcorrencia" value="">
500
+ <input type="hidden" name="idOco" id="idOco" value="">
501
+ <input type="hidden" name="idCamera" id="idCamera" value="">
502
+ <input type="hidden" name="nomeOperador" id="nomeOperador" value="">
503
+ <input type="hidden" name="idChat" id="idChat" value="">
504
+ <input type="hidden" name="cliente" id="cliente" value="">
505
+ <input type="hidden" name="roteiro" id="roteiro" value="">
506
+
507
+ <button type="submit" style="display:none" id="gravar" class="button">Grava</button>
508
+ <button type="button" style="display:none" id="descartar" onclick="javascript:descartaOcorrencia(0)" class="cancelbtn">Descartar</button>
509
+ <button type="button" style="display:none" id="desbloqueio" onclick="" class="cancelbtn">Desbloqueio</button>
510
+ <select class="select" id="listaContatos" style="background-color:#f1f1f1" name="formal" onchange="javascript:handleSelect(this)"></select>
511
+
512
+ <script type="text/javascript">
513
+ function handleSelect(elm)
514
+ {
515
+ if(elm.value.length>1)
516
+ window.location = elm.value;
517
+ }
518
+ </script>
519
+ </div>
520
+
521
+ </form>
522
+ </div>
523
+
524
+ <?BODY?>
525
+
526
+ </tr>
527
+ </div>
528
+ </div>
529
+ <script async">
530
+
531
+ // setInterval("gogo();", 1500);
532
+ var to = 1; // 2; //3;
533
+ var first = 0;
534
+ var idx = 0;
535
+ var tamFila = 0;
536
+ var myFila = 0;
537
+
538
+ var onlyView = 0;
539
+
540
+ // Get the modal
541
+ //var modalOcorrencia = document.getElementById('ocoModal');
542
+
543
+ // When the user clicks anywhere outside of the modal, close it
544
+ //window.onclick = function (event) {
545
+ // if (event.target == modalOcorrencia) {
546
+ // modalOcorrencia.style.display = "none";
547
+ // }
548
+ //}
549
+
550
+
551
+ function NavResponsive() {
552
+ var x = document.getElementById("myTopnav");
553
+ if (x.className === "topnav") {
554
+ x.className += " responsive";
555
+ } else {
556
+ x.className = "topnav";
557
+ }
558
+ }
559
+ function setTelegram() {
560
+
561
+ popupwindow('https://web.telegram.org/z','TELEGRAM', screen.width/4, screen.height)
562
+ closeNav();
563
+ }
564
+
565
+ function resetAllView() {
566
+ document.getElementById("configuracao").style.display = "none";
567
+ document.getElementById("configuracaochecklist").style.display = "none";
568
+ document.getElementById("conteudo").style.display = "none";
569
+ document.getElementById("listocorrencias").style.display = "none";
570
+ document.getElementById("simulador").style.display = "none";
571
+ document.getElementById("cercavirtual").style.display = "none";
572
+ }
573
+
574
+ function setCercaVirtual()
575
+ {
576
+ // resetAllView();
577
+ var objAovivo = document.getElementById("iframecercavirtual");
578
+ var osrc= objAovivo.getAttribute('src');
579
+ if ( osrc=="")
580
+ {
581
+
582
+
583
+ objAovivo.setAttribute('src', "/programacao?id=1");
584
+ }
585
+ document.getElementById("cercavirtual").style.display = "flex";
586
+ closeNav();
587
+
588
+ }
589
+
590
+ function setDash() {
591
+
592
+ /* resetAllView();
593
+ var objAovivo = document.getElementById("iframelistocorrencias");
594
+ var osrc= objAovivo.getAttribute('src');
595
+ if ( osrc=="")
596
+ {
597
+
598
+
599
+ objAovivo.setAttribute('src', "https://datastudio.google.com/embed/reporting/9aefeac4-1d0d-47c4-b5cf-66f49d41c4f2/page/p_2yjwggbisc");
600
+ }
601
+ document.getElementById("listocorrencias").style.display = "flex"; */
602
+
603
+ popupwindow('https://datastudio.google.com/reporting/9aefeac4-1d0d-47c4-b5cf-66f49d41c4f2/page/p_2yjwggbisc', 'RESUMO', screen.width/1, screen.height/1);
604
+ closeNav();
605
+
606
+ }
607
+
608
+ function setMosaico() {
609
+ resetAllView();
610
+ document.getElementById("conteudo").style.display = "flex";
611
+ closeNav();
612
+
613
+ }
614
+
615
+ function setResetMosaico()
616
+ {
617
+ setMosaico();
618
+ resetMosaico(0);
619
+
620
+ }
621
+
622
+ function setSimulador()
623
+ {
624
+
625
+ resetAllView();
626
+
627
+ var objAovivo = document.getElementById("iframesimulador");
628
+ var osrc= objAovivo.getAttribute('src');
629
+ if ( osrc=="")
630
+ {
631
+
632
+ objAovivo.setAttribute('src', "http://painel.atualli.com/recogimg");
633
+ }
634
+ document.getElementById("simulador").style.display = "flex";
635
+ closeNav();
636
+ }
637
+
638
+ function setConfig() {
639
+
640
+ resetAllView();
641
+ var objAovivo = document.getElementById("iframeconfiguracao");
642
+ var osrc= objAovivo.getAttribute('src');
643
+ if ( osrc=="")
644
+ {
645
+ // objAovivo.setAttribute('src', "https://www.appsheet.com/start/8ec6ba07-1f60-4525-87a4-bd3208dfb0b7#view=PROGRAMACAO");
646
+ objAovivo.setAttribute('src', "https://www.appsheet.com/start/99e79f6b-62fe-44c8-bab4-b4b9de10cd7d#view=PROGRAMACAO");
647
+ }
648
+ document.getElementById("configuracao").style.display = "flex";
649
+
650
+ setCercaVirtual();
651
+ closeNav();
652
+
653
+ }
654
+
655
+ function setConfigCheckList() {
656
+
657
+ resetAllView();
658
+ var objAovivo = document.getElementById("iframeconfiguracaochecklist");
659
+ var osrc= objAovivo.getAttribute('src');
660
+ if ( osrc=="")
661
+ {
662
+ // objAovivo.setAttribute('src', "https://www.appsheet.com/start/8ec6ba07-1f60-4525-87a4-bd3208dfb0b7#view=PROGRAMACAO");
663
+ objAovivo.setAttribute('src', "https://www.appsheet.com/start/54218ac3-e0db-414a-b3e5-1fb46540b5c4#view=PROGRAMACAO_CHECKLIST");
664
+ }
665
+ document.getElementById("configuracaochecklist").style.display = "flex";
666
+
667
+ closeNav();
668
+
669
+ }
670
+
671
+ function openNav() {
672
+ document.getElementById("mySidenav").style.width = "250px";
673
+ }
674
+
675
+ function closeNav() {
676
+ document.getElementById("mySidenav").style.width = "0";
677
+ }
678
+
679
+ var atualColumn="column";
680
+ function changeGrade(novo)
681
+ {
682
+
683
+ var lista = document.getElementsByClassName(atualColumn);
684
+ var len=lista.length;
685
+
686
+ var newClass=novo;
687
+ if(novo=="Auto")
688
+ { newClass="column3x";
689
+ if (len>=8) newClass="column";
690
+ if (len>=16) newClass="column5x";
691
+ if (len>=24) newClass="column6x";
692
+ if (len>=31) newClass="column7x";
693
+ }
694
+
695
+ for (var i = 0; i < len; i ++)
696
+ {
697
+ lista[0].className = newClass;
698
+ }
699
+ atualColumn=newClass;
700
+ let cliente=document.getElementById("clientelabel").innerHTML;
701
+ cliente=cliente.trim();
702
+ setCookie("GRADE-"+cliente,novo,10);
703
+ }
704
+
705
+ function drawOperador(name) {
706
+
707
+ document.getElementById("myLogin").innerHTML = name;
708
+ }
709
+
710
+ function selecionaOperador(name) {
711
+
712
+ var atual= getCookie("LOGIN");
713
+
714
+ if (name!=atual)
715
+ {
716
+ if((name.length>0) && (name!="LOGOFF")&& (name!="LOGIN"))
717
+ login(name);
718
+ if(atual.length>0)
719
+ logout(atual);
720
+ }
721
+ if(!name) name="LOGIN";
722
+ setCookie("LOGIN",name,10);
723
+ drawOperador(name);
724
+ }
725
+
726
+
727
+ function setCookie(name,value,days) {
728
+ /* var expires = "";
729
+ if (days) {
730
+ var date = new Date();
731
+ date.setTime(date.getTime() + (days*24*60*60*1000));
732
+ expires = "; expires=" + date.toUTCString();
733
+ }
734
+ document.cookie = name + "=" + (value || "") + expires + "; path=/"; */
735
+ window.localStorage.setItem(name,value);
736
+ }
737
+ function getCookie(name) {
738
+ /* var nameEQ = name + "=";
739
+ var ca = document.cookie.split(';');
740
+ for(var i=0;i < ca.length;i++) {
741
+ var c = ca[i];
742
+ while (c.charAt(0)==' ') c = c.substring(1,c.length);
743
+ if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
744
+ }
745
+ return null; */
746
+ return window.localStorage.getItem(name);
747
+ }
748
+ function eraseCookie(name) {
749
+ document.cookie = name +'=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;';
750
+ }
751
+
752
+ function openForm() {
753
+ document.getElementById("myForm").style.display = "block";
754
+ }
755
+
756
+ function closeForm() {
757
+ document.getElementById("myForm").style.display = "none";
758
+ }
759
+
760
+ function resetFormOcorrencia()
761
+ {
762
+ var obj = document.getElementById("videoocorrencia");
763
+
764
+ obj.setAttribute('src', "");
765
+ var objproc = document.getElementById("procedimento");
766
+ objproc.setAttribute('value', "");
767
+
768
+ var objtmp = document.getElementById("template");
769
+ objtmp.setAttribute('value', "");
770
+
771
+ // document.getElementById("videoOco").innerHTML = "<b> Video: Aguarde...</b>";
772
+ document.getElementById("IdCliente").innerHTML = "<b> Cliente: Aguarde...</b>";
773
+ document.getElementById("IdOcoView").innerHTML = "<b> ID: Aguarde...</b>";
774
+ document.getElementById("NomeRoteiro").innerHTML = "<b> Roteiro: Aguarde...</b>";
775
+ document.getElementById("DataOcorrencia").innerHTML = "<b> Data: Aguarde... </b>";
776
+ document.getElementById("Operador").innerHTML = "<b> Operador: Aguarde... </b>";
777
+ document.getElementById("Prioridade").innerHTML = "<b> Prioridade: Aguarde...</b>";
778
+
779
+ var objidOco = document.getElementById("idOco");
780
+ objidOco.setAttribute('value', "");
781
+ var objnOp = document.getElementById("nomeOperador");
782
+ objnOp.setAttribute('value', "");
783
+ var objnidChat = document.getElementById("idChat");
784
+ objnidChat.setAttribute('value', "");
785
+
786
+ document.getElementById("desbloqueio").style.display = 'none'
787
+ document.getElementById("gravar").style.display = 'none'
788
+ document.getElementById("descartar").style.display = 'none'
789
+
790
+ document.getElementById("gravar").innerHTML = "Gravar";
791
+ document.getElementById("gravar").disabled = false;
792
+
793
+ document.getElementById("descartar").innerHTML = "Descartar";
794
+ document.getElementById("descartar").disabled = false;
795
+
796
+ var objAovivo = document.getElementById("aovivo");
797
+ objAovivo.setAttribute('src', '');
798
+ objAovivo.setAttribute('class', 'refrx');
799
+
800
+ document.getElementById("audio").value = "";
801
+ document.getElementById("lastaudio").innerHTML = "";
802
+ document.getElementById("listaAudios").innerHTML = "";
803
+
804
+ }
805
+
806
+ function popupwindow(url, title, w, h) {
807
+ var left = (screen.width / 2) - (w / 2);
808
+ var top = (screen.height / 2) - (h / 2);
809
+ return window.open(url, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=' + w + ', height=' + h + ', top=' + top + ', left=' + left);
810
+ }
811
+
812
+ function openurl(url)
813
+ {
814
+ var urls = url;
815
+ if (onlyView==1)
816
+ urls = urls + "?view=true";
817
+ window.location.replace(urls);
818
+ // return window.open(urls,'_self');
819
+ }
820
+
821
+ function execDesbloqueio(url)
822
+ {
823
+ var xhttp = new XMLHttpRequest();
824
+ xhttp.onreadystatechange = function () {
825
+ if (this.readyState == 4 && this.status == 200) {
826
+ var desbloqueio = document.getElementById("desbloqueio");
827
+ desbloqueio.innerHTML = this.responseText;
828
+ }
829
+ };
830
+ var desbloqueio = document.getElementById("desbloqueio").innerHTML = "AGUARDE...";
831
+ xhttp.open("GET", url, true);
832
+ xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
833
+ xhttp.send("");
834
+
835
+ }
836
+
837
+ function sleep(time) {
838
+ return new Promise((resolve) => setTimeout(resolve, time));
839
+ }
840
+
841
+
842
+ function getVideoOcorrencia() {
843
+
844
+ if (myFila <= 0) return;
845
+
846
+
847
+ resetFormOcorrencia();
848
+ // Usage!
849
+ sleep(100).then(() => {
850
+ // Do something after the sleep!
851
+ if (myFila <= 0) return;
852
+
853
+ // document.getElementById('ocoModal').style.display = 'block';
854
+ // resetFormOcorrencia();
855
+
856
+ /* var audio = new Audio('http://atualli.ddns.net/getresource?r=alarm.ogg');
857
+ audio.addEventListener('canplaythrough', function () {
858
+ audio.play();
859
+ }); */
860
+
861
+ document.getElementById("desbloqueio").innerHTML="Desbloqueio";
862
+ document.getElementById("gravar").innerHTML = "Grava";
863
+
864
+ //document.getElementById('ocoModal').style.display = 'block'
865
+ var xhttp = new XMLHttpRequest();
866
+ xhttp.onreadystatechange = function () {
867
+ if (this.readyState == 4 && this.status == 200) {
868
+
869
+ if(this.responseText.indexOf("VAZIO") !== -1) return;
870
+
871
+ var json = JSON.parse(this.responseText);
872
+
873
+ if (json.status == "Manual") {
874
+
875
+ document.getElementById('ocoModal').style.display = 'block';
876
+ resetFormOcorrencia();
877
+
878
+ //document.getElementById('ocoModal').style.display = 'block';
879
+ document.getElementById("descartar").style.display = 'block'
880
+ document.getElementById("gravar").style.display = 'block'
881
+
882
+
883
+ document.getElementById("desbloqueio").style.display = 'none'
884
+ var obj = document.getElementById("videoocorrencia");
885
+
886
+ obj.setAttribute('src', json.video);
887
+
888
+ //document.getElementById("procedimento").innerHTML = "<b>" + json.procedimento + "</b>";
889
+ document.getElementById("template").innerHTML = json.templat ;
890
+
891
+ var objproc = document.getElementById("procedimento");
892
+ objproc.setAttribute('value', json.procedimento);
893
+
894
+ var objtmp = document.getElementById("template");
895
+ objtmp.setAttribute('value', json.templat);
896
+
897
+ var objidChat = document.getElementById("idChat");
898
+ objidChat.setAttribute('value', json.idchat);
899
+
900
+ var objCliente = document.getElementById("cliente");
901
+ objCliente.setAttribute('value', json.cliente);
902
+
903
+ var objRoteiro = document.getElementById("roteiro");
904
+ objRoteiro.setAttribute('value', json.roteiro);
905
+
906
+ var objAovivo = document.getElementById("aovivo");
907
+ objAovivo.setAttribute('src', json.urlcamera);
908
+
909
+
910
+ // document.getElementById("videoOco").innerHTML = "<b> Video: " + json.video + "</b>";
911
+ document.getElementById("IdCliente").innerHTML = "<b> Cliente: " + json.cliente + "</b>";
912
+ document.getElementById("IdOcoView").innerHTML = "<b> ID: " + json.id + "</b>";
913
+ document.getElementById("NomeRoteiro").innerHTML = "<b> Roteiro: " + json.roteiro + "</b>";
914
+ document.getElementById("DataOcorrencia").innerHTML = "<b> Data: " + json.data + "</b>";
915
+ document.getElementById("Prioridade").innerHTML = "<b> Prioridade: " + json.prioridade + "</b>";
916
+
917
+ if (json.desbloqueio) {
918
+ var desbloqueio = document.getElementById("desbloqueio");
919
+ desbloqueio.style.display = 'block'
920
+ var url = json.desbloqueio;
921
+ desbloqueio.setAttribute('onclick', "execDesbloqueio('" + url + "')");
922
+
923
+ }
924
+
925
+ var lista = json.contatos.split(/,| |-/);
926
+ var options = "<option value=\"\">REALIZAR CONTATO</option>";
927
+
928
+ for (var i = 0; i < lista.length; i += 2) {
929
+ nome = lista[i];
930
+ telefone = lista[i + 1];
931
+
932
+ options += "<option value=\"tel:80" + telefone + "\">Ligar para " + nome + " " + telefone + "</option>";
933
+ }
934
+ document.getElementById("listaContatos").innerHTML = options;
935
+
936
+ document.getElementById("Operador").innerHTML = "<b> Operador: " + document.getElementById("myLogin").innerHTML + "</b>";
937
+ var objidOco = document.getElementById("idOco");
938
+ objidOco.setAttribute('value', json.id);
939
+ var objnOp = document.getElementById("nomeOperador");
940
+ objnOp.setAttribute('value', document.getElementById("myLogin").innerHTML);
941
+
942
+ //document.getElementById('ocoModal').style.display = 'block';
943
+ }
944
+ else {
945
+ document.getElementById('ocoModal').style.display = 'none';
946
+ }
947
+
948
+ }
949
+ };
950
+ // xhttp.open("GET", "https://script.google.com/macros/s/AKfycbziTdRkV1r6WFdUMoaBAugEkywspV6TqhPE8fTQnl2FOZ6Qn2E/exec?cmd=Ocorrencia&operador=" + document.getElementById("myLogin").innerHTML, true);
951
+ xhttp.open("GET", "getdatalocal?comando=Ocorrencia&operador=" + document.getElementById("myLogin").innerHTML, true);
952
+ xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
953
+ xhttp.send("");
954
+ });
955
+ }
956
+
957
+ const fileInput = document.getElementById('audio');
958
+ fileInput.onchange = () => {
959
+ const selectedFile = fileInput.files[0];
960
+
961
+ if ((selectedFile) && (selectedFile.name.length > 0))
962
+ {
963
+ var dt = new Date();
964
+ var path = "ftp://192.168.0.10/" + dt.getFullYear() + "/" + String(dt.getMonth() + 1).padStart(2, '0') + "/" + String(dt.getDate()).padStart(2, '0') + "/";
965
+
966
+ var saudio = path+selectedFile.name;
967
+ var saudio = saudio.replace("[1]", "");
968
+
969
+ var objAudio = document.getElementById("lastaudio");
970
+ objAudio.setAttribute('href', saudio);
971
+
972
+ document.getElementById("lastaudio").innerHTML = saudio;
973
+
974
+ }
975
+ else {
976
+ document.getElementById("lastaudio").innerHTML = "";
977
+ }
978
+ }
979
+
980
+ function getUltimoAudio()
981
+ {
982
+ var xhttp = new XMLHttpRequest();
983
+ xhttp.onreadystatechange = function ()
984
+ {
985
+ if (this.readyState == 4 && this.status == 200)
986
+ {
987
+ var json = JSON.parse(this.responseText);
988
+
989
+ var file = json.voips[0].file;
990
+ var sfile = file.replace("/var/spool/asterisk/monitor", "ftp://192.168.0.10");
991
+
992
+ var objAudio = document.getElementById("lastaudio");
993
+ //objAudio.setAttribute('href', "javascript:testAudio(\"" + sfile + "\")");
994
+ objAudio.setAttribute('href', sfile);
995
+
996
+ document.getElementById("lastaudio").innerHTML = sfile;
997
+ document.getElementById("loadLastAudio").innerHTML = "Carrega Ultimos Audios";
998
+
999
+ var options = "<option value=\"\">Lista Ultimos Audios</option>";
1000
+
1001
+ for (var i = 0; i < json.voips.length; i ++) {
1002
+ var nome = json.voips[i].file;
1003
+ var snome = nome.replace("/var/spool/asterisk/monitor", "ftp://192.168.0.10");
1004
+
1005
+ options += "<option value=\"" + snome + "\">" + snome + "</option>";
1006
+ }
1007
+ document.getElementById("listaAudios").innerHTML = options;
1008
+
1009
+ }
1010
+ }
1011
+ var videoobj = document.getElementById("videoocorrencia");
1012
+ var video = videoobj.getAttribute('src');
1013
+
1014
+ var dvideo = video; // video.replace("http://atualli.ddns.net", "http://localhost:8088"); // video; // apenas para debug local
1015
+
1016
+ document.getElementById("loadLastAudio").innerHTML = "AGUARDE...";
1017
+
1018
+ xhttp.open("GET", dvideo + "&ramal=2002&phone=0", true);
1019
+ xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
1020
+ xhttp.send("");
1021
+ }
1022
+
1023
+ function testAudio(elm)
1024
+ {
1025
+ window.open(elm.value);
1026
+ }
1027
+
1028
+ function selAudio(elm) {
1029
+ if (elm.value.length > 1) {
1030
+
1031
+ var objAudio = document.getElementById("lastaudio");
1032
+ objAudio.setAttribute('href', elm.value);
1033
+
1034
+ document.getElementById("lastaudio").innerHTML = elm.value;
1035
+ }
1036
+ }
1037
+
1038
+ function sendMsgFinal(status)
1039
+ {
1040
+ var xhttp = new XMLHttpRequest();
1041
+
1042
+
1043
+ var videoobj = document.getElementById("videoocorrencia");
1044
+ var video = videoobj.getAttribute('src');
1045
+
1046
+ var objnOp = document.getElementById("nomeOperador");
1047
+ var operador = objnOp.getAttribute('value');
1048
+
1049
+ var idResp2 = document.getElementById("template").value;
1050
+ var idChat = document.getElementById("idChat").value;
1051
+
1052
+ var cliente = document.getElementById("cliente").value;
1053
+
1054
+ var roteiro = document.getElementById("roteiro").value;
1055
+
1056
+ var idOco = document.getElementById("idOco").value;
1057
+
1058
+ // var audio = document.getElementById("audio").value;
1059
+
1060
+ //var dt = new Date();
1061
+ //var path = "ftp://192.168.0.10/" + dt.getFullYear() + "/" + String (dt.getMonth() + 1).padStart(2, '0') + "/" + String (dt.getDate()).padStart(2, '0') + "/";
1062
+
1063
+ // var saudio = audio.replace("fakepath", "SIP\\Recordings");
1064
+ //var saudio = audio.replace("C:\\fakepath\\", path);
1065
+ //var saudio = saudio.replace("[1]", "");
1066
+
1067
+ var saudio = document.getElementById("lastaudio").innerHTML;
1068
+ if (saudio.length > 0)
1069
+ idResp2 = idResp2 + " (AUDIO ANEXADO)";
1070
+
1071
+
1072
+ var dvideo = video.replace("http://atualli.ddns.net", "http://localhost:8088"); // video; // apenas para debug local
1073
+ // var url = dvideo + "&idchat=" + idChat + "&status=" + status + "&idoco=" + idOco + "&motivo=" + cliente + " - " + roteiro + " - " + idResp2 + "&audio=" + saudio;
1074
+ var url = dvideo + "&idchat=" + idChat + "&status=" + status + "&idoco=" + idOco + "&cliente=" + cliente + "&roteiro=" + roteiro + "&motivo=" + idResp2 + "&audio=" + saudio;
1075
+
1076
+ xhttp.open("GET", url, true);
1077
+ xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
1078
+ xhttp.send("");
1079
+ }
1080
+
1081
+ function gravaOcorrencia()
1082
+ {
1083
+ var template = document.getElementById("template").value;
1084
+ if (template.length > 0) {
1085
+ var r = confirm("Deseja realmente salvar a ocorrencia ?");
1086
+ if (r == true) {
1087
+ var xhttp = new XMLHttpRequest();
1088
+ xhttp.onreadystatechange = function () {
1089
+ if (this.readyState == 4 && this.status == 200) {
1090
+
1091
+ var json = JSON.parse(this.responseText);
1092
+
1093
+ sendMsgFinal("grava");
1094
+
1095
+ resetFormOcorrencia();
1096
+
1097
+ document.getElementById('ocoModal').style.display = 'none';
1098
+ alert("OCORRENCIA GRAVADA COM SUCESSO !");
1099
+ document.getElementById("gravar").innerHTML = "Gravar";
1100
+ document.getElementById("gravar").disabled = false;
1101
+
1102
+ }
1103
+
1104
+ };
1105
+
1106
+ document.getElementById("gravar").innerHTML = "Aguarde..";
1107
+ document.getElementById("gravar").disabled = true;
1108
+
1109
+
1110
+ var objidOco = document.getElementById("idOco");
1111
+ var idOco = objidOco.getAttribute('value');
1112
+ var objnOp = document.getElementById("nomeOperador");
1113
+ var operador = objnOp.getAttribute('value');
1114
+ var idResp1 = document.getElementById("procedimento").value;
1115
+ var idResp2 = document.getElementById("template").value;
1116
+ var idChat = document.getElementById("idChat").value;
1117
+
1118
+ // xhttp.open("GET", "https://script.google.com/macros/s/AKfycbziTdRkV1r6WFdUMoaBAugEkywspV6TqhPE8fTQnl2FOZ6Qn2E/exec?cmd=GravaOcorrencia&idOco=" + idOco + "&resposta1=" + idResp1 + "&resposta2=" + idResp2 + "&operador=" + operador, true);
1119
+ xhttp.open("GET", "getdatalocal?comando=GravaOcorrencia&idOco=" + idOco + "&resposta1=" + idResp1 + "&resposta2=" + idResp2 + "&operador=" + operador, true);
1120
+ xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
1121
+ // xhttp.timeout = 8000; // Set timeout to 4 seconds (4000 milliseconds)
1122
+ // xhttp.ontimeout = function () { alert("Timed out!!!"); }
1123
+ xhttp.send("");
1124
+
1125
+ }
1126
+ }
1127
+ else
1128
+ alert("Preencha o campo motivo e justifique a ocorrencia !");
1129
+ }
1130
+
1131
+ function resetMosaico() {
1132
+
1133
+ var r = confirm("Deseja realmente reiniciar o Mosaico ?. Use apenas em quando as imagens estiverem congeladas a mais de 1 hora");
1134
+ if (r == true) {
1135
+ var xhttp = new XMLHttpRequest();
1136
+ xhttp.onreadystatechange = function () {
1137
+ if (this.readyState == 4 && this.status == 200) {
1138
+
1139
+
1140
+ alert("MOSAICO REINICIADO COM SUCESSO !");
1141
+ document.getElementById("reset").innerHTML = "RESET";
1142
+ document.getElementById("reset").disabled = false;
1143
+
1144
+ }
1145
+
1146
+ };
1147
+
1148
+ document.getElementById("reset").innerHTML = "AGUARDE..";
1149
+ document.getElementById("reset").disabled = true;
1150
+
1151
+
1152
+ var login = document.getElementById("myLogin").innerHTML;
1153
+ var cliente = document.getElementById("clientelabel").innerHTML;
1154
+ var texto = "AT" + cliente + "_reiniciado_pelo_operador_" + login;
1155
+
1156
+ xhttp.open("GET", "<?URLBASE?>/resetmosaico?msg=" + texto, true);
1157
+ xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
1158
+ xhttp.send("");
1159
+ }
1160
+ }
1161
+
1162
+ function descartaOcorrencia() {
1163
+
1164
+ var template = document.getElementById("template").value;
1165
+ if (template.length > 0) {
1166
+ var r = confirm("Deseja realmente descartar ocorrencia ?");
1167
+ if (r == true) {
1168
+ var xhttp = new XMLHttpRequest();
1169
+ xhttp.onreadystatechange = function () {
1170
+ if (this.readyState == 4 && this.status == 200) {
1171
+
1172
+ var json = JSON.parse(this.responseText);
1173
+
1174
+ sendMsgFinal("descarta");
1175
+
1176
+ resetFormOcorrencia();
1177
+
1178
+ document.getElementById('ocoModal').style.display = 'none';
1179
+ alert("OCORRENCIA DESCARTADA COM SUCESSO !");
1180
+ document.getElementById("descartar").innerHTML = "Descartar";
1181
+ document.getElementById("descartar").disabled = false;
1182
+
1183
+ }
1184
+
1185
+ };
1186
+
1187
+ document.getElementById("descartar").innerHTML = "Aguarde..";
1188
+ document.getElementById("descartar").disabled = true;
1189
+
1190
+
1191
+ var objidOco = document.getElementById("idOco");
1192
+ var idOco = objidOco.getAttribute('value');
1193
+ var objnOp = document.getElementById("nomeOperador");
1194
+ var operador = objnOp.getAttribute('value');
1195
+ var idResp1 = document.getElementById("procedimento").value;
1196
+
1197
+ var idResp2 = document.getElementById("template").value;
1198
+
1199
+
1200
+ // xhttp.open("GET", "https://script.google.com/macros/s/AKfycbziTdRkV1r6WFdUMoaBAugEkywspV6TqhPE8fTQnl2FOZ6Qn2E/exec?cmd=GravaOcorrencia&descarta=true&idOco=" + idOco + "&resposta1=" + idResp1 + "&resposta2=" + idResp2 + "&operador=" + operador, true);
1201
+ xhttp.open("GET", "getdatalocal?comando=GravaOcorrencia&descarta=true&idOco=" + idOco + "&resposta1=" + idResp1 + "&resposta2=" + idResp2 + "&operador=" + operador, true);
1202
+ xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
1203
+ xhttp.send("");
1204
+ }
1205
+ }
1206
+ else
1207
+ alert("Preencha o campo motivo e justifique o Descarte!");
1208
+ }
1209
+
1210
+ function myFunctionNav() {
1211
+ var x = document.getElementById("myTopnav");
1212
+ if (x.className === "topnav") {
1213
+ x.className += " responsive";
1214
+ } else {
1215
+ x.className = "topnav";
1216
+ }
1217
+ }
1218
+ var solicitaLog = 0;
1219
+ function login(login) {
1220
+ var xhttp = new XMLHttpRequest();
1221
+ xhttp.onreadystatechange = function () {
1222
+ if (this.readyState == 4) {
1223
+ solicitaLog = 0;
1224
+ }
1225
+ };
1226
+ // xhttp.open("GET", "https://script.google.com/macros/s/AKfycbziTdRkV1r6WFdUMoaBAugEkywspV6TqhPE8fTQnl2FOZ6Qn2E/exec?cmd=Login&login="+login+"&ip=0", true);
1227
+ xhttp.open("GET", "getdatalocal?comando=Login&login="+login+"&ip=0", true);
1228
+ xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
1229
+ xhttp.send("");
1230
+ }
1231
+
1232
+ function logout(login) {
1233
+ var xhttp = new XMLHttpRequest();
1234
+ xhttp.onreadystatechange = function () {
1235
+ if (this.readyState == 4) {
1236
+ solicitaLog = 0;
1237
+ }
1238
+ };
1239
+ // xhttp.open("GET", "https://script.google.com/macros/s/AKfycbziTdRkV1r6WFdUMoaBAugEkywspV6TqhPE8fTQnl2FOZ6Qn2E/exec?cmd=Logout&login=" + login + "&ip=0", true);
1240
+ xhttp.open("GET", "getdatalocal?comando=Logout&login=" + login + "&ip=0", true);
1241
+ xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
1242
+ xhttp.send("");
1243
+ }
1244
+
1245
+
1246
+ function setoperacao() {
1247
+
1248
+ var status = document.getElementById("operacao").innerHTML;
1249
+ var usuario = document.getElementById("myLogin").innerHTML;
1250
+
1251
+ if ((usuario != "LOGIN") && (usuario != "")) {
1252
+ if (status == "QUERO TRABALHAR") {
1253
+ solicitaLog = 1;
1254
+ document.getElementById("operacao").innerHTML = "AGUARDE...";
1255
+ login(usuario);
1256
+ }
1257
+ if (status == "TRABALHANDO") {
1258
+ solicitaLog = 1;
1259
+ document.getElementById("operacao").innerHTML = "AGUARDE...";
1260
+ logout(usuario);
1261
+ }
1262
+ }
1263
+ }
1264
+
1265
+ function getFila()
1266
+ {
1267
+ if (onlyView==1) {
1268
+ document.getElementById("operacao").innerHTML = "VISUALIZANDO";
1269
+ tamFila = 0;
1270
+ myFila = 0;
1271
+ return;
1272
+ }
1273
+
1274
+ var xhttp = new XMLHttpRequest();
1275
+ xhttp.onreadystatechange = function () {
1276
+ if (this.readyState == 4 && this.status == 200) {
1277
+
1278
+ var json = JSON.parse(this.responseText);
1279
+
1280
+ document.getElementById("Fila").innerHTML = "FILA OCORRENCIAS " + "(" + json.myFila +"/"+json.numFila + ") ";
1281
+ if (solicitaLog == 0) {
1282
+ document.getElementById("operacao").innerHTML = json.status;
1283
+ }
1284
+
1285
+ var status = document.getElementById("operacao").innerHTML;
1286
+ if (status == "TRABALHANDO") {
1287
+ if (json.numFila != "0") {
1288
+ tamFila = parseInt(json.numFila);
1289
+ myFila = parseInt(json.myFila);
1290
+
1291
+ if (document.getElementById('ocoModal').style.display != 'block') {
1292
+ getVideoOcorrencia();
1293
+ }
1294
+ }
1295
+ else {
1296
+ tamFila = 0;
1297
+ myFila = 0;
1298
+ }
1299
+ }
1300
+ else {
1301
+ tamFila = 0;
1302
+ myFila = 0;
1303
+ }
1304
+ }
1305
+ };
1306
+ var usuario = document.getElementById("myLogin").innerHTML;
1307
+ // xhttp.open("GET", "https://script.google.com/macros/s/AKfycbziTdRkV1r6WFdUMoaBAugEkywspV6TqhPE8fTQnl2FOZ6Qn2E/exec?cmd=F2ila&login="+usuario, true);
1308
+ xhttp.open("GET", "getdatalocal?comando=F2ila&login="+usuario, true);
1309
+ xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
1310
+ xhttp.send("");
1311
+ }
1312
+
1313
+ function gogo2()
1314
+ {
1315
+ getFila()
1316
+ setTimeout(gogo2, to * 1000);
1317
+ }
1318
+
1319
+
1320
+ function refreshimg(img)
1321
+ {
1322
+
1323
+ }
1324
+
1325
+ function imgRedirect(img)
1326
+ {
1327
+
1328
+ }
1329
+
1330
+
1331
+ function errorloadimg(img) {
1332
+
1333
+ var d = new Date(),
1334
+ dummy = d.getTime();
1335
+ var newurl = 'getresource?r=atualli.png&';
1336
+
1337
+ var obj = img,
1338
+ s_rc = obj.getAttribute('src'),
1339
+ pure_src = s_rc.substring(s_rc.indexOf('c='), s_rc.indexOf('c=') + 4);
1340
+ obj.setAttribute('src',newurl+pure_src + '&' + dummy);
1341
+ //obj.nextSibling.innerHTML = obj.getAttribute('src');
1342
+
1343
+
1344
+ }
1345
+
1346
+
1347
+ var resx = 1000;
1348
+ var resy = 1000;
1349
+
1350
+
1351
+ function binaryToDataURL(inputArray){
1352
+ let TYPED_ARRAY = new Uint8Array(inputArray);
1353
+ const STRING_CHAR = String.fromCharCode.apply(null, TYPED_ARRAY);
1354
+ let base64String = btoa(STRING_CHAR);
1355
+
1356
+ var uri = 'data:image/jpeg;base64,' + base64String;
1357
+ return uri;
1358
+ }
1359
+
1360
+ var canvasx=480;
1361
+ var canvasy=320;
1362
+ var urlBase = '<?URL?>'
1363
+ async function playframe(img,blob)
1364
+ {
1365
+ /* const ArrayBuffer = await blob.arrayBuffer();
1366
+
1367
+ const src = binaryToDataURL(ArrayBuffer);
1368
+ img.src = src;
1369
+ img.onload = function () {
1370
+
1371
+ var ids = this.id;
1372
+ var cam = "cvc" + ids.substring(3, 5);
1373
+ var c = document.getElementById(cam);
1374
+ var ctx = c.getContext("2d");
1375
+
1376
+ var resx = 720; //this.width
1377
+ var resy = 480; //this.height;
1378
+ c.setAttribute('width', resx);
1379
+ c.setAttribute('height', resy);
1380
+ ctx.drawImage(this, 0, 0, resx, resy);
1381
+
1382
+ }; */
1383
+
1384
+
1385
+ // const ArrayBuffer = await blob.arrayBuffer();
1386
+ // let TYPED_ARRAY = new Uint8Array(ArrayBuffer);
1387
+
1388
+ var fileReader = new FileReader();
1389
+
1390
+ fileReader.onload = function(event) {
1391
+ ArrayBuffer = event.target.result;
1392
+ let TYPED_ARRAY = new Uint8Array(ArrayBuffer);
1393
+ // let TYPED_ARRAY = new Uint16Array(ArrayBuffer);
1394
+
1395
+ var ids = img.id;
1396
+ var cam = "cvc" + ids.substring(3, 5);
1397
+ var c = document.getElementById(cam);
1398
+ var ctx = c.getContext("2d");
1399
+
1400
+ var resx = canvasx;
1401
+ var resy = canvasy;
1402
+ c.setAttribute('width', resx);
1403
+ c.setAttribute('height', resy);
1404
+
1405
+ const imageData = ctx.createImageData(resx, resy);
1406
+
1407
+ // Iterate through every pixel
1408
+ let j=0;
1409
+ /*
1410
+ const m = new Uint16Array(3);
1411
+ let p = new Uint16Array(3);
1412
+
1413
+ m[0] = 0xF800;
1414
+ m[1] = 0x07E0;
1415
+ m[2] = 0x001F;
1416
+
1417
+ for (let i = 0; i < imageData.data.length; i += 4) {
1418
+ // Modify pixel data
1419
+
1420
+ const pixel = TYPED_ARRAY[j];
1421
+ p[0] = (pixel & m[0]) >> 11;
1422
+ p[1] = (pixel & m[1]) >> 5;
1423
+ p[2] = (pixel & m[2]);
1424
+
1425
+ imageData.data[i + 0] = p[0]; // R value
1426
+ imageData.data[i + 1] = p[1]; // G value
1427
+ imageData.data[i + 2] = p[2]; // B value
1428
+ imageData.data[i + 3] = 255; // A value
1429
+ j++;
1430
+ }
1431
+ */
1432
+ for (let i = 0; i < imageData.data.length; i += 4) {
1433
+ // Modify pixel data
1434
+
1435
+ imageData.data[i + 0] = TYPED_ARRAY[j + 2]; // R value
1436
+ imageData.data[i + 1] = TYPED_ARRAY[j + 1]; // G value
1437
+ imageData.data[i + 2] = TYPED_ARRAY[j + 0]; // B value
1438
+ imageData.data[i + 3] = 255; // A value
1439
+ j+=3;
1440
+ }
1441
+ ctx.putImageData(imageData, 0, 0);
1442
+ }
1443
+ fileReader.readAsArrayBuffer(blob);
1444
+
1445
+
1446
+ }
1447
+
1448
+ async function playstream(img)
1449
+ {
1450
+ img.setAttribute("data-completed", 0);
1451
+ var cam = img.id.substring(3, 5);
1452
+ var newurl = urlBase + "c=" + cam + "&resx=" + canvasx + "&resy=" + canvasy ;
1453
+ let wnewurl = newurl.replace("http","ws");
1454
+ wnewurl = wnewurl.replace("getcamera","getstream");
1455
+ // wnewurl = wnewurl.replace("getcamera","stream");
1456
+
1457
+ var ws = new WebSocket(wnewurl);
1458
+
1459
+ ws.onopen = function () {
1460
+ console.log("Message to send");
1461
+ img.setAttribute("data-completed", 0);
1462
+
1463
+ };
1464
+
1465
+ ws.onmessage = function (evt) {
1466
+
1467
+ playframe(img,evt.data);
1468
+
1469
+ };
1470
+
1471
+ ws.onclose = function () {
1472
+
1473
+ // websocket is closed.
1474
+ console.log("Connection is closed...");
1475
+ img.setAttribute("data-completed", -1);
1476
+
1477
+ };
1478
+
1479
+ }
1480
+
1481
+ async function preload(img)
1482
+ {
1483
+ var imp = function(img) {
1484
+ var cam = img.id.substring(3, 5);
1485
+ var newurl = urlBase + "c=" + cam;
1486
+
1487
+ var xhttp = new XMLHttpRequest();
1488
+ xhttp.onreadystatechange = function ()
1489
+ {
1490
+ if (this.readyState == 4 && this.status == 200)
1491
+ {
1492
+ var json = this.response;
1493
+
1494
+ var reader = new FileReader();
1495
+ reader.onloadend = function ()
1496
+ {
1497
+
1498
+ if (reader.result.length > 0)
1499
+ {
1500
+ img.src = reader.result;
1501
+
1502
+ img.onload = function ()
1503
+ {
1504
+
1505
+ var ids = this.id;
1506
+ var cam = "cvc" + ids.substring(3, 5);
1507
+ var c = document.getElementById(cam);
1508
+ var ctx = c.getContext("2d");
1509
+
1510
+
1511
+ c.setAttribute('width', canvasx);
1512
+ c.setAttribute('height', canvasy);
1513
+ ctx.drawImage(this, 0, 0, canvasx, canvasy);
1514
+
1515
+ }
1516
+ }
1517
+
1518
+ }
1519
+ reader.readAsDataURL(json);
1520
+ }
1521
+ };
1522
+
1523
+ xhttp.open("GET", newurl, true);
1524
+ xhttp.responseType = 'blob';
1525
+ xhttp.send(null);
1526
+ }
1527
+ imp(img);
1528
+ }
1529
+
1530
+ async function playget(img)
1531
+ {
1532
+ var imp = function(img) {
1533
+ img.src = img.src;
1534
+ img.setAttribute("data-completed", -1);
1535
+ img.onload = function () {
1536
+
1537
+ var ids = this.id;
1538
+ var cam = "cvc" + ids.substring(3, 5);
1539
+ var c = document.getElementById(cam);
1540
+ var ctx = c.getContext("2d");
1541
+ c.setAttribute('width', canvasx);
1542
+ c.setAttribute('height', canvasy);
1543
+ ctx.drawImage(this, 0, 0, canvasx, canvasy);
1544
+ }
1545
+ }
1546
+ imp(img);
1547
+ }
1548
+
1549
+ function gogo() {
1550
+
1551
+ var pix = document.getElementsByClassName('refr');
1552
+ for (var i = 0; i < pix.length; i++) {
1553
+
1554
+ var img = pix[i];
1555
+
1556
+
1557
+ if (!img.hasAttribute("data-completed") || img.getAttribute("data-completed")<0)
1558
+ {
1559
+ if(first==0)
1560
+ {
1561
+ playget(img);
1562
+ }
1563
+ if(first==1)
1564
+ {
1565
+ preload(img);
1566
+ }
1567
+ if(first>1)
1568
+ {
1569
+ playstream(img);
1570
+ }
1571
+ }
1572
+
1573
+ }
1574
+ if(first<=1) {
1575
+ setTimeout(gogo, 1);
1576
+ } else {
1577
+ setTimeout(gogo, 500);
1578
+ }
1579
+ first++;
1580
+
1581
+ }
1582
+
1583
+
1584
+
1585
+ function iniciaPagina()
1586
+ {
1587
+ const urlParams = new URLSearchParams(window.location.search);
1588
+ const myParam = urlParams.get('view');
1589
+ if (myParam)
1590
+ onlyView = 1;
1591
+ gogo2();
1592
+ // document.getElementById("Fila").setAttribute('onclick', "document.getElementById('ocoModal').style.display = 'block'; getVideoOcorrencia();");
1593
+
1594
+ gogo();
1595
+
1596
+ let cliente=document.getElementById("clientelabel").innerHTML;
1597
+ cliente=cliente.trim();
1598
+ var novaGrade=getCookie("GRADE-"+cliente);
1599
+ if(novaGrade)
1600
+ changeGrade(novaGrade);
1601
+ else
1602
+ changeGrade("Auto");
1603
+
1604
+ setCookie("CLIENTE",cliente,10);
1605
+
1606
+ // selecionaOperador(getCookie("LOGIN"));
1607
+ // document.getElementById("Fila").setAttribute('onclick', "getVideoOcorrencia();");
1608
+ }
1609
+
1610
+ //Make the DIV element draggagle:
1611
+ dragElement(document.getElementById("ocoModal"));
1612
+
1613
+ function dragElement(elmnt) {
1614
+ var pos1 = 0, pos2 = 0, pos3 = 0, pos4 = 0;
1615
+ if (document.getElementById(elmnt.id + "header")) {
1616
+ /* if present, the header is where you move the DIV from:*/
1617
+ document.getElementById(elmnt.id + "header").onmousedown = dragMouseDown;
1618
+ } else {
1619
+ /* otherwise, move the DIV from anywhere inside the DIV:*/
1620
+ elmnt.onmousedown = dragMouseDown;
1621
+ }
1622
+
1623
+ function dragMouseDown(e) {
1624
+ e = e || window.event;
1625
+ //e.preventDefault();
1626
+ // get the mouse cursor position at startup:
1627
+ pos3 = e.clientX;
1628
+ pos4 = e.clientY;
1629
+ var elementId = e.srcElement.id;
1630
+ if (elementId != "template") {
1631
+ document.onmouseup = closeDragElement;
1632
+ // call a function whenever the cursor moves:
1633
+ document.onmousemove = elementDrag;
1634
+ }
1635
+ }
1636
+
1637
+ function elementDrag(e) {
1638
+ e = e || window.event;
1639
+ //e.preventDefault();
1640
+ // calculate the new cursor position:
1641
+ pos1 = pos3 - e.clientX;
1642
+ pos2 = pos4 - e.clientY;
1643
+ pos3 = e.clientX;
1644
+ pos4 = e.clientY;
1645
+ // set the element's new position:
1646
+ elmnt.style.top = (elmnt.offsetTop - pos2) + "px";
1647
+ elmnt.style.left = (elmnt.offsetLeft - pos1) + "px";
1648
+ }
1649
+
1650
+ function closeDragElement() {
1651
+ /* stop moving when mouse button is released:*/
1652
+ document.onmouseup = null;
1653
+ document.onmousemove = null;
1654
+ }
1655
+ }
1656
+ </script>
1657
+
1658
+
1659
+ </body>
1660
+
1661
+ </html>
1662
+
1663
+
1664
+
static/accessdenied.png ADDED
static/alogo.PNG ADDED
static/anonymus.jpg ADDED
static/atualli.png ADDED
static/atualli_old.png ADDED
static/audioocorrencia.ogg ADDED
Binary file (8.39 kB). View file
 
static/cam-log.png ADDED
static/caveira.png ADDED
static/celula.html ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ <div class="column">
2
+ <img title="<ATSCAM>" src="getcamera?c=<ATCAM>&123" class="refr" alt="" style="width:100%" onclick="imgRedirect('zoom?n=1&m=1&p=<ATCAM>')">
3
+ </div>
static/celulaestatica.html ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ <td rowspan="4" colspan="4">
2
+ <img src="getcamera?c=<ATCAM>&123" class="refr" alt="" width="400%" height="400%" onclick="imgRedirect('zoom?n=1&m=1&p=<ATCAM>')">
3
+ </td>
static/csa.html ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+
5
+ <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
6
+ <meta http-equiv="Pragma" content="no-cache" />
7
+ <meta http-equiv="Expires" content="0" />
8
+ <meta charset="utf-8" />
9
+ <title>CSA</title>
10
+ <meta name="viewport" content="width=device-width, initial-scale=1">
11
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
12
+ <style>
13
+ body {
14
+ margin: 0;
15
+ }
16
+ iframe {
17
+ display: block;
18
+ background: #ffffff;
19
+ border: none;
20
+ height: 100vh;
21
+ width: 100vw;
22
+ }
23
+ </style>
24
+ </head>
25
+ <body>
26
+
27
+ <iframe id="clienteiframe" src="/csa-COLEGIO-SANTO-AMERICO2.html">
28
+ </iframe>
29
+
30
+ <script async">
31
+
32
+ iniciaPagina();
33
+ function getCookie(name) {
34
+ return window.localStorage.getItem(name);
35
+ }
36
+
37
+ function iniciaPagina()
38
+ {
39
+
40
+ var cliente=getCookie("CLIENTEVIEW2");
41
+ var objAovivo = document.getElementById("clienteiframe");
42
+ if(cliente)
43
+ {
44
+ objAovivo.setAttribute('src', "/csa-"+cliente+".html");
45
+ }
46
+ else
47
+ {
48
+ objAovivo.setAttribute('src', "/csa-COLEGIO-SANTO-AMERICO2.html");
49
+ }
50
+ }
51
+
52
+ </script>
53
+ </body>
54
+
55
+ </html>
56
+
57
+
58
+
59
+
static/csaTemplate.html ADDED
@@ -0,0 +1,2326 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+
5
+ <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
6
+ <meta http-equiv="Pragma" content="no-cache" />
7
+ <meta http-equiv="Expires" content="0" />
8
+ <meta charset="utf-8" />
9
+ <title>SANTO AMERICO MOSAICO WEB</title>
10
+ <meta name="viewport" content="width=device-width, initial-scale=1">
11
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
12
+ <style>
13
+ * {
14
+ box-sizing: border-box;
15
+ }
16
+
17
+ body {
18
+ margin: 0;
19
+ font-family: Arial;
20
+ background: #000000;
21
+ }
22
+
23
+ #logo {
24
+ width: 100%;
25
+ top: 10px;
26
+ z-index: 1;
27
+ }
28
+
29
+ .title_print, .reporting_period {
30
+ text-align: center;
31
+ }
32
+
33
+ .header {
34
+ text-align: center;
35
+ padding: 0.05%;
36
+ background: #053067;
37
+ color: white;
38
+ }
39
+
40
+ .buttondiv {
41
+ float: left;
42
+ overflow: auto;
43
+ padding: 4px 10px;
44
+
45
+ }
46
+
47
+ .buttonfila {
48
+
49
+ font-size: 14px;
50
+ border-radius: 25px;
51
+ border: 2px solid black;
52
+ outline: none;
53
+ color: white;
54
+ padding: 11px 16px;
55
+ background-color: #000000;
56
+ font-family: inherit;
57
+ margin: 0;
58
+
59
+ }
60
+
61
+ .buttonwork {
62
+
63
+ font-size: 14px;
64
+ border-radius: 25px;
65
+ // border: none;
66
+ border: 2px solid black;
67
+ outline: none;
68
+ color: white;
69
+ padding: 11px 16px;
70
+ background-color: #339BFF;
71
+ font-family: inherit;
72
+ margin: 0;
73
+ }
74
+
75
+
76
+ .tudo {
77
+
78
+ // position: absolute;
79
+ // display: none;
80
+ // flex-wrap: wrap;
81
+ // background: #000000;
82
+ // height: 100%;
83
+ // width: 100%;
84
+ }
85
+
86
+ /* Bottom left text */
87
+ .bottom-left {
88
+ position: absolute;
89
+ bottom: 8px;
90
+ left: 16px;
91
+ }
92
+
93
+ /* Top left text */
94
+ .top-left {
95
+ position: absolute;
96
+ top: 18px;
97
+ left: 16px;
98
+ }
99
+
100
+ /* Top right text */
101
+ .top-right {
102
+ position: absolute;
103
+ top: 18px;
104
+ right: 16px;
105
+ }
106
+
107
+ /* Bottom right text */
108
+ .bottom-right {
109
+ position: absolute;
110
+ bottom: 8px;
111
+ right: 16px;
112
+ }
113
+
114
+ /* Centered text */
115
+ .centered {
116
+ position: absolute;
117
+ top: 50%;
118
+ left: 50%;
119
+ transform: translate(-50%, -50%);
120
+ }
121
+
122
+ .row {
123
+ // position: fixed;
124
+ display: none;
125
+ flex-wrap: wrap;
126
+ padding: 6.3vh 0;
127
+ background: #000000;
128
+ width:100%;
129
+ height:92%;
130
+ }
131
+
132
+ .rowblock {
133
+ display: none;
134
+ flex-wrap: wrap;
135
+ padding: 100% 0;
136
+ background-image: url('getresource?r=accessdenied.png');
137
+ height: 100%;
138
+ }
139
+
140
+ /* Create four equal columns that sits next to each other */
141
+ .column7x {
142
+ flex: 14.28%;
143
+ max-width: 14.28%;
144
+ padding: 0 2px;
145
+ }
146
+ .column7x img {
147
+ margin-top: 2px;
148
+ vertical-align: middle;
149
+ }
150
+
151
+ .column7x:active canvas {
152
+ position: fixed;
153
+ top: 50%;
154
+ left: 0;
155
+ width: 100%;
156
+ height: 100%;
157
+ -webkit-transform: translateY(-50%);
158
+ transform: translateY(-50%);
159
+ cursor: zoom-out;
160
+ }
161
+
162
+ .column6x {
163
+ flex: 16.6%;
164
+ max-width: 16.6%;
165
+ padding: 0 2px;
166
+ }
167
+ .column6x img {
168
+ margin-top: 2px;
169
+ vertical-align: middle;
170
+ }
171
+
172
+ .column6x:active canvas {
173
+ position: fixed;
174
+ top: 50%;
175
+ left: 0;
176
+ width: 100%;
177
+ height: 100%;
178
+ -webkit-transform: translateY(-50%);
179
+ transform: translateY(-50%);
180
+ cursor: zoom-out;
181
+ }
182
+
183
+
184
+ .column5x {
185
+ flex: 20%;
186
+ max-width: 20%;
187
+ padding: 0 2px;
188
+ }
189
+ .column5x img {
190
+ margin-top: 2px;
191
+ vertical-align: middle;
192
+ }
193
+
194
+ .column5x:active canvas {
195
+ position: fixed;
196
+ top: 50%;
197
+ left: 0;
198
+ width: 100%;
199
+ height: 100%;
200
+ -webkit-transform: translateY(-50%);
201
+ transform: translateY(-50%);
202
+ cursor: zoom-out;
203
+ }
204
+
205
+
206
+ .column3x {
207
+ flex: 33.33%;
208
+ max-width: 33.33%;
209
+ padding: 0 2px;
210
+ }
211
+ .column3x img {
212
+ margin-top: 2px;
213
+ vertical-align: middle;
214
+ }
215
+
216
+ .column3x:active canvas {
217
+ position: fixed;
218
+ top: 50%;
219
+ left: 0;
220
+ width: 100%;
221
+ height: 100%;
222
+ -webkit-transform: translateY(-50%);
223
+ transform: translateY(-50%);
224
+ cursor: zoom-out;
225
+ }
226
+
227
+
228
+ .column {
229
+ flex: 25%;
230
+ max-width: 25%;
231
+ padding: 0 2px;
232
+ }
233
+
234
+ .column img {
235
+ margin-top: 2px;
236
+ vertical-align: middle;
237
+
238
+ }
239
+
240
+ .column:hover img {
241
+ /* position: absolute;
242
+ // bottom: 0%;
243
+ left: 0;
244
+ right: 0;
245
+ height: 50%;
246
+ width: 50%;
247
+ background: rgba(0, 0, 0, 0.5);
248
+ padding: 5px 10px;
249
+ transition: all 1s;
250
+ color: white; */
251
+ }
252
+ .column:active canvas {
253
+ position: fixed;
254
+ top: 50%;
255
+ left: 0;
256
+ width: 100%;
257
+ height: 100%;
258
+ -webkit-transform: translateY(-50%);
259
+ transform: translateY(-50%);
260
+ cursor: zoom-out;
261
+ }
262
+
263
+ /* Responsive layout - makes a two column-layout instead of four columns */
264
+ @media screen and (max-width: 800px) {
265
+ .column {
266
+ flex: 50%;
267
+ max-width: 50%;
268
+ }
269
+ }
270
+
271
+ /* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
272
+ @media screen and (max-width: 600px) {
273
+ .column {
274
+ flex: 100%;
275
+ max-width: 100%;
276
+ }
277
+ }
278
+
279
+ #popupbox {
280
+ margin: 0;
281
+ margin-left: 40%;
282
+ margin-right: 40%;
283
+ margin-top: 50px;
284
+ padding-top: 10px;
285
+ width: 20%;
286
+ height: 150px;
287
+ position: fixed;
288
+ background: #FBFBF0;
289
+ border: solid #000000 2px;
290
+ z-index: 9;
291
+ font-family: arial;
292
+ visibility: hidden;
293
+ }
294
+
295
+
296
+ #ocorrencia {
297
+ margin: 0;
298
+ margin-left: 25%;
299
+ margin-right: 25%;
300
+ margin-top: 12%;
301
+ padding-top: 10px;
302
+ width: 50%;
303
+ height: 50%;
304
+ position: fixed;
305
+ background: white;
306
+ border: solid black 2px;
307
+ z-index: 9;
308
+ font-family: arial;
309
+ visibility: hidden;
310
+ }
311
+
312
+ .sidenav {
313
+ height: 100%;
314
+ width: 0;
315
+ position: fixed;
316
+ z-index: 1;
317
+ top: 0;
318
+ left: 0;
319
+ background-color: #111;
320
+ overflow-x: hidden;
321
+ transition: 0.5s;
322
+ padding-top: 60px;
323
+ }
324
+
325
+ .sidenav a {
326
+ padding: 8px 8px 8px 32px;
327
+ text-decoration: none;
328
+ font-size: 25px;
329
+ color: #818181;
330
+ display: block;
331
+ transition: 0.3s;
332
+ }
333
+
334
+ .sidenav a:hover {
335
+ color: #f1f1f1;
336
+ }
337
+
338
+ .sidenav .closebtn {
339
+ position: absolute;
340
+ top: 0;
341
+ right: 25px;
342
+ font-size: 36px;
343
+ margin-left: 50px;
344
+ }
345
+
346
+ @media screen and (max-height: 450px) {
347
+ .sidenav {padding-top: 15px;}
348
+ .sidenav a {font-size: 18px;}
349
+ }
350
+
351
+ .topnav {
352
+ position: fixed;
353
+ top: 0;
354
+ width: 100%;
355
+ height:6.3vh;
356
+ overflow: hidden;
357
+ background-color: #fefefe;
358
+ }
359
+
360
+
361
+ .topnav a {
362
+ float: left;
363
+ display: block;
364
+ color: #000000;
365
+ text-align: center;
366
+ padding: 14px 16px;
367
+ text-decoration: none;
368
+ font-size: 17px;
369
+ }
370
+
371
+ .active {
372
+ background-color: #4CAF50;
373
+ color: white;
374
+ }
375
+
376
+ .topnav .icon {
377
+ display: none;
378
+ }
379
+
380
+ .dropdown {
381
+ float: left;
382
+ overflow: auto;
383
+ padding: 4px 10px;
384
+
385
+ }
386
+
387
+ .dropdown .dropbtn {
388
+ font-size: 14px;
389
+ border-radius: 25px;
390
+ border: 2px solid black;
391
+ outline: none;
392
+ color: black;
393
+ padding: 11px 16px;
394
+ background-color: #fefefe;
395
+ font-family: inherit;
396
+ margin: 0;
397
+ }
398
+
399
+ .dropdown-content {
400
+ display: none;
401
+ position: fixed;
402
+ background-color: #f9f9f9;
403
+ min-width: 160px;
404
+ overflow: auto;
405
+ max-height: 90%;/* you can change as you need it */
406
+ box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
407
+ z-index: 1;
408
+ }
409
+
410
+ .dropdown-content a {
411
+ float: none;
412
+ color: black;
413
+ padding: 12px 16px;
414
+ text-decoration: none;
415
+ display: block;
416
+ text-align: left;
417
+ }
418
+
419
+ .topnav a:hover, .dropdown:hover .dropbtn {
420
+ background-color: #555;
421
+ color: white;
422
+ }
423
+
424
+ .dropdown-content a:hover {
425
+ background-color: #ddd;
426
+ color: black;
427
+ }
428
+
429
+ .dropdown:hover .dropdown-content {
430
+ display: block;
431
+ }
432
+
433
+ @media screen and (max-width: 1300px) {
434
+ .topnav a:not(:first-child), .dropdown .dropbtn {
435
+ display: none;
436
+ }
437
+
438
+ .topnav a.icon {
439
+ float: right;
440
+ display: block;
441
+ }
442
+ }
443
+
444
+ @media screen and (max-width: 1300px) {
445
+ .topnav.responsive {
446
+ position: relative;
447
+ height:1%;
448
+ }
449
+
450
+ .topnav.responsive .icon {
451
+ position: absolute;
452
+ right: 0;
453
+ top: 0;
454
+ }
455
+
456
+ .topnav.responsive a {
457
+ float: none;
458
+ display: block;
459
+ text-align: left;
460
+ }
461
+
462
+ .topnav.responsive .dropdown {
463
+ float: none;
464
+ }
465
+
466
+ .topnav.responsive .dropdown-content {
467
+ position: relative;
468
+ }
469
+
470
+ .topnav.responsive .dropdown .dropbtn {
471
+ display: block;
472
+ width: 100%;
473
+ text-align: left;
474
+ }
475
+ }
476
+ /*
477
+ novo popup
478
+ */
479
+
480
+ /* Button used to open the contact form - fixed at the bottom of the page */
481
+ .open-button {
482
+ background-color: #555;
483
+ color: white;
484
+ padding: 16px 20px;
485
+ border: none;
486
+ cursor: pointer;
487
+ opacity: 0.8;
488
+ position: fixed;
489
+ bottom: 23px;
490
+ right: 28px;
491
+ width: 280px;
492
+ }
493
+
494
+ /* The popup form - hidden by default */
495
+ .form-popup {
496
+ display: none;
497
+ position: fixed;
498
+ bottom: 0;
499
+ right: 15px;
500
+ border: 3px solid #f1f1f1;
501
+ z-index: 9;
502
+ }
503
+
504
+ /* Add styles to the form container */
505
+ .form-container {
506
+ max-width: 300px;
507
+ padding: 10px;
508
+ background-color: white;
509
+ }
510
+
511
+ /* Full-width input fields */
512
+ .form-container input[type=text], .form-container input[type=password] {
513
+ width: 100%;
514
+ padding: 15px;
515
+ margin: 5px 0 22px 0;
516
+ border: none;
517
+ background: #f1f1f1;
518
+ }
519
+
520
+ /* When the inputs get focus, do something */
521
+ .form-container input[type=text]:focus, .form-container input[type=password]:focus {
522
+ background-color: #ddd;
523
+ outline: none;
524
+ }
525
+
526
+ /* Set a style for the submit/login button */
527
+ .form-container .btn {
528
+ background-color: #4CAF50;
529
+ color: white;
530
+ padding: 16px 20px;
531
+ border: none;
532
+ cursor: pointer;
533
+ width: 100%;
534
+ margin-bottom: 10px;
535
+ opacity: 0.8;
536
+ }
537
+
538
+ /* Add a red background color to the cancel button */
539
+ .form-container .cancel {
540
+ background-color: red;
541
+ }
542
+
543
+ /* Add some hover effects to buttons */
544
+ .form-container .btn:hover, .open-button:hover {
545
+ opacity: 1;
546
+ }
547
+ /* POPUP central */
548
+ /* Full-width input fields */
549
+ input[type=text], input[type=password] {
550
+ width: 100%;
551
+ padding: 12px 20px;
552
+ margin: 8px 0;
553
+ display: inline-block;
554
+ border: 1px solid #ccc;
555
+ box-sizing: border-box;
556
+ }
557
+
558
+
559
+ /* Set a style for all buttons */
560
+ .button {
561
+ background-color: #4CAF50;
562
+ color: white;
563
+ padding: 14px 20px;
564
+ margin: 8px 0;
565
+ border: none;
566
+ cursor: pointer;
567
+ width: 100%;
568
+ text-align: center;
569
+ }
570
+
571
+ button:hover {
572
+ opacity: 0.8;
573
+ }
574
+
575
+ /* Extra styles for the cancel button */
576
+ .cancelbtn {
577
+ width: 100%;
578
+ padding: 10px 18px;
579
+ background-color: #f44336;
580
+ text-align: center;
581
+ }
582
+
583
+ /* Center the image and position the close button */
584
+ .imgcontainer {
585
+ text-align: center;
586
+ margin: 24px 0 12px 0;
587
+ position: relative;
588
+ border: 3px solid #fff;
589
+ background: #f1f1f1;
590
+ width: 100%;
591
+ // min-height: 450px;
592
+
593
+ }
594
+
595
+
596
+ .imgchild {
597
+ width: 50%;
598
+ height: 26vw;
599
+ float: left;
600
+ padding: 0px;
601
+ margin: 0 0;
602
+ border: 1px solid #000;
603
+ }
604
+
605
+ img.avatar {
606
+ width: 40%;
607
+ border-radius: 50%;
608
+ }
609
+
610
+ .container {
611
+ padding: 16px;
612
+ }
613
+
614
+ .select {
615
+ padding: 16px;
616
+ width: 40%;
617
+ }
618
+
619
+ .select_audio {
620
+ width: 40%;
621
+ }
622
+
623
+ options {
624
+ padding: 16px;
625
+ width: 40%;
626
+ }
627
+
628
+ span.psw {
629
+ float: right;
630
+ padding-top: 16px;
631
+ }
632
+
633
+ /* The Modal (background) */
634
+ .modal {
635
+ display: none; /* Hidden by default */
636
+ position: fixed; /* Stay in place */
637
+ z-index: 1; /* Sit on top */
638
+ left: 0;
639
+ top: 0;
640
+ width: 100%; /* Full width */
641
+ height: 100%; /* Full height */
642
+ overflow: auto; /* Enable scroll if needed */
643
+ background-color: rgb(0,0,0); /* Fallback color */
644
+ background-color: rgba(0,0,0,0.0); /* Black w/ opacity */
645
+ padding-top: 60px;
646
+ }
647
+
648
+ /* Hide scrollbar for Chrome, Safari and Opera */
649
+ .modal::-webkit-scrollbar {
650
+ display: none;
651
+ }
652
+
653
+ /* Hide scrollbar for IE, Edge and Firefox */
654
+ .modal {
655
+ -ms-overflow-style: none; /* IE and Edge */
656
+ scrollbar-width: none; /* Firefox */
657
+ }
658
+
659
+ /* Modal Content/Box */
660
+ .modal-content {
661
+ background-color: #fefefe;
662
+ margin: 5% auto 15% auto; /* 5% from the top, 15% from the bottom and centered */
663
+ border: 1px solid #888;
664
+ width: 60%; /* Could be more or less, depending on screen size */
665
+ }
666
+
667
+ /* The Close Button (x) */
668
+ .close {
669
+ position: absolute;
670
+ right: 25px;
671
+ top: 0;
672
+ color: #000;
673
+ font-size: 35px;
674
+ font-weight: bold;
675
+ }
676
+
677
+ .close:hover,
678
+ .close:focus {
679
+ color: red;
680
+ cursor: pointer;
681
+ }
682
+
683
+ /* Add Zoom Animation */
684
+ .animate {
685
+ -webkit-animation: animatezoom 0.6s;
686
+ animation: animatezoom 0.6s
687
+ }
688
+
689
+ @-webkit-keyframes animatezoom {
690
+ from {
691
+ -webkit-transform: scale(0)
692
+ }
693
+
694
+ to {
695
+ -webkit-transform: scale(1)
696
+ }
697
+ }
698
+
699
+ @keyframes animatezoom {
700
+ from {
701
+ transform: scale(0)
702
+ }
703
+
704
+ to {
705
+ transform: scale(1)
706
+ }
707
+ }
708
+
709
+ /* Change styles for span and cancel button on extra small screens */
710
+ @media screen and (max-width: 300px) {
711
+ span.psw {
712
+ display: block;
713
+ float: none;
714
+ }
715
+
716
+ .cancelbtn {
717
+ width: 100%;
718
+ }
719
+ }
720
+ </style>
721
+ </head>
722
+ <body onload="iniciaPagina();">
723
+ <title>Hello</title>
724
+
725
+
726
+ <!--Add buttons to initiate auth sequence and sign out
727
+ <button id="authorize_button" style="display: none;">Authorize</button>
728
+ <button id="signout_button" style="display: none;">Sign Out</button>
729
+ -->
730
+
731
+ <script type="text/javascript">
732
+ // Client ID and API key from the Developer Console
733
+ var CLIENT_ID = '346985849712-4diehepugvj39n4e3ednr25qieekkmen.apps.googleusercontent.com'; //'392646183283-5f9h5jgsll9hfcb46mlfplu57vtmhaa0.apps.googleusercontent.com';
734
+ var API_KEY = 'AIzaSyDGpegS1TV-7moMp5dKz-BEtt6bA864h_4';//'AIzaSyASaqrMk2sPLTnXsW8fjCcTvAsagc28DhA';
735
+
736
+
737
+ // Array of API discovery doc URLs for APIs used by the quickstart
738
+ var DISCOVERY_DOCS = ["https://sheets.googleapis.com/$discovery/rest?version=v4"];
739
+
740
+ // Authorization scopes required by the API; multiple scopes can be
741
+ // included, separated by spaces.
742
+ var SCOPES = "https://www.googleapis.com/auth/spreadsheets.readonly";
743
+
744
+ // var authorizeButton = document.getElementById('authorize_button');
745
+ //var signoutButton = document.getElementById('signout_button');
746
+
747
+ /**
748
+ * On load, called to load the auth2 library and API client library.
749
+ */
750
+
751
+ function storeLogin(name)
752
+ {
753
+ setCookieh("LOGIN",name,10);
754
+ }
755
+
756
+ function loadLogin()
757
+ {
758
+ var name = getCookieh("LOGIN");
759
+ return name;
760
+ }
761
+
762
+ function setCookieh(name,value,days) {
763
+ /* var expires = "";
764
+ if (days) {
765
+ var date = new Date();
766
+ date.setTime(date.getTime() + (days*24*60*60*1000));
767
+ expires = "; expires=" + date.toUTCString();
768
+ }
769
+ document.cookie = name + "=" + (value || "") + expires + "; path=/";*/
770
+ window.localStorage.setItem(name, value);
771
+ }
772
+
773
+ function getCookieh(name) {
774
+ /* var nameEQ = name + "=";
775
+ var ca = document.cookie.split(';');
776
+ for(var i=0;i < ca.length;i++) {
777
+ var c = ca[i];
778
+ while (c.charAt(0)==' ') c = c.substring(1,c.length);
779
+ if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
780
+ }
781
+ return null; */
782
+
783
+ return window.localStorage.getItem(name);
784
+ }
785
+
786
+ function sleeph(time) {
787
+ return new Promise((resolve) => setTimeout(resolve, time));
788
+ }
789
+
790
+
791
+ function handleClientLoad() {
792
+ // document.getElementById("myLogin").innerHTML = "AGUARDE...";
793
+ sleeph(100).then(() => {
794
+
795
+
796
+ document.getElementById("conteudo").style.display = "flex";
797
+ var name=loadLogin();
798
+ if((!name) || (name=="LOGIN"))
799
+ {
800
+ waitLogin();
801
+ }
802
+ else
803
+ {
804
+ waitLogout(name);
805
+ }
806
+ });
807
+ }
808
+
809
+ function SignOUT()
810
+ {
811
+ var name = gapi.auth2.getAuthInstance().currentUser.get();
812
+ if(name.getBasicProfile())
813
+ {
814
+ var logname = name.getBasicProfile().getName() + " ( " + name.getBasicProfile().getEmail() + " )";
815
+ logout(logname);
816
+ }
817
+ else
818
+ {
819
+ var logname = loadLogin();
820
+ logout(logname);
821
+ }
822
+
823
+ gapi.auth2.getAuthInstance().signOut();
824
+ gapi.auth2.getAuthInstance().disconnect();
825
+ }
826
+
827
+ /**
828
+ * Initializes the API client library and sets up sign-in state
829
+ * listeners.
830
+ */
831
+ function initClient() {
832
+ gapi.client.init({
833
+ apiKey: API_KEY,
834
+ clientId: CLIENT_ID,
835
+ discoveryDocs: DISCOVERY_DOCS,
836
+ scope: SCOPES
837
+ }).then(function () {
838
+ // Listen for sign-in state changes.
839
+ gapi.auth2.getAuthInstance().isSignedIn.listen(updateSigninStatus);
840
+
841
+ // Handle the initial sign-in state.
842
+ updateSigninStatus(gapi.auth2.getAuthInstance().isSignedIn.get());
843
+ //authorizeButton.onclick = handleAuthClick;
844
+ // signoutButton.onclick = handleSignoutClick;
845
+ }, function(error) {
846
+ waitLogin();
847
+ alert(error.message);
848
+ });
849
+ }
850
+
851
+ function initClientSigIn() {
852
+ gapi.client.init({
853
+ apiKey: API_KEY,
854
+ clientId: CLIENT_ID,
855
+ discoveryDocs: DISCOVERY_DOCS,
856
+ scope: SCOPES
857
+ }).then(function () {
858
+ // Listen for sign-in state changes.
859
+ gapi.auth2.getAuthInstance().isSignedIn.listen(updateSigninStatus);
860
+
861
+ // Handle the initial sign-in state.
862
+ updateSigninStatus(gapi.auth2.getAuthInstance().isSignedIn.get());
863
+ gapi.auth2.getAuthInstance().signIn();
864
+
865
+ }, function(error) {
866
+ waitLogin();
867
+ alert(error.message);
868
+ });
869
+ }
870
+
871
+ function initClientSigOut() {
872
+ gapi.client.init({
873
+ apiKey: API_KEY,
874
+ clientId: CLIENT_ID,
875
+ discoveryDocs: DISCOVERY_DOCS,
876
+ scope: SCOPES
877
+ }).then(function () {
878
+ // Listen for sign-in state changes.
879
+ gapi.auth2.getAuthInstance().isSignedIn.listen(updateSigninStatus);
880
+
881
+ // Handle the initial sign-in state.
882
+ // updateSigninStatus(gapi.auth2.getAuthInstance().isSignedIn.get());
883
+ SignOUT();
884
+ waitLogin();
885
+ }, function(error) {
886
+ waitLogin();
887
+ alert(error.message);
888
+ });
889
+ }
890
+
891
+ /**
892
+ * Called when the signed in status changes, to update the UI
893
+ * appropriately. After a sign-in, the API is called.
894
+ */
895
+ function updateSigninStatus(isSignedIn) {
896
+ if (isSignedIn) {
897
+ //authorizeButton.style.display = 'none';
898
+ //signoutButton.style.display = 'block';
899
+
900
+
901
+ listMajors();
902
+ } else {
903
+ //authorizeButton.style.display = 'block';
904
+ //signoutButton.style.display = 'none';
905
+ waitLogin();
906
+ }
907
+ }
908
+
909
+ /**
910
+ * Sign in the user upon button click.
911
+ */
912
+ var init=0;
913
+ function handleAuthClick(event) {
914
+ document.getElementById("myLogin").innerHTML = "AGUARDE...";
915
+ if(init==0)
916
+ {
917
+ gapi.load('client:auth2', initClientSigIn);
918
+ init=1;
919
+ }
920
+ else
921
+ gapi.auth2.getAuthInstance().signIn();
922
+ }
923
+
924
+ function waitLogin()
925
+ {
926
+ document.getElementById("tudo").style.display = "none";
927
+ document.getElementById("conteudo").style.display = "none";
928
+ document.getElementById("listaclientes").style.display = "none";
929
+ // document.getElementById("ferramentas").style.display = "none";
930
+ document.getElementById("Fila").style.display = "none";
931
+ document.getElementById("operacao").style.display = "none";
932
+ document.getElementById("viewList").style.display = "none";
933
+ document.getElementById("portal").style.display = "flex";
934
+ document.getElementById("myLogin").innerHTML = "LOGIN";
935
+ document.getElementById("myLoginS").innerHTML = "LOGIN";
936
+ var obj = document.getElementById("myLoginS");
937
+ obj.setAttribute('href', "javascript:handleAuthClick(0);");
938
+ document.getElementById("Fila").setAttribute('onclick', "document.getElementById('ocoModal').style.display = 'none'; javascript:void(0);");
939
+ storeLogin("LOGIN");
940
+ openurl("/novo-front/index");
941
+ }
942
+
943
+ function waitLogout(logname) {
944
+ document.getElementById("tudo").style.display = "flex";
945
+ document.getElementById("conteudo").style.display = "flex";
946
+ document.getElementById("listaclientes").style.display = "inline";
947
+ // document.getElementById("ferramentas").style.display = "inline";
948
+ document.getElementById("Fila").style.display = "flex";
949
+ document.getElementById("operacao").style.display = "flex";
950
+ document.getElementById("viewList").style.display = "inline";
951
+ document.getElementById("portal").style.display = "none";
952
+ document.getElementById("myLogin").innerHTML = "LOGOFF";
953
+ var obj = document.getElementById("myLoginS");
954
+ obj.setAttribute('href', "javascript:handleSignoutClick(0);");
955
+ document.getElementById("Fila").setAttribute('onclick', "getVideoOcorrencia();");
956
+ // var name = gapi.auth2.getAuthInstance().currentUser.get();
957
+ // var logname = name.getBasicProfile().getName() + " ( " + name.getBasicProfile().getEmail() + " )";
958
+ //login(logname);
959
+ document.getElementById("myLogin").innerHTML = logname; // Qt.Au = email , Qt.Bd= fullname, Qt.zU=lastname, Qt.zW=firstname.
960
+ var clip=logname.indexOf("(");
961
+ document.getElementById("myLoginS").innerHTML = logname.substring(0,clip);
962
+ storeLogin(logname);
963
+ }
964
+
965
+ /**
966
+ * Sign out the user upon button click.
967
+ */
968
+ function handleSignoutClick(event) {
969
+
970
+ var x;
971
+ var r = confirm("Deseja finalizar a sessao ?");
972
+ if (r == true) {
973
+
974
+ document.getElementById("myLogin").innerHTML = "AGUARDE...";
975
+ gapi.load('client:auth2', initClientSigOut);
976
+ init=1;
977
+ }
978
+
979
+ }
980
+
981
+ /**
982
+ * Append a pre element to the body containing the given message
983
+ * as its text node. Used to display the results of the API call.
984
+ *
985
+ * @param {string} message Text to be placed in pre element.
986
+ */
987
+ function appendPre(message) {
988
+ //var pre = document.getElementById('content');
989
+ // var textContent = document.createTextNode(message + '\n');
990
+ document.body.innerHTML = message.trim();
991
+ //pre.appendChild(message);
992
+ }
993
+
994
+ /**
995
+ * Print the names and majors of students in a sample spreadsheet:
996
+ * https://docs.google.com/spreadsheets/d/1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms/edit
997
+ */
998
+ function listMajors() {
999
+ gapi.client.sheets.spreadsheets.values.get({
1000
+ spreadsheetId: '1edERX6z500r_PzovDi0zuRxU_wKrBGxZlTAPDWKZKEY', // '1PIAQ9qDorLJ99SjXmtx_OsT_aSI2_oumHw4ukgqwQos',
1001
+ range: 'PESSOAS!A1:N23',
1002
+ }).then(function(response) {
1003
+ var name = gapi.auth2.getAuthInstance().currentUser.get();
1004
+ var logname = name.getBasicProfile().getName() + " ( " + name.getBasicProfile().getEmail() + " )";
1005
+ waitLogout(logname);
1006
+ }, function(response) {
1007
+ // appendPre('Error: ' + response.result.error.message);
1008
+ // nao tem acesso desconecta
1009
+ waitLogin();
1010
+ gapi.auth2.getAuthInstance().signOut();
1011
+ gapi.auth2.getAuthInstance().disconnect();
1012
+ alert("ACESSO NEGADO!")
1013
+ });
1014
+ }
1015
+
1016
+ </script>
1017
+
1018
+ <script async defer src="https://apis.google.com/js/api.js"
1019
+ onload="this.onload=function(){};handleClientLoad()"
1020
+ onreadystatechange="if (this.readyState === 'complete') this.onload()">
1021
+ </script>
1022
+ <div id="tudo">
1023
+
1024
+ <div id="mySidenav" class="sidenav">
1025
+ <a href="javascript:void(0)" class="closebtn" onclick="closeNav()">&times;</a>
1026
+
1027
+ <a href="javascript:setMosaico();" id="mosaico">Mosaico</a>
1028
+ <!--a href="javascript:popupwindow('https://datastudio.google.com/reporting/9aefeac4-1d0d-47c4-b5cf-66f49d41c4f2', 'RESUMO', screen.width/1.5, screen.height/1.5);" id="dash">Dashboard</a-->
1029
+ <!--a href="javascript:setDash();" id="dash">Operacao</a-->
1030
+ <!--a href="javascript:popupwindow('/visualizacao','VISUALIZACAO', screen.width/1, screen.height/1);"> Visualizacao</a-->
1031
+ <!--a href="javascript:popupwindow('/programacao?id=1','PROGRAMACAO', screen.width/2, screen.height/2);"> Programacao</a-->
1032
+ <!--a href="javascript:setCercaVirtual()" id="conf">Cerca Virtual</a-->
1033
+ <!--a href="javascript:popupwindow('https://www.appsheet.com/start/8ec6ba07-1f60-4525-87a4-bd3208dfb0b7', 'CONFIGURACAO', screen.width/1.5, screen.height/1.5);" id="conf">Configuracao</a-->
1034
+ <!--a href="javascript:setConfig()" id="conf">Configuracao</a-->
1035
+ <!--a href="javascript:setTelegram()" id="conf">Telegram</a-->
1036
+ <!--a href="javascript:setSimulador()" id="conf">Simulador</a-->
1037
+ <!--a href="" id="conf">Bloqueios</a-->
1038
+ <!--a href="javascript:popupwindow('http://painel.atualli.com/recogimg', 'SIMULADOR', screen.width/1.5, screen.height/1.5);" id="conf">Simulador</a-->
1039
+ <!--a href="javascript:setResetMosaico();" id="reset">Reset Mosaico</a-->
1040
+ </div>
1041
+
1042
+ <div class="topnav" id="myTopnav">
1043
+ <span style="background-color: #000000;color: blue;float:left;font-size:40px;cursor:pointer" onclick="openNav()">&#9776; </span>
1044
+ <!--img title = "logo" src="getresource?r=alogo.png" align="left"-->
1045
+ <!--a href="#news" onclick="javascript:void(0);" id="Fila">Fila</a-->
1046
+ <div class="buttondiv">
1047
+ <button class="buttonfila" id="Fila">Fila</button>
1048
+ </div>
1049
+ <div class="dropdown" id="listaclientes">
1050
+ <button class="dropbtn" id="clientelabel">
1051
+ <?CLIENTE?>
1052
+ </button>
1053
+ <div class="dropdown-content">
1054
+ <?LISTA?>
1055
+ </div>
1056
+ </div>
1057
+
1058
+ <!--a href="javascript:void(0);" id="clientelabel">(MULTILASER-MANAUS-DVR-1)</a-->
1059
+
1060
+ <!--div class="dropdown" id="ferramentas">
1061
+ <button class="dropbtn">
1062
+ Ferramentas
1063
+ <i class="fa fa-caret-down"></i>
1064
+ </button>
1065
+ <div class="dropdown-content">
1066
+ <a href="javascript:resetMosaico(0);" id="reset">RESET MOSAICO</a>
1067
+ <a href="javascript:popupwindow('https://datastudio.google.com/reporting/9aefeac4-1d0d-47c4-b5cf-66f49d41c4f2', 'RESUMO', screen.width/1.5, screen.height/1.5);" id="dash">Dashboard</a>
1068
+ <a href="javascript:popupwindow('/visualizacao','VISUALIZACAO', screen.width/1, screen.height/1);"> Visualizacao</a>
1069
+ <a href="javascript:popupwindow('/programacao?id=1','PROGRAMACAO', screen.width/2, screen.height/2);"> Programacao</a>
1070
+ <a href="javascript:popupwindow('https://www.appsheet.com/start/8ec6ba07-1f60-4525-87a4-bd3208dfb0b7', 'CONFIGURACAO', screen.width/1.5, screen.height/1.5);" id="conf">Configuracao</a>
1071
+ <a href="javascript:popupwindow('http://painel.atualli.com/recogimg', 'SIMULADOR', screen.width/1.5, screen.height/1.5);" id="conf">Simulador</a>
1072
+ </div>
1073
+ </div-->
1074
+ <!--a href="javascript:handleAuthClick(0);" id="myLogin"></a-->
1075
+ <!--div class="dropdown" id="loginlist">
1076
+ <button class="dropbtn" id="myLogin">
1077
+ LOGIN
1078
+ <i class="fa fa-caret-down"></i>
1079
+ </button>
1080
+ <div class="dropdown-content">
1081
+ <a href="javascript:selecionaOperador('LOGOFF');">LOGIN</a>
1082
+ <a href="javascript:selecionaOperador('PAUSAR');">PAUSAR</a>
1083
+ <a href="javascript:selecionaOperador('LOGIN');">LOGOFF</a>
1084
+ </div>
1085
+ </div-->
1086
+ <!--a href="javascript:setoperacao(0);" id="operacao">AGUARDE...</a-->
1087
+ <div class="buttondiv">
1088
+ <button onclick="javascript:setoperacao(0);" class="buttonwork" id="operacao">>AGUARDE...</button>
1089
+ </div>
1090
+ <!--a href="javascript:void(0);" class="icon" onclick="myFunctionNav()">
1091
+ <i class="fa fa-bars"></i>
1092
+ </a-->
1093
+ <div class="dropdown" id="viewList">
1094
+ <button class="dropbtn">
1095
+ VIEW
1096
+ <i class="fa fa-caret-down"></i>
1097
+ </button>
1098
+ <div class="dropdown-content">
1099
+ <a href="javascript:changeGrade('column7x');">7x</a>
1100
+ <a href="javascript:changeGrade('column6x');">6x</a>
1101
+ <a href="javascript:changeGrade('column5x');">5x</a>
1102
+ <a href="javascript:changeGrade('column');">4x</a>
1103
+ <a href="javascript:changeGrade('column3x');">3x</a>
1104
+ <a href="javascript:changeGrade('Auto');">Auto</a>
1105
+ </div>
1106
+ </div>
1107
+
1108
+ <!--img title = "avatar" id="myavatar" style="width:3%" src="getresource?r=anonymus.jpg" align="left"-->
1109
+ <a href="" style="display:none" id="myLogin"></a>
1110
+ <a href="javascript:handleAuthClick(0);" id="myLoginS"></a>
1111
+ <a href="javascript:void(0);" class="icon" onclick="NavResponsive()">
1112
+ <i class="fa fa-bars"></i>
1113
+ </a>
1114
+ </div>
1115
+
1116
+ <div class="rowblock" id="portal">
1117
+ <tr></tr>
1118
+ </div>
1119
+
1120
+ <div style="display:none" id="listocorrencias">
1121
+ <tr>
1122
+ <iframe id="iframelistocorrencias" src="" frameborder="0" style="position:absolute; top:7%; left:0; width:100%; height:100%; border:0" allowfullscreen></iframe>
1123
+ </tr>
1124
+ </div>
1125
+
1126
+ <div style="display:none" id="configuracao">
1127
+ <tr>
1128
+ <iframe id="iframeconfiguracao" src="" frameborder="0" style="position:absolute; top:7%; left:0; width:80%; height:100%; border:0" allowfullscreen></iframe>
1129
+ </tr>
1130
+ </div>
1131
+
1132
+ <div style="display:none" id="cercavirtual">
1133
+ <tr>
1134
+ <iframe id="iframecercavirtual" src="" frameborder="0" style="position:absolute; top:7%; left:80%; width:20%; height:100%; border:0" allowfullscreen></iframe>
1135
+ </tr>
1136
+ </div>
1137
+
1138
+ <div style="display:none" id="simulador">
1139
+ <tr>
1140
+ <iframe id="iframesimulador" src="" frameborder="0" style="position:absolute; top:7%; left:0; width:100%; height:100%; border:0" allowfullscreen></iframe>
1141
+ </tr>
1142
+ </div>
1143
+
1144
+
1145
+
1146
+ <div class="row" id="conteudo">
1147
+
1148
+ <tr>
1149
+
1150
+ <div id="ocoModal" class="modal">
1151
+
1152
+ <form class="modal-content animate" id="formOcorrencia" action="javascript:gravaOcorrencia()" method="get">
1153
+
1154
+ <div class="imgcontainer">
1155
+
1156
+ <div style="width:100%">
1157
+ <p><b>OCORRENCIA</b></p> <span onclick="document.getElementById('ocoModal').style.display = 'none'" class="close" title="Close Modal">&times;</span>
1158
+ </div>
1159
+
1160
+ <div class="imgchild">
1161
+ <p><b>Gravacao</b></p>
1162
+ <video id="videoocorrencia" preload="metadata" autoplay loop muted playsinline width=100% height=77% controls src="getresource?r=atualli.png&" type="video/mp4"> </video>
1163
+
1164
+ </div>
1165
+ <div class="imgchild">
1166
+ <p><b>Ao Vivo</b></p>
1167
+ <img src="" id="aovivo" class="refrx" alt="" style="width:100%;display:none;">
1168
+ <canvas title="Ao vivo" id="cvcx" alt="" style="width:100%"></canvas>
1169
+ </div>
1170
+ </div>
1171
+
1172
+ <div class="container" style="background-color:#f1f1f1">
1173
+
1174
+ <label for="rot"><b>.</b></label></br>
1175
+
1176
+ <label id="IdOcoView" for="rot"><b>ID: </b></label></br>
1177
+
1178
+
1179
+
1180
+ <label id="IdCliente" for="rot"><b>Cliente: </b></label></br>
1181
+
1182
+
1183
+
1184
+ <label id="Operador" for="rot"><b>Operador: </b></label></br>
1185
+
1186
+
1187
+
1188
+ <label id="DataOcorrencia" for="rot"><b>Data: </b></label></br>
1189
+
1190
+
1191
+
1192
+ <label id="NomeRoteiro" for="rot"><b>Roteiro: </b></label></br>
1193
+
1194
+
1195
+ <!--label id="videoOco" for="rot"><b>Video: </b></label></br-->
1196
+ </div>
1197
+
1198
+ <div class="container">
1199
+
1200
+ <label id="pergunta1" for="uname"><b>Procedimento</b></label>
1201
+ <input type="text" id="procedimento" placeholder="Texto livre" name="procedimento" readonly style="background-color:#f1f1f1">
1202
+
1203
+ <label id="pergunta2" for="psw"><b>Motivo</b></label>
1204
+ <input type="text" id="template" placeholder="Texto livre" name="template" readonly onkeydown="return (event.keyCode!=13);">
1205
+ <!--textarea placeholder="Texto livre" rows="5" cols="10" id="template" style = "font-size: 12pt; width:100%; margin:5px 0;padding:3px" ></textarea-->
1206
+ <label id="pergunta3" style="display:none" for="psw"><b>Audio</b></label>
1207
+ <input style="display:none" type="file" id="audio" name="audio" accept="audio/*" multiple>
1208
+ <button type="button" style="display:none" id="loadLastAudio" onclick="javascript:getUltimoAudio()">Carrega Ultimos Audios</button>
1209
+ <select id="listaAudios" style="display:none" class="select_audio" style="background-color:#f1f1f1" name="formal" onchange="javascript:selAudio(this)"></select>
1210
+ </br></br>
1211
+ <a style="display:none" href="" id="lastaudio"></a>
1212
+ <input type="hidden" name="cmd" id="GravaOcorrencia" value="">
1213
+ <input type="hidden" name="idOco" id="idOco" value="">
1214
+ <input type="hidden" name="idCamera" id="idCamera" value="">
1215
+ <input type="hidden" name="nomeOperador" id="nomeOperador" value="">
1216
+ <input type="hidden" name="idChat" id="idChat" value="">
1217
+ <input type="hidden" name="cliente" id="cliente" value="">
1218
+ <input type="hidden" name="roteiro" id="roteiro" value="">
1219
+
1220
+ <button type="submit" style="display:none" id="gravar" class="button">OK</button>
1221
+ <button style="display:none" type="button" style="display:none" id="descartar" onclick="javascript:descartaOcorrencia(0)" class="cancelbtn">Descartar</button>
1222
+ <button style="display:none" type="button" style="display:none" id="desbloqueio" onclick="" class="cancelbtn">Desbloqueio</button>
1223
+ <select style="display:none" class="select" id="listaContatos" style="background-color:#f1f1f1" name="formal" onchange="javascript:handleSelect(this)"></select>
1224
+
1225
+ <script type="text/javascript">
1226
+ function handleSelect(elm)
1227
+ {
1228
+ if(elm.value.length>1)
1229
+ window.location = elm.value;
1230
+ }
1231
+ </script>
1232
+ </div>
1233
+
1234
+ </form>
1235
+ </div>
1236
+
1237
+ <?BODY?>
1238
+
1239
+ </tr>
1240
+ </div>
1241
+ </div>
1242
+ <script async">
1243
+
1244
+ // setInterval("gogo();", 1500);
1245
+ var to = 1; // 2; //3;
1246
+ var first = 0;
1247
+ var idx = 0;
1248
+ var tamFila = 0;
1249
+ var myFila = 0;
1250
+
1251
+ var onlyView = 0;
1252
+
1253
+ // Get the modal
1254
+ //var modalOcorrencia = document.getElementById('ocoModal');
1255
+
1256
+ // When the user clicks anywhere outside of the modal, close it
1257
+ //window.onclick = function (event) {
1258
+ // if (event.target == modalOcorrencia) {
1259
+ // modalOcorrencia.style.display = "none";
1260
+ // }
1261
+ //}
1262
+
1263
+
1264
+ function NavResponsive() {
1265
+ var x = document.getElementById("myTopnav");
1266
+ if (x.className === "topnav") {
1267
+ x.className += " responsive";
1268
+ } else {
1269
+ x.className = "topnav";
1270
+ }
1271
+ }
1272
+ function setTelegram() {
1273
+
1274
+ popupwindow('https://web.telegram.org/z','TELEGRAM', screen.width/4, screen.height)
1275
+ closeNav();
1276
+ }
1277
+
1278
+ function resetAllView() {
1279
+ document.getElementById("configuracao").style.display = "none";
1280
+ document.getElementById("conteudo").style.display = "none";
1281
+ document.getElementById("listocorrencias").style.display = "none";
1282
+ document.getElementById("simulador").style.display = "none";
1283
+ document.getElementById("cercavirtual").style.display = "none";
1284
+ }
1285
+
1286
+ function setCercaVirtual()
1287
+ {
1288
+ // resetAllView();
1289
+ var objAovivo = document.getElementById("iframecercavirtual");
1290
+ var osrc= objAovivo.getAttribute('src');
1291
+ if ( osrc=="")
1292
+ {
1293
+
1294
+
1295
+ objAovivo.setAttribute('src', "/programacao?id=1");
1296
+ }
1297
+ document.getElementById("cercavirtual").style.display = "flex";
1298
+ closeNav();
1299
+
1300
+ }
1301
+
1302
+ function setDash() {
1303
+
1304
+ resetAllView();
1305
+ var objAovivo = document.getElementById("iframelistocorrencias");
1306
+ var osrc= objAovivo.getAttribute('src');
1307
+ if ( osrc=="")
1308
+ {
1309
+
1310
+
1311
+ objAovivo.setAttribute('src', "https://datastudio.google.com/embed/reporting/9aefeac4-1d0d-47c4-b5cf-66f49d41c4f2/page/p_2yjwggbisc");
1312
+ }
1313
+ document.getElementById("listocorrencias").style.display = "flex";
1314
+ closeNav();
1315
+
1316
+ }
1317
+
1318
+ function setMosaico() {
1319
+ resetAllView();
1320
+ document.getElementById("conteudo").style.display = "flex";
1321
+ closeNav();
1322
+
1323
+ }
1324
+
1325
+ function setResetMosaico()
1326
+ {
1327
+ setMosaico();
1328
+ resetMosaico(0);
1329
+
1330
+ }
1331
+
1332
+ function setSimulador()
1333
+ {
1334
+
1335
+ resetAllView();
1336
+
1337
+ var objAovivo = document.getElementById("iframesimulador");
1338
+ var osrc= objAovivo.getAttribute('src');
1339
+ if ( osrc=="")
1340
+ {
1341
+
1342
+ objAovivo.setAttribute('src', "http://painel.atualli.com/recogimg");
1343
+ }
1344
+ document.getElementById("simulador").style.display = "flex";
1345
+ closeNav();
1346
+ }
1347
+
1348
+ function setConfig() {
1349
+
1350
+ resetAllView();
1351
+ var objAovivo = document.getElementById("iframeconfiguracao");
1352
+ var osrc= objAovivo.getAttribute('src');
1353
+ if ( osrc=="")
1354
+ {
1355
+ // objAovivo.setAttribute('src', "https://www.appsheet.com/start/8ec6ba07-1f60-4525-87a4-bd3208dfb0b7#view=PROGRAMACAO");
1356
+ objAovivo.setAttribute('src', "https://www.appsheet.com/start/99e79f6b-62fe-44c8-bab4-b4b9de10cd7d#view=PROGRAMACAO");
1357
+ }
1358
+ document.getElementById("configuracao").style.display = "flex";
1359
+
1360
+ setCercaVirtual();
1361
+ closeNav();
1362
+
1363
+ }
1364
+
1365
+ function openNav() {
1366
+ document.getElementById("mySidenav").style.width = "250px";
1367
+ }
1368
+
1369
+ function closeNav() {
1370
+ document.getElementById("mySidenav").style.width = "0";
1371
+ }
1372
+
1373
+ var atualColumn="column";
1374
+ function changeGrade(novo)
1375
+ {
1376
+
1377
+ var lista = document.getElementsByClassName(atualColumn);
1378
+ var len=lista.length;
1379
+
1380
+ var newClass=novo;
1381
+ if(novo=="Auto")
1382
+ { newClass="column3x";
1383
+ if (len>=8) newClass="column";
1384
+ if (len>=16) newClass="column5x";
1385
+ if (len>=24) newClass="column6x";
1386
+ if (len>=31) newClass="column7x";
1387
+ }
1388
+
1389
+ for (var i = 0; i < len; i ++)
1390
+ {
1391
+ lista[0].className = newClass;
1392
+ }
1393
+ atualColumn=newClass;
1394
+ let cliente=document.getElementById("clientelabel").innerHTML;
1395
+ cliente=cliente.trim();
1396
+ setCookie("GRADE-"+cliente,novo,10);
1397
+ }
1398
+
1399
+ function drawOperador(name) {
1400
+
1401
+ document.getElementById("myLogin").innerHTML = name;
1402
+ }
1403
+
1404
+ function selecionaOperador(name) {
1405
+
1406
+ var atual= getCookie("LOGIN");
1407
+
1408
+ if (name!=atual)
1409
+ {
1410
+ if((name.length>0) && (name!="LOGOFF")&& (name!="LOGIN"))
1411
+ login(name);
1412
+ if(atual.length>0)
1413
+ logout(atual);
1414
+ }
1415
+ if(!name) name="LOGIN";
1416
+ setCookie("LOGIN",name,10);
1417
+ drawOperador(name);
1418
+ }
1419
+
1420
+
1421
+ function setCookie(name,value,days) {
1422
+ /* var expires = "";
1423
+ if (days) {
1424
+ var date = new Date();
1425
+ date.setTime(date.getTime() + (days*24*60*60*1000));
1426
+ expires = "; expires=" + date.toUTCString();
1427
+ }
1428
+ document.cookie = name + "=" + (value || "") + expires + "; path=/"; */
1429
+ window.localStorage.setItem(name,value);
1430
+ }
1431
+ function getCookie(name) {
1432
+ /* var nameEQ = name + "=";
1433
+ var ca = document.cookie.split(';');
1434
+ for(var i=0;i < ca.length;i++) {
1435
+ var c = ca[i];
1436
+ while (c.charAt(0)==' ') c = c.substring(1,c.length);
1437
+ if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
1438
+ }
1439
+ return null; */
1440
+ return window.localStorage.getItem(name);
1441
+ }
1442
+ function eraseCookie(name) {
1443
+ document.cookie = name +'=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;';
1444
+ }
1445
+
1446
+ function openForm() {
1447
+ document.getElementById("myForm").style.display = "block";
1448
+ }
1449
+
1450
+ function closeForm() {
1451
+ document.getElementById("myForm").style.display = "none";
1452
+ }
1453
+
1454
+ function resetFormOcorrencia()
1455
+ {
1456
+ var obj = document.getElementById("videoocorrencia");
1457
+
1458
+ obj.setAttribute('src', "");
1459
+ var objproc = document.getElementById("procedimento");
1460
+ objproc.setAttribute('value', "");
1461
+
1462
+ var objtmp = document.getElementById("template");
1463
+ objtmp.setAttribute('value', "");
1464
+
1465
+ // document.getElementById("videoOco").innerHTML = "<b> Video: Aguarde...</b>";
1466
+ document.getElementById("IdCliente").innerHTML = "<b> Cliente: Aguarde...</b>";
1467
+ document.getElementById("IdOcoView").innerHTML = "<b> ID: Aguarde...</b>";
1468
+ document.getElementById("NomeRoteiro").innerHTML = "<b> Roteiro: Aguarde...</b>";
1469
+ document.getElementById("DataOcorrencia").innerHTML = "<b> Data: Aguarde... </b>";
1470
+ document.getElementById("Operador").innerHTML = "<b> Operador: Aguarde... </b>";
1471
+ var objidOco = document.getElementById("idOco");
1472
+ objidOco.setAttribute('value', "");
1473
+ var objnOp = document.getElementById("nomeOperador");
1474
+ objnOp.setAttribute('value', "");
1475
+ var objnidChat = document.getElementById("idChat");
1476
+ objnidChat.setAttribute('value', "");
1477
+
1478
+ document.getElementById("desbloqueio").style.display = 'none'
1479
+ document.getElementById("gravar").style.display = 'none'
1480
+ document.getElementById("descartar").style.display = 'none'
1481
+
1482
+ document.getElementById("gravar").innerHTML = "Gravar";
1483
+ document.getElementById("gravar").disabled = false;
1484
+
1485
+ document.getElementById("descartar").innerHTML = "Descartar";
1486
+ document.getElementById("descartar").disabled = false;
1487
+
1488
+ var objAovivo = document.getElementById("aovivo");
1489
+ objAovivo.setAttribute('src', '');
1490
+ objAovivo.setAttribute('class', 'refrx');
1491
+
1492
+ document.getElementById("audio").value = "";
1493
+ document.getElementById("lastaudio").innerHTML = "";
1494
+ document.getElementById("listaAudios").innerHTML = "";
1495
+
1496
+ }
1497
+
1498
+ function popupwindow(url, title, w, h) {
1499
+ var left = (screen.width / 2) - (w / 2);
1500
+ var top = (screen.height / 2) - (h / 2);
1501
+ return window.open(url, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=' + w + ', height=' + h + ', top=' + top + ', left=' + left);
1502
+ }
1503
+
1504
+ function openurl(url)
1505
+ {
1506
+ var urls = url;
1507
+ if (onlyView==1)
1508
+ urls = urls + "?view=true";
1509
+ window.location.replace(urls);
1510
+ // return window.open(urls,'_self');
1511
+ }
1512
+
1513
+ function execDesbloqueio(url)
1514
+ {
1515
+ var xhttp = new XMLHttpRequest();
1516
+ xhttp.onreadystatechange = function () {
1517
+ if (this.readyState == 4 && this.status == 200) {
1518
+ var desbloqueio = document.getElementById("desbloqueio");
1519
+ desbloqueio.innerHTML = this.responseText;
1520
+ }
1521
+ };
1522
+ var desbloqueio = document.getElementById("desbloqueio").innerHTML = "AGUARDE...";
1523
+ xhttp.open("GET", url, true);
1524
+ xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
1525
+ xhttp.send("");
1526
+
1527
+ }
1528
+
1529
+ function sleep(time) {
1530
+ return new Promise((resolve) => setTimeout(resolve, time));
1531
+ }
1532
+
1533
+
1534
+ function getVideoOcorrencia() {
1535
+
1536
+ if (myFila <= 0) return;
1537
+
1538
+
1539
+ resetFormOcorrencia();
1540
+ // Usage!
1541
+ sleep(100).then(() => {
1542
+ // Do something after the sleep!
1543
+ if (myFila <= 0) return;
1544
+
1545
+ // document.getElementById('ocoModal').style.display = 'block';
1546
+ // resetFormOcorrencia();
1547
+
1548
+ /* var audio = new Audio('http://atualli.ddns.net/getresource?r=alarm.ogg');
1549
+ audio.addEventListener('canplaythrough', function () {
1550
+ audio.play();
1551
+ }); */
1552
+
1553
+ document.getElementById("desbloqueio").innerHTML="Desbloqueio";
1554
+ document.getElementById("gravar").innerHTML = "Grava";
1555
+
1556
+ //document.getElementById('ocoModal').style.display = 'block'
1557
+ var xhttp = new XMLHttpRequest();
1558
+ xhttp.onreadystatechange = function () {
1559
+ if (this.readyState == 4 && this.status == 200) {
1560
+
1561
+ if(this.responseText.indexOf("VAZIO") !== -1) return;
1562
+
1563
+ var json = JSON.parse(this.responseText);
1564
+
1565
+ if (json.status == "Manual") {
1566
+
1567
+ document.getElementById('ocoModal').style.display = 'block';
1568
+ resetFormOcorrencia();
1569
+
1570
+ //document.getElementById('ocoModal').style.display = 'block';
1571
+ document.getElementById("descartar").style.display = 'none'
1572
+ document.getElementById("gravar").style.display = 'block'
1573
+
1574
+
1575
+ document.getElementById("desbloqueio").style.display = 'none'
1576
+ var obj = document.getElementById("videoocorrencia");
1577
+
1578
+ obj.setAttribute('src', json.video);
1579
+
1580
+ //document.getElementById("procedimento").innerHTML = "<b>" + json.procedimento + "</b>";
1581
+ document.getElementById("template").innerHTML = json.templat ;
1582
+
1583
+ var objproc = document.getElementById("procedimento");
1584
+ objproc.setAttribute('value', json.procedimento);
1585
+
1586
+ var objtmp = document.getElementById("template");
1587
+ objtmp.setAttribute('value', json.templat);
1588
+
1589
+ var objidChat = document.getElementById("idChat");
1590
+ objidChat.setAttribute('value', json.idchat);
1591
+
1592
+ var objCliente = document.getElementById("cliente");
1593
+ objCliente.setAttribute('value', json.cliente);
1594
+
1595
+ var objRoteiro = document.getElementById("roteiro");
1596
+ objRoteiro.setAttribute('value', json.roteiro);
1597
+
1598
+ var objAovivo = document.getElementById("aovivo");
1599
+ objAovivo.setAttribute('src', json.urlcamera);
1600
+
1601
+
1602
+ // document.getElementById("videoOco").innerHTML = "<b> Video: " + json.video + "</b>";
1603
+ document.getElementById("IdCliente").innerHTML = "<b> Cliente: " + json.cliente + "</b>";
1604
+ document.getElementById("IdOcoView").innerHTML = "<b> ID: " + json.id + "</b>";
1605
+ document.getElementById("NomeRoteiro").innerHTML = "<b> Roteiro: " + json.roteiro + "</b>";
1606
+ document.getElementById("DataOcorrencia").innerHTML = "<b> Data: " + json.data + "</b>";
1607
+
1608
+ if (json.desbloqueio) {
1609
+ var desbloqueio = document.getElementById("desbloqueio");
1610
+ desbloqueio.style.display = 'block'
1611
+ var url = json.desbloqueio;
1612
+ desbloqueio.setAttribute('onclick', "execDesbloqueio('" + url + "')");
1613
+
1614
+ }
1615
+
1616
+ var lista = json.contatos.split(/,| |-/);
1617
+ var options = "<option value=\"\">REALIZAR CONTATO</option>";
1618
+
1619
+ for (var i = 0; i < lista.length; i += 2) {
1620
+ nome = lista[i];
1621
+ telefone = lista[i + 1];
1622
+
1623
+ options += "<option value=\"tel:80" + telefone + "\">Ligar para " + nome + " " + telefone + "</option>";
1624
+ }
1625
+ document.getElementById("listaContatos").innerHTML = options;
1626
+
1627
+ document.getElementById("Operador").innerHTML = "<b> Operador: " + document.getElementById("myLogin").innerHTML + "</b>";
1628
+ var objidOco = document.getElementById("idOco");
1629
+ objidOco.setAttribute('value', json.id);
1630
+ var objnOp = document.getElementById("nomeOperador");
1631
+ objnOp.setAttribute('value', document.getElementById("myLogin").innerHTML);
1632
+
1633
+ //document.getElementById('ocoModal').style.display = 'block';
1634
+ }
1635
+ else {
1636
+ document.getElementById('ocoModal').style.display = 'none';
1637
+ }
1638
+
1639
+ }
1640
+ };
1641
+ // xhttp.open("GET", "https://script.google.com/macros/s/AKfycbziTdRkV1r6WFdUMoaBAugEkywspV6TqhPE8fTQnl2FOZ6Qn2E/exec?cmd=Ocorrencia&operador=" + document.getElementById("myLogin").innerHTML, true);
1642
+ xhttp.open("GET", "getdatalocal?comando=OcoViewrrencia&operador=" + document.getElementById("myLogin").innerHTML, true);
1643
+ xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
1644
+ xhttp.send("");
1645
+ });
1646
+ }
1647
+
1648
+ const fileInput = document.getElementById('audio');
1649
+ fileInput.onchange = () => {
1650
+ const selectedFile = fileInput.files[0];
1651
+
1652
+ if ((selectedFile) && (selectedFile.name.length > 0))
1653
+ {
1654
+ var dt = new Date();
1655
+ var path = "ftp://192.168.0.10/" + dt.getFullYear() + "/" + String(dt.getMonth() + 1).padStart(2, '0') + "/" + String(dt.getDate()).padStart(2, '0') + "/";
1656
+
1657
+ var saudio = path+selectedFile.name;
1658
+ var saudio = saudio.replace("[1]", "");
1659
+
1660
+ var objAudio = document.getElementById("lastaudio");
1661
+ objAudio.setAttribute('href', saudio);
1662
+
1663
+ document.getElementById("lastaudio").innerHTML = saudio;
1664
+
1665
+ }
1666
+ else {
1667
+ document.getElementById("lastaudio").innerHTML = "";
1668
+ }
1669
+ }
1670
+
1671
+ function getUltimoAudio()
1672
+ {
1673
+ var xhttp = new XMLHttpRequest();
1674
+ xhttp.onreadystatechange = function ()
1675
+ {
1676
+ if (this.readyState == 4 && this.status == 200)
1677
+ {
1678
+ var json = JSON.parse(this.responseText);
1679
+
1680
+ var file = json.voips[0].file;
1681
+ var sfile = file.replace("/var/spool/asterisk/monitor", "ftp://192.168.0.10");
1682
+
1683
+ var objAudio = document.getElementById("lastaudio");
1684
+ //objAudio.setAttribute('href', "javascript:testAudio(\"" + sfile + "\")");
1685
+ objAudio.setAttribute('href', sfile);
1686
+
1687
+ document.getElementById("lastaudio").innerHTML = sfile;
1688
+ document.getElementById("loadLastAudio").innerHTML = "Carrega Ultimos Audios";
1689
+
1690
+ var options = "<option value=\"\">Lista Ultimos Audios</option>";
1691
+
1692
+ for (var i = 0; i < json.voips.length; i ++) {
1693
+ var nome = json.voips[i].file;
1694
+ var snome = nome.replace("/var/spool/asterisk/monitor", "ftp://192.168.0.10");
1695
+
1696
+ options += "<option value=\"" + snome + "\">" + snome + "</option>";
1697
+ }
1698
+ document.getElementById("listaAudios").innerHTML = options;
1699
+
1700
+ }
1701
+ }
1702
+ var videoobj = document.getElementById("videoocorrencia");
1703
+ var video = videoobj.getAttribute('src');
1704
+
1705
+ var dvideo = video; // video.replace("http://atualli.ddns.net", "http://localhost:8088"); // video; // apenas para debug local
1706
+
1707
+ document.getElementById("loadLastAudio").innerHTML = "AGUARDE...";
1708
+
1709
+ xhttp.open("GET", dvideo + "&ramal=2002&phone=0", true);
1710
+ xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
1711
+ xhttp.send("");
1712
+ }
1713
+
1714
+ function testAudio(elm)
1715
+ {
1716
+ window.open(elm.value);
1717
+ }
1718
+
1719
+ function selAudio(elm) {
1720
+ if (elm.value.length > 1) {
1721
+
1722
+ var objAudio = document.getElementById("lastaudio");
1723
+ objAudio.setAttribute('href', elm.value);
1724
+
1725
+ document.getElementById("lastaudio").innerHTML = elm.value;
1726
+ }
1727
+ }
1728
+
1729
+ function sendMsgFinal(status)
1730
+ {
1731
+ var xhttp = new XMLHttpRequest();
1732
+
1733
+
1734
+ var videoobj = document.getElementById("videoocorrencia");
1735
+ var video = videoobj.getAttribute('src');
1736
+
1737
+ var objnOp = document.getElementById("nomeOperador");
1738
+ var operador = objnOp.getAttribute('value');
1739
+
1740
+ var idResp2 = document.getElementById("template").value;
1741
+ var idChat = document.getElementById("idChat").value;
1742
+
1743
+ var cliente = document.getElementById("cliente").value;
1744
+
1745
+ var roteiro = document.getElementById("roteiro").value;
1746
+
1747
+ var idOco = document.getElementById("idOco").value;
1748
+
1749
+ // var audio = document.getElementById("audio").value;
1750
+
1751
+ //var dt = new Date();
1752
+ //var path = "ftp://192.168.0.10/" + dt.getFullYear() + "/" + String (dt.getMonth() + 1).padStart(2, '0') + "/" + String (dt.getDate()).padStart(2, '0') + "/";
1753
+
1754
+ // var saudio = audio.replace("fakepath", "SIP\\Recordings");
1755
+ //var saudio = audio.replace("C:\\fakepath\\", path);
1756
+ //var saudio = saudio.replace("[1]", "");
1757
+
1758
+ var saudio = document.getElementById("lastaudio").innerHTML;
1759
+ if (saudio.length > 0)
1760
+ idResp2 = idResp2 + " (AUDIO ANEXADO)";
1761
+
1762
+
1763
+ var dvideo = video; // video.replace("http://atualli.ddns.net", "http://localhost:8088"); // video; // apenas para debug local
1764
+ // var url = dvideo + "&idchat=" + idChat + "&status=" + status + "&idoco=" + idOco + "&motivo=" + cliente + " - " + roteiro + " - " + idResp2 + "&audio=" + saudio;
1765
+ var url = dvideo + "&idchat=" + idChat + "&status=" + status + "&idoco=" + idOco + "&cliente=" + cliente + "&roteiro=" + roteiro + "&motivo=" + idResp2 + "&audio=" + saudio;
1766
+
1767
+ xhttp.open("GET", url, true);
1768
+ xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
1769
+ xhttp.send("");
1770
+ }
1771
+
1772
+ function gravaOcorrencia()
1773
+ {
1774
+ var template = document.getElementById("template").value;
1775
+ if (template.length >= 0) {
1776
+ var r = true; //confirm("Deseja realmente salvar a ocorrencia ?");
1777
+ if (r == true) {
1778
+ var xhttp = new XMLHttpRequest();
1779
+ xhttp.onreadystatechange = function () {
1780
+ if (this.readyState == 4 && this.status == 200) {
1781
+
1782
+ var json = JSON.parse(this.responseText);
1783
+
1784
+ // sendMsgFinal("grava");
1785
+
1786
+ resetFormOcorrencia();
1787
+
1788
+ document.getElementById('ocoModal').style.display = 'none';
1789
+ // alert("OCORRENCIA GRAVADA COM SUCESSO !");
1790
+ document.getElementById("gravar").innerHTML = "Gravar";
1791
+ document.getElementById("gravar").disabled = false;
1792
+
1793
+ }
1794
+
1795
+ };
1796
+
1797
+ document.getElementById("gravar").innerHTML = "Aguarde..";
1798
+ document.getElementById("gravar").disabled = true;
1799
+
1800
+
1801
+ var objidOco = document.getElementById("idOco");
1802
+ var idOco = objidOco.getAttribute('value');
1803
+ var objnOp = document.getElementById("nomeOperador");
1804
+ var operador = objnOp.getAttribute('value');
1805
+ var idResp1 = document.getElementById("procedimento").value;
1806
+ var idResp2 = document.getElementById("template").value;
1807
+ var idChat = document.getElementById("idChat").value;
1808
+
1809
+ // xhttp.open("GET", "https://script.google.com/macros/s/AKfycbziTdRkV1r6WFdUMoaBAugEkywspV6TqhPE8fTQnl2FOZ6Qn2E/exec?cmd=GravaOcorrencia&idOco=" + idOco + "&resposta1=" + idResp1 + "&resposta2=" + idResp2 + "&operador=" + operador, true);
1810
+ xhttp.open("GET", "getdatalocal?comando=GravaViewOcorrencia&idOco=" + idOco + "&resposta1=" + idResp1 + "&resposta2=" + idResp2 + "&operador=" + operador, true);
1811
+ xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
1812
+ // xhttp.timeout = 8000; // Set timeout to 4 seconds (4000 milliseconds)
1813
+ // xhttp.ontimeout = function () { alert("Timed out!!!"); }
1814
+ xhttp.send("");
1815
+
1816
+ }
1817
+ }
1818
+ else
1819
+ alert("Preencha o campo motivo e justifique a ocorrencia !");
1820
+ }
1821
+
1822
+ function resetMosaico() {
1823
+
1824
+ var r = confirm("Deseja realmente reiniciar o Mosaico ?. Use apenas em quando as imagens estiverem congeladas a mais de 1 hora");
1825
+ if (r == true) {
1826
+ var xhttp = new XMLHttpRequest();
1827
+ xhttp.onreadystatechange = function () {
1828
+ if (this.readyState == 4 && this.status == 200) {
1829
+
1830
+
1831
+ alert("MOSAICO REINICIADO COM SUCESSO !");
1832
+ document.getElementById("reset").innerHTML = "RESET";
1833
+ document.getElementById("reset").disabled = false;
1834
+
1835
+ }
1836
+
1837
+ };
1838
+
1839
+ document.getElementById("reset").innerHTML = "AGUARDE..";
1840
+ document.getElementById("reset").disabled = true;
1841
+
1842
+
1843
+ var login = document.getElementById("myLogin").innerHTML;
1844
+ var cliente = document.getElementById("clientelabel").innerHTML;
1845
+ var texto = "AT" + cliente + "_reiniciado_pelo_operador_" + login;
1846
+
1847
+ xhttp.open("GET", "<?URLBASE?>/resetmosaico?msg=" + texto, true);
1848
+ xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
1849
+ xhttp.send("");
1850
+ }
1851
+ }
1852
+
1853
+ function descartaOcorrencia() {
1854
+
1855
+ var template = document.getElementById("template").value;
1856
+ if (template.length > 0) {
1857
+ var r = confirm("Deseja realmente descartar ocorrencia ?");
1858
+ if (r == true) {
1859
+ var xhttp = new XMLHttpRequest();
1860
+ xhttp.onreadystatechange = function () {
1861
+ if (this.readyState == 4 && this.status == 200) {
1862
+
1863
+ var json = JSON.parse(this.responseText);
1864
+
1865
+ sendMsgFinal("descarta");
1866
+
1867
+ resetFormOcorrencia();
1868
+
1869
+ document.getElementById('ocoModal').style.display = 'none';
1870
+ alert("OCORRENCIA DESCARTADA COM SUCESSO !");
1871
+ document.getElementById("descartar").innerHTML = "Descartar";
1872
+ document.getElementById("descartar").disabled = false;
1873
+
1874
+ }
1875
+
1876
+ };
1877
+
1878
+ document.getElementById("descartar").innerHTML = "Aguarde..";
1879
+ document.getElementById("descartar").disabled = true;
1880
+
1881
+
1882
+ var objidOco = document.getElementById("idOco");
1883
+ var idOco = objidOco.getAttribute('value');
1884
+ var objnOp = document.getElementById("nomeOperador");
1885
+ var operador = objnOp.getAttribute('value');
1886
+ var idResp1 = document.getElementById("procedimento").value;
1887
+
1888
+ var idResp2 = document.getElementById("template").value;
1889
+
1890
+
1891
+ // xhttp.open("GET", "https://script.google.com/macros/s/AKfycbziTdRkV1r6WFdUMoaBAugEkywspV6TqhPE8fTQnl2FOZ6Qn2E/exec?cmd=GravaOcorrencia&descarta=true&idOco=" + idOco + "&resposta1=" + idResp1 + "&resposta2=" + idResp2 + "&operador=" + operador, true);
1892
+ xhttp.open("GET", "getdatalocal?comando=GravaViewOcorrencia&descarta=true&idOco=" + idOco + "&resposta1=" + idResp1 + "&resposta2=" + idResp2 + "&operador=" + operador, true);
1893
+ xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
1894
+ xhttp.send("");
1895
+ }
1896
+ }
1897
+ else
1898
+ alert("Preencha o campo motivo e justifique o Descarte!");
1899
+ }
1900
+
1901
+ function myFunctionNav() {
1902
+ var x = document.getElementById("myTopnav");
1903
+ if (x.className === "topnav") {
1904
+ x.className += " responsive";
1905
+ } else {
1906
+ x.className = "topnav";
1907
+ }
1908
+ }
1909
+ var solicitaLog = 0;
1910
+ function login(login) {
1911
+ var xhttp = new XMLHttpRequest();
1912
+ xhttp.onreadystatechange = function () {
1913
+ if (this.readyState == 4) {
1914
+ solicitaLog = 0;
1915
+ }
1916
+ };
1917
+ // xhttp.open("GET", "https://script.google.com/macros/s/AKfycbziTdRkV1r6WFdUMoaBAugEkywspV6TqhPE8fTQnl2FOZ6Qn2E/exec?cmd=Login&login="+login+"&ip=0", true);
1918
+ xhttp.open("GET", "getdatalocal?comando=Login&login="+login+"&ip=0", true);
1919
+ xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
1920
+ xhttp.send("");
1921
+ }
1922
+
1923
+ function logout(login) {
1924
+ var xhttp = new XMLHttpRequest();
1925
+ xhttp.onreadystatechange = function () {
1926
+ if (this.readyState == 4) {
1927
+ solicitaLog = 0;
1928
+ }
1929
+ };
1930
+ // xhttp.open("GET", "https://script.google.com/macros/s/AKfycbziTdRkV1r6WFdUMoaBAugEkywspV6TqhPE8fTQnl2FOZ6Qn2E/exec?cmd=Logout&login=" + login + "&ip=0", true);
1931
+ xhttp.open("GET", "getdatalocal?comando=Logout&login=" + login + "&ip=0", true);
1932
+ xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
1933
+ xhttp.send("");
1934
+ }
1935
+
1936
+ /* function autentica() {
1937
+
1938
+ var xhttp = new XMLHttpRequest();
1939
+
1940
+ var usuario = document.getElementById("myFormUsuario").value;
1941
+ var senha = document.getElementById("myFormSenha").value;
1942
+
1943
+ xhttp.onreadystatechange = function () {
1944
+ if (this.readyState == 4 && this.status == 200) {
1945
+
1946
+ if (this.responseText.indexOf("ERRO") > -1) {
1947
+ document.getElementById("myLogin").innerHTML = this.responseText;
1948
+
1949
+ localStorage.setItem("sessao", this.responseText);
1950
+ }
1951
+ else {
1952
+ localStorage.setItem("sessao", this.responseText);
1953
+ }
1954
+
1955
+ }
1956
+
1957
+ closeForm();
1958
+ };
1959
+
1960
+ document.getElementById("myLogin").innerHTML = "Aguarde Login";
1961
+ xhttp.open("GET", "https://script.google.com/macros/s/AKfycbziTdRkV1r6WFdUMoaBAugEkywspV6TqhPE8fTQnl2FOZ6Qn2E/exec?cmd=Login&user="+usuario+"&psw="+senha, true);
1962
+ xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
1963
+ xhttp.send("");
1964
+
1965
+ } */
1966
+
1967
+ function setoperacao() {
1968
+
1969
+ var status = document.getElementById("operacao").innerHTML;
1970
+ var usuario = document.getElementById("myLogin").innerHTML;
1971
+
1972
+ if ((usuario != "LOGIN") && (usuario != "")) {
1973
+ if (status == "QUERO TRABALHAR") {
1974
+ solicitaLog = 1;
1975
+ document.getElementById("operacao").innerHTML = "AGUARDE...";
1976
+ login(usuario);
1977
+ }
1978
+ if (status == "TRABALHANDO") {
1979
+ solicitaLog = 1;
1980
+ document.getElementById("operacao").innerHTML = "AGUARDE...";
1981
+ logout(usuario);
1982
+ }
1983
+ }
1984
+ }
1985
+
1986
+ function getFila()
1987
+ {
1988
+ if (onlyView==1) {
1989
+ document.getElementById("operacao").innerHTML = "VISUALIZANDO";
1990
+ tamFila = 0;
1991
+ myFila = 0;
1992
+ return;
1993
+ }
1994
+
1995
+ var xhttp = new XMLHttpRequest();
1996
+ xhttp.onreadystatechange = function () {
1997
+ if (this.readyState == 4 && this.status == 200) {
1998
+
1999
+ var json = JSON.parse(this.responseText);
2000
+
2001
+ document.getElementById("Fila").innerHTML = "FILA OCORRENCIAS " + "(" + json.myFila +"/"+json.numFila + ") ";
2002
+ if (solicitaLog == 0) {
2003
+ document.getElementById("operacao").innerHTML = json.status;
2004
+ }
2005
+
2006
+ var status = document.getElementById("operacao").innerHTML;
2007
+ if (status) {
2008
+ if (json.numFila != "0") {
2009
+ tamFila = parseInt(json.numFila);
2010
+ myFila = parseInt(json.myFila);
2011
+
2012
+ if (document.getElementById('ocoModal').style.display != 'block') {
2013
+ getVideoOcorrencia();
2014
+ }
2015
+ }
2016
+ else {
2017
+ tamFila = 0;
2018
+ myFila = 0;
2019
+ }
2020
+ }
2021
+ else {
2022
+ tamFila = 0;
2023
+ myFila = 0;
2024
+ }
2025
+ }
2026
+ };
2027
+ var usuario = document.getElementById("myLogin").innerHTML;
2028
+ // xhttp.open("GET", "https://script.google.com/macros/s/AKfycbziTdRkV1r6WFdUMoaBAugEkywspV6TqhPE8fTQnl2FOZ6Qn2E/exec?cmd=F2ila&login="+usuario, true);
2029
+ xhttp.open("GET", "getdatalocal?comando=FilaView&login="+usuario, true);
2030
+ xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
2031
+ xhttp.send("");
2032
+ }
2033
+
2034
+ function gogo2()
2035
+ {
2036
+ getFila()
2037
+ setTimeout(gogo2, to * 1000);
2038
+ }
2039
+
2040
+
2041
+ function refreshimg(img)
2042
+ {
2043
+
2044
+ }
2045
+
2046
+ function imgRedirect(img)
2047
+ {
2048
+
2049
+ }
2050
+
2051
+
2052
+ function errorloadimg(img) {
2053
+
2054
+ var d = new Date(),
2055
+ dummy = d.getTime();
2056
+ var newurl = 'getresource?r=atualli.png&';
2057
+
2058
+ var obj = img,
2059
+ s_rc = obj.getAttribute('src'),
2060
+ pure_src = s_rc.substring(s_rc.indexOf('c='), s_rc.indexOf('c=') + 4);
2061
+ obj.setAttribute('src',newurl+pure_src + '&' + dummy);
2062
+ //obj.nextSibling.innerHTML = obj.getAttribute('src');
2063
+
2064
+ /* first += 20;
2065
+ if (first > 5000)
2066
+ {
2067
+ first = 5000;
2068
+ //obj.removeChild(obj.lastElementChild);
2069
+ //location.reload();
2070
+ } */
2071
+
2072
+ }
2073
+
2074
+
2075
+ var resx = 1000;
2076
+ var resy = 1000;
2077
+ var canvasvx = 720;
2078
+ var canvasvy = 480;
2079
+ var lastDate = new Date();
2080
+
2081
+ var dataXhttp = [];
2082
+ var slot = 0;
2083
+ function gogo() {
2084
+
2085
+ if (first == 0) {
2086
+ first += 1;
2087
+
2088
+ var pix = document.getElementsByClassName('refr');
2089
+ for (var i = 0; i < pix.length; i++) {
2090
+
2091
+ for (var j = 0 ; j <= 32 ; j++) {
2092
+ dataXhttp[i + pix.length * j] = new XMLHttpRequest();
2093
+
2094
+ }
2095
+
2096
+ var img = pix[i];
2097
+ img.src = img.src;
2098
+ img.setAttribute("data-completed", -1);
2099
+ img.onload = function () {
2100
+
2101
+ var ids = this.id;
2102
+ var cam = "cvc" + ids.substring(3, 5);
2103
+ var c = document.getElementById(cam);
2104
+ var ctx = c.getContext("2d");
2105
+ c.setAttribute('width', canvasvx);
2106
+ c.setAttribute('height', canvasvy);
2107
+ ctx.drawImage(this, 0, 0, canvasvx, canvasvy);
2108
+ }
2109
+ }
2110
+ setTimeout(gogo, 10);
2111
+
2112
+ }
2113
+ else {
2114
+ var pix = document.getElementsByClassName('refr');
2115
+ for (var i = 0; i < pix.length; i++) {
2116
+
2117
+ var img = pix[i];
2118
+ var size = pix.length * slot;
2119
+ var impl = function (img, i, size)
2120
+ {
2121
+ var comp = img.getAttribute("data-completed");
2122
+ if (comp < 0) {
2123
+
2124
+ var cam = img.id.substring(3, 5);
2125
+ var newurl = '<?URL?>' + "c=" + cam;
2126
+
2127
+ // var xhttp = new XMLHttpRequest();
2128
+ var xhttp = dataXhttp[i + size];
2129
+ xhttp.onreadystatechange = function () {
2130
+ if (this.readyState == 4 && this.status == 200) {
2131
+ var json = this.response;
2132
+
2133
+ var reader = new FileReader();
2134
+ reader.onloadend = function () {
2135
+
2136
+ if (reader.result.length > 0) {
2137
+ img.src = reader.result;
2138
+
2139
+ img.onload = function () {
2140
+ this.setAttribute("data-completed", -1);
2141
+ var ids = this.id;
2142
+ var cam = "cvc" + ids.substring(3, 5);
2143
+ var c = document.getElementById(cam);
2144
+ var ctx = c.getContext("2d");
2145
+
2146
+ var resx = this.width
2147
+ var resy = this.height;
2148
+ c.setAttribute('width', canvasvx);
2149
+ c.setAttribute('height', canvasvy);
2150
+ ctx.drawImage(this, 0, 0, canvasvx, canvasvy);
2151
+
2152
+ }
2153
+
2154
+ img.onerror = function () {
2155
+ this.setAttribute("data-completed", -1);
2156
+ }
2157
+ }
2158
+
2159
+ }
2160
+ reader.readAsDataURL(json);
2161
+
2162
+ }
2163
+ else {
2164
+ img.setAttribute("data-completed", -1);
2165
+ }
2166
+ };
2167
+
2168
+ xhttp.open("GET", newurl, true);
2169
+ xhttp.responseType = 'blob';
2170
+ xhttp.send(null);
2171
+ img.setAttribute("data-completed", 0);
2172
+ }
2173
+ else {
2174
+ comp++;
2175
+ if (comp > 13) {
2176
+ comp = -1;
2177
+
2178
+ }
2179
+ img.setAttribute("data-completed", comp);
2180
+ }
2181
+ }
2182
+ impl(img, i, size);
2183
+ }
2184
+
2185
+ var d = new Date();
2186
+ var dummy = d.getTime();
2187
+ pix = document.getElementsByClassName('refrx');
2188
+ for (var i = 0; i < pix.length; i++) {
2189
+
2190
+ var img = pix[i];
2191
+ var c = document.getElementById('cvcx');
2192
+ if (img.src.indexOf("getcamera") >= 0) {
2193
+ if (img.complete) {
2194
+ var s_rc = img.src;
2195
+ var pure_src = s_rc.substring(0, s_rc.indexOf('c=') + 4);
2196
+ img.src = pure_src + "&" + dummy;
2197
+ img.onload = function () {
2198
+ this.complete = true;
2199
+ var c = document.getElementById('cvcx');
2200
+ var ctx = c.getContext("2d");
2201
+ c.setAttribute('width', this.width);
2202
+ c.setAttribute('height', this.height);
2203
+ ctx.drawImage(this, 0, 0, this.width, this.height);
2204
+
2205
+ }
2206
+ }
2207
+
2208
+ }
2209
+ }
2210
+
2211
+ slot++;
2212
+ slot = slot & 0x1f;
2213
+ var actual = new Date();
2214
+
2215
+ var interval = actual - lastDate;
2216
+ lastDate = actual;
2217
+
2218
+ if (interval > 150) interval = 150 - (interval - 150);
2219
+ else interval = 150;
2220
+ // console.log("inteval = ", interval);
2221
+ if (interval < 0 )
2222
+ {
2223
+ interval = 1;
2224
+ }
2225
+ setTimeout(gogo, interval);
2226
+ }
2227
+
2228
+ }
2229
+
2230
+
2231
+
2232
+
2233
+
2234
+
2235
+
2236
+
2237
+
2238
+
2239
+ function iniciaPagina()
2240
+ {
2241
+ const urlParams = new URLSearchParams(window.location.search);
2242
+ var name=loadLogin();
2243
+ if((!name) || (name=="LOGIN"))
2244
+ {
2245
+ openurl("/novo-front/index");
2246
+ }
2247
+ else
2248
+ {
2249
+ const myParam = urlParams.get('view');
2250
+ if (myParam)
2251
+ onlyView = 1;
2252
+ gogo2();
2253
+ // document.getElementById("Fila").setAttribute('onclick', "document.getElementById('ocoModal').style.display = 'block'; getVideoOcorrencia();");
2254
+
2255
+ gogo();
2256
+
2257
+ let cliente=document.getElementById("clientelabel").innerHTML;
2258
+ cliente=cliente.trim();
2259
+ var novaGrade=getCookie("GRADE-"+cliente);
2260
+ if(novaGrade)
2261
+ changeGrade(novaGrade);
2262
+ else
2263
+ changeGrade("Auto");
2264
+
2265
+ setCookie("CLIENTEVIEW2",cliente,10);
2266
+
2267
+ // selecionaOperador(getCookie("LOGIN"));
2268
+ // document.getElementById("Fila").setAttribute('onclick', "getVideoOcorrencia();");
2269
+ }
2270
+ }
2271
+
2272
+ //Make the DIV element draggagle:
2273
+ dragElement(document.getElementById("ocoModal"));
2274
+
2275
+ function dragElement(elmnt) {
2276
+ var pos1 = 0, pos2 = 0, pos3 = 0, pos4 = 0;
2277
+ if (document.getElementById(elmnt.id + "header")) {
2278
+ /* if present, the header is where you move the DIV from:*/
2279
+ document.getElementById(elmnt.id + "header").onmousedown = dragMouseDown;
2280
+ } else {
2281
+ /* otherwise, move the DIV from anywhere inside the DIV:*/
2282
+ elmnt.onmousedown = dragMouseDown;
2283
+ }
2284
+
2285
+ function dragMouseDown(e) {
2286
+ e = e || window.event;
2287
+ //e.preventDefault();
2288
+ // get the mouse cursor position at startup:
2289
+ pos3 = e.clientX;
2290
+ pos4 = e.clientY;
2291
+ var elementId = e.srcElement.id;
2292
+ if (elementId != "template") {
2293
+ document.onmouseup = closeDragElement;
2294
+ // call a function whenever the cursor moves:
2295
+ document.onmousemove = elementDrag;
2296
+ }
2297
+ }
2298
+
2299
+ function elementDrag(e) {
2300
+ e = e || window.event;
2301
+ //e.preventDefault();
2302
+ // calculate the new cursor position:
2303
+ pos1 = pos3 - e.clientX;
2304
+ pos2 = pos4 - e.clientY;
2305
+ pos3 = e.clientX;
2306
+ pos4 = e.clientY;
2307
+ // set the element's new position:
2308
+ elmnt.style.top = (elmnt.offsetTop - pos2) + "px";
2309
+ elmnt.style.left = (elmnt.offsetLeft - pos1) + "px";
2310
+ }
2311
+
2312
+ function closeDragElement() {
2313
+ /* stop moving when mouse button is released:*/
2314
+ document.onmouseup = null;
2315
+ document.onmousemove = null;
2316
+ }
2317
+ }
2318
+ </script>
2319
+
2320
+
2321
+ </body>
2322
+
2323
+ </html>
2324
+
2325
+
2326
+
static/data/DLQBUG/419601.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ {"id":"419601","cliente":"EPAR-BOA-VISTA","data":"05/07/2022 21:50:18","idprogramacao":"550","idmsg":"557329","idchat":"-1001577017933","idroteiro":"8","roteiro":"Acesso de veiculos ","video":"http://mosaico03.atualli.com/getpathvideo?c=\\\\ATLSRVMOSAICO03\\GRAVACOES\\LOCAL\\SANASA\\05-07-2022\\EPAR-BOA-VISTA\\DVR01\\CAM-06\\EVENTOS\\LOCAL_EPAR-BOA-VISTA_DVR01_177.170.15.160_35210_06_05072022_215014.mp4","status":"Descartado","dataoperador":"06/07/2022 00:06:29","dataregistro":"05/07/2022 21:50:18","operador":"Giovanna Araujo ( [email protected] )","desbloqueio":"","complemento":"","urlcamera":"http://mosaico03.atualli.com:8700/getcamera?c=03","procedimento":"Realizar contato telefonico, verificar o motivo, analisar as imagens e preencher ocorrencia ","templat":"Em contato com o Sr(a)___, informou o acesso do Sr(a)___ devido___. ","prioridade":"AMARELO","contatos":"SanasaStrat�gic-801932351544,SanasaCelular-8019981312026,SanasaCelular-8019983795336,ThalesSupervisor-8019993410280,CIMCAMP-80193772402,CIMCAMP-8019981312863","idalarme":"0","login":"movimento,pessoa,veiculo"}
static/data/DLQBUG/419656.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ {"id":"419656","cliente":"EPAR-BOA-VISTA","data":"05/07/2022 22:25:41","idprogramacao":"550","idmsg":"557376","idchat":"-1001577017933","idroteiro":"8","roteiro":"Acesso de veiculos ","video":"http://mosaico03.atualli.com/getpathvideo?c=\\\\ATLSRVMOSAICO03\\GRAVACOES\\LOCAL\\SANASA\\05-07-2022\\EPAR-BOA-VISTA\\DVR01\\CAM-06\\EVENTOS\\LOCAL_EPAR-BOA-VISTA_DVR01_177.170.15.160_35210_06_05072022_222537.mp4","status":"Descartado","dataoperador":"06/07/2022 00:08:26","dataregistro":"05/07/2022 22:25:41","operador":"Giovanna Araujo ( [email protected] )","desbloqueio":"","complemento":"","urlcamera":"http://mosaico03.atualli.com:8700/getcamera?c=03","procedimento":"Realizar contato telefonico, verificar o motivo, analisar as imagens e preencher ocorrencia ","templat":"Em contato com o Sr(a)___, informou o acesso do Sr(a)___ devido___. ","prioridade":"AMARELO","contatos":"SanasaStrat�gic-801932351544,SanasaCelular-8019981312026,SanasaCelular-8019983795336,ThalesSupervisor-8019993410280,CIMCAMP-80193772402,CIMCAMP-8019981312863","idalarme":"0","login":"movimento,pessoa,veiculo"}
static/data/DLQBUG/419657.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ {"id":"419657","cliente":"EPAR-BOA-VISTA","data":"05/07/2022 22:27:08","idprogramacao":"550","idmsg":"557377","idchat":"-1001577017933","idroteiro":"6","roteiro":"Acesso de Pessoas ","video":"http://mosaico03.atualli.com/getpathvideo?c=\\\\ATLSRVMOSAICO03\\GRAVACOES\\LOCAL\\SANASA\\05-07-2022\\EPAR-BOA-VISTA\\DVR01\\CAM-06\\EVENTOS\\LOCAL_EPAR-BOA-VISTA_DVR01_177.170.15.160_35210_06_05072022_222719.mp4","status":"Descartado","dataoperador":"06/07/2022 00:06:16","dataregistro":"05/07/2022 22:27:08","operador":"Giovanna Araujo ( [email protected] )","desbloqueio":"","complemento":"","urlcamera":"http://mosaico03.atualli.com:8700/getcamera?c=03","procedimento":"Realizar contato telefonico, verificar o motivo, analisar as imagens e preencher ocorrencia ","templat":"Em contato com o Sr(a)___, informou o acesso do Sr(a)___ devido___. ","prioridade":"VERMELHO","contatos":"SanasaStrat�gic-801932351544,SanasaCelular-8019981312026,SanasaCelular-8019983795336,ThalesSupervisor-8019993410280,CIMCAMP-80193772402,CIMCAMP-8019981312863","idalarme":"0","login":"movimento,pessoa,veiculo"}
static/data/DLQBUG/419659.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ {"id":"419659","cliente":"EPAR-BOA-VISTA","data":"05/07/2022 22:29:05","idprogramacao":"551","idmsg":"557379","idchat":"-1001577017933","idroteiro":"8","roteiro":"Acesso de veiculos ","video":"http://mosaico03.atualli.com/getpathvideo?c=\\\\ATLSRVMOSAICO03\\GRAVACOES\\LOCAL\\SANASA\\05-07-2022\\EPAR-BOA-VISTA\\DVR01\\CAM-07\\EVENTOS\\LOCAL_EPAR-BOA-VISTA_DVR01_177.170.15.160_35210_07_05072022_222539.mp4","status":"Descartado","dataoperador":"06/07/2022 00:08:34","dataregistro":"05/07/2022 22:29:05","operador":"Giovanna Araujo ( [email protected] )","desbloqueio":"","complemento":"","urlcamera":"http://mosaico03.atualli.com:8700/getcamera?c=04","procedimento":"Realizar contato telefonico, verificar o motivo, analisar as imagens e preencher ocorrencia ","templat":"Em contato com o Sr(a)___, informou o acesso do Sr(a)___ devido___. ","prioridade":"AMARELO","contatos":"SanasaStrat�gic-801932351544,SanasaCelular-8019981312026,SanasaCelular-8019983795336,ThalesSupervisor-8019993410280,CIMCAMP-80193772402,CIMCAMP-8019981312863","idalarme":"0","login":"mascara,pessoa,veiculo"}
static/data/DLQBUG/419679.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ {"id":"419679","cliente":"EPAR-BOA-VISTA","data":"05/07/2022 22:40:33","idprogramacao":"550","idmsg":"557398","idchat":"-1001577017933","idroteiro":"8","roteiro":"Acesso de veiculos ","video":"http://mosaico03.atualli.com/getpathvideo?c=\\\\ATLSRVMOSAICO03\\GRAVACOES\\LOCAL\\SANASA\\05-07-2022\\EPAR-BOA-VISTA\\DVR01\\CAM-06\\EVENTOS\\LOCAL_EPAR-BOA-VISTA_DVR01_177.170.15.160_35210_06_05072022_224029.mp4","status":"Descartado","dataoperador":"06/07/2022 00:08:39","dataregistro":"05/07/2022 22:40:33","operador":"Giovanna Araujo ( [email protected] )","desbloqueio":"","complemento":"","urlcamera":"http://mosaico03.atualli.com:8700/getcamera?c=03","procedimento":"Realizar contato telefonico, verificar o motivo, analisar as imagens e preencher ocorrencia ","templat":"Em contato com o Sr(a)___, informou o acesso do Sr(a)___ devido___. ","prioridade":"AMARELO","contatos":"SanasaStrat�gic-801932351544,SanasaCelular-8019981312026,SanasaCelular-8019983795336,ThalesSupervisor-8019993410280,CIMCAMP-80193772402,CIMCAMP-8019981312863","idalarme":"0","login":"movimento,pessoa,veiculo"}
static/data/DLQBUG/419693.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ {"id":"419693","cliente":"EPAR-BOA-VISTA","data":"05/07/2022 22:48:27","idprogramacao":"551","idmsg":"557411","idchat":"-1001577017933","idroteiro":"6","roteiro":"Acesso de Pessoas ","video":"http://mosaico03.atualli.com/getpathvideo?c=\\\\ATLSRVMOSAICO03\\GRAVACOES\\LOCAL\\SANASA\\05-07-2022\\EPAR-BOA-VISTA\\DVR01\\CAM-07\\EVENTOS\\LOCAL_EPAR-BOA-VISTA_DVR01_177.170.15.160_35210_07_05072022_224807.mp4","status":"Descartado","dataoperador":"06/07/2022 00:08:44","dataregistro":"05/07/2022 22:48:27","operador":"Giovanna Araujo ( [email protected] )","desbloqueio":"","complemento":"","urlcamera":"http://mosaico03.atualli.com:8700/getcamera?c=04","procedimento":"Realizar contato telefonico, verificar o motivo, analisar as imagens e preencher ocorrencia ","templat":"Em contato com o Sr(a)___, informou o acesso do Sr(a)___ devido___. ","prioridade":"AMARELO","contatos":"SanasaStrat�gic-801932351544,SanasaCelular-8019981312026,SanasaCelular-8019983795336,ThalesSupervisor-8019993410280,CIMCAMP-80193772402,CIMCAMP-8019981312863","idalarme":"0","login":"mascara,pessoa,veiculo"}
static/data/DLQBUG/419699.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ {"id":"419699","cliente":"EPAR-BOA-VISTA","data":"05/07/2022 22:51:23","idprogramacao":"551","idmsg":"557417","idchat":"-1001577017933","idroteiro":"10","roteiro":"Acesso de veiculos e pessoas ","video":"http://mosaico03.atualli.com/getpathvideo?c=\\\\ATLSRVMOSAICO03\\GRAVACOES\\LOCAL\\SANASA\\05-07-2022\\EPAR-BOA-VISTA\\DVR01\\CAM-07\\EVENTOS\\LOCAL_EPAR-BOA-VISTA_DVR01_177.170.15.160_35210_07_05072022_225110.mp4","status":"Descartado","dataoperador":"06/07/2022 00:08:50","dataregistro":"05/07/2022 22:51:23","operador":"Giovanna Araujo ( [email protected] )","desbloqueio":"","complemento":"","urlcamera":"http://mosaico03.atualli.com:8700/getcamera?c=04","procedimento":"Realizar contato telefonico, verificar o motivo, analisar as imagens e preencher ocorrencia ","templat":"Em contato com o Sr(a)___, informou o acesso do Sr(a)___ devido___. ","prioridade":"AMARELO","contatos":"SanasaStrat�gic-801932351544,SanasaCelular-8019981312026,SanasaCelular-8019983795336,ThalesSupervisor-8019993410280,CIMCAMP-80193772402,CIMCAMP-8019981312863","idalarme":"0","login":"mascara,pessoa,veiculo"}
static/data/cache/cameras.txt ADDED
The diff for this file is too large to render. See raw diff
 
static/data/cache/comando.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ { "comando" : [{"cliente":"MULTILASER-ESCRITORIO","idchat":-1001314521422,"comando":"\"/DESBLOQUEIO-12\"","url":"http://painel.atualli.com:8098/setinput?c=1-4","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-1001314521422,"comando":"\"/DESBLOQUEIO-14-INTERNO\"","url":"http://painel.atualli.com:8098/setinput?c=1-3","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-1001314521422,"comando":"\"/DESBLOQUEIO-14-EXTERNO\"","url":"http://painel.atualli.com:8098/setinput?c=1-2","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-1001314521422,"comando":"\"/DESBLOQUEIO-15\"","url":"http://painel.atualli.com:8098/setinput?c=1-1","tipo":"EXEC"},{"cliente":"ATUALLI","idchat":-1001416816153,"comando":"\"/PANICO\"","url":"http://mosaico02.atualli.com:8092/setinput?c=1-1","tipo":"EXEC"},{"cliente":"ATUALLI","idchat":-1001416816153,"comando":"\"/DESBLOQUEIO-TESTE\"","url":"http://mosaico.atualli.com:8092/resetinput?c=1-2","tipo":"EXEC"},{"cliente":"ATUALLI","idchat":-1001416816153,"comando":"\"/MOSAICO\"","url":"http://painel.atualli.com/magma","tipo":"SHOW"},{"cliente":"ATUALLI","idchat":-1001416816153,"comando":"\"/DASHBOARD\"","url":"https://datastudio.google.com/reporting/f940aee1-4837-4b91-9de1-448ae85f818b","tipo":"SHOW"},{"cliente":"ATUALLI","idchat":-1001416816153,"comando":"\"/CHECKLIST\"","url":"https://script.google.com/macros/s/AKfycbwhKBg30dZyhEiL6gHT4cbFqL2ncF-fGuQ3fwqFlASFF3bZge4C/exec?comando=CheckList&idCliente=ATUALLI&idChat=-1001416816153","tipo":"EXEC"},{"cliente":"MAGMA","idchat":-1001432354496,"comando":"\"/MOSAICO\"","url":"http://painel.atualli.com/magma","tipo":"SHOW"},{"cliente":"MOEMA","idchat":-369453394,"comando":"\"/DESBLOQUEIO-FRENTE\"","url":"http://mosaico02.atualli.com:8089/resetoutput?c=17-1","tipo":"EXEC"},{"cliente":"MOEMA","idchat":-369453394,"comando":"\"/DESBLOQUEIO-FUNDO\"","url":"http://mosaico02.atualli.com:8089/resetoutput?c=17-2","tipo":"EXEC"},{"cliente":"MOEMA","idchat":-369453394,"comando":"\"/SIRENE-ON\"","url":"http://mosaico02.atualli.com:8089/setoutput?c=17-3","tipo":"EXEC"},{"cliente":"MOEMA","idchat":-369453394,"comando":"\"/SIRENE-OFF\"","url":"http://mosaico02.atualli.com:8089/resetoutput?c=17-3","tipo":"EXEC"},{"cliente":"MOEMA","idchat":-369453394,"comando":"\"/PANICO\"","url":"http://mosaico02.atualli.com:8089/setinput?c=17-1","tipo":"EXEC"},{"cliente":"MOEMA","idchat":-369453394,"comando":"\"/PORTAO\"","url":"http://mosaico02.atualli.com:8089/setoutput?c=17-@4","tipo":"EXEC"},{"cliente":"PEDRA","idchat":-1001205598365,"comando":"\"/DESBLOQUEIO\"","url":"http://mosaico.atualli.com:8093/resetoutput?c=1-1","tipo":"EXEC"},{"cliente":"PEDRA","idchat":-1001205598365,"comando":"\"/PANICO\"","url":"http://mosaico.atualli.com:8093/setinput?c=1-1","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-1001341432557,"comando":"\"/DESBLOQUEIO-12\"","url":"http://painel.atualli.com:8098/resetoutput?c=1-4","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-1001341432557,"comando":"\"/DESBLOQUEIO-14-INTERNO\"","url":"http://painel.atualli.com:8098/resetoutput?c=1-3","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-1001341432557,"comando":"\"/DESBLOQUEIO-14-EXTERNO\"","url":"http://painel.atualli.com:8098/resetoutput?c=1-2","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-1001341432557,"comando":"\"/DESBLOQUEIO-15\"","url":"http://painel.atualli.com:8098/setoutput?c=1-1","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-1001154180375,"comando":"\"/DESBLOQUEIO-12\"","url":"http://painel.atualli.com:8098/resetoutput?c=1-4","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-1001154180375,"comando":"\"/DESBLOQUEIO-14-INTERNO\"","url":"http://painel.atualli.com:8098/resetoutput?c=1-3","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-1001154180375,"comando":"\"/DESBLOQUEIO-14-EXTERNO\"","url":"http://painel.atualli.com:8098/resetoutput?c=1-2","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-1001154180375,"comando":"\"/DESBLOQUEIO-15\"","url":"http://painel.atualli.com:8098/setoutput?c=1-1","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-1001478142691,"comando":"\"/DESBLOQUEIO-12\"","url":"http://painel.atualli.com:8098/resetoutput?c=1-4","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-1001478142691,"comando":"\"/DESBLOQUEIO-14-INTERNO\"","url":"http://painel.atualli.com:8098/resetoutput?c=1-3","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-1001478142691,"comando":"\"/DESBLOQUEIO-14-EXTERNO\"","url":"http://painel.atualli.com:8098/resetoutput?c=1-2","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-1001478142691,"comando":"\"/DESBLOQUEIO-15\"","url":"http://painel.atualli.com:8098/setoutput?c=1-1","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-452919250,"comando":"\"/DESBLOQUEIO-12\"","url":"http://painel.atualli.com:8098/resetoutput?c=1-4","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-452919250,"comando":"\"/DESBLOQUEIO-14-INTERNO\"","url":"http://painel.atualli.com:8098/resetoutput?c=1-3","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-452919250,"comando":"\"/DESBLOQUEIO-14-EXTERNO\"","url":"http://painel.atualli.com:8098/resetoutput?c=1-2","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-452919250,"comando":"\"/DESBLOQUEIO-15\"","url":"http://painel.atualli.com:8098/setoutput?c=1-1","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-1001300407076,"comando":"\"/DESBLOQUEIO-12\"","url":"http://painel.atualli.com:8098/resetoutput?c=1-4","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-1001300407076,"comando":"\"/DESBLOQUEIO-14-INTERNO\"","url":"http://painel.atualli.com:8098/resetoutput?c=1-3","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-1001300407076,"comando":"\"/DESBLOQUEIO-14-EXTERNO\"","url":"http://painel.atualli.com:8098/resetoutput?c=1-2","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-1001300407076,"comando":"\"/DESBLOQUEIO-15\"","url":"http://painel.atualli.com:8098/setoutput?c=1-1","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-403493175,"comando":"\"/DESBLOQUEIO-12\"","url":"http://painel.atualli.com:8098/resetoutput?c=1-4","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-403493175,"comando":"\"/DESBLOQUEIO-14-INTERNO\"","url":"http://painel.atualli.com:8098/resetoutput?c=1-3","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-403493175,"comando":"\"/DESBLOQUEIO-14-EXTERNO\"","url":"http://painel.atualli.com:8098/resetoutput?c=1-2","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-403493175,"comando":"\"/DESBLOQUEIO-15\"","url":"http://painel.atualli.com:8098/setoutput?c=1-1","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-334736745,"comando":"\"/DESBLOQUEIO-12\"","url":"http://painel.atualli.com:8098/resetoutput?c=1-4","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-334736745,"comando":"\"/DESBLOQUEIO-14-INTERNO\"","url":"http://painel.atualli.com:8098/resetoutput?c=1-3","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-334736745,"comando":"\"/DESBLOQUEIO-14-EXTERNO\"","url":"http://painel.atualli.com:8098/resetoutput?c=1-2","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-334736745,"comando":"\"/DESBLOQUEIO-15\"","url":"http://painel.atualli.com:8098/setoutput?c=1-1","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-437017822,"comando":"\"/DESBLOQUEIO-12\"","url":"http://painel.atualli.com:8098/resetoutput?c=1-4","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-437017822,"comando":"\"/DESBLOQUEIO-14-INTERNO\"","url":"http://painel.atualli.com:8098/resetoutput?c=1-3","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-437017822,"comando":"\"/DESBLOQUEIO-14-EXTERNO\"","url":"http://painel.atualli.com:8098/resetoutput?c=1-2","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-437017822,"comando":"\"/DESBLOQUEIO-15\"","url":"http://painel.atualli.com:8098/setoutput?c=1-1","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-403529361,"comando":"\"/DESBLOQUEIO-12\"","url":"http://painel.atualli.com:8098/resetoutput?c=1-4","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-403529361,"comando":"\"/DESBLOQUEIO-14-INTERNO\"","url":"http://painel.atualli.com:8098/resetoutput?c=1-3","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-403529361,"comando":"\"/DESBLOQUEIO-14-EXTERNO\"","url":"http://painel.atualli.com:8098/resetoutput?c=1-2","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-403529361,"comando":"\"/DESBLOQUEIO-15\"","url":"http://painel.atualli.com:8098/setoutput?c=1-1","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-437230492,"comando":"\"/DESBLOQUEIO-12\"","url":"http://painel.atualli.com:8098/resetoutput?c=1-4","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-437230492,"comando":"\"/DESBLOQUEIO-14-INTERNO\"","url":"http://painel.atualli.com:8098/resetoutput?c=1-3","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-437230492,"comando":"\"/DESBLOQUEIO-14-EXTERNO\"","url":"http://painel.atualli.com:8098/resetoutput?c=1-2","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-437230492,"comando":"\"/DESBLOQUEIO-15\"","url":"http://painel.atualli.com:8098/setoutput?c=1-1","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-320241186,"comando":"\"/DESBLOQUEIO-12\"","url":"http://painel.atualli.com:8098/resetoutput?c=1-4","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-320241186,"comando":"\"/DESBLOQUEIO-14-INTERNO\"","url":"http://painel.atualli.com:8098/resetoutput?c=1-3","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-320241186,"comando":"\"/DESBLOQUEIO-14-EXTERNO\"","url":"http://painel.atualli.com:8098/resetoutput?c=1-2","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-320241186,"comando":"\"/DESBLOQUEIO-15\"","url":"http://painel.atualli.com:8098/setoutput?c=1-1","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-428391924,"comando":"\"/DESBLOQUEIO-12\"","url":"http://painel.atualli.com:8098/resetoutput?c=1-4","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-428391924,"comando":"\"/DESBLOQUEIO-14-INTERNO\"","url":"http://painel.atualli.com:8098/resetoutput?c=1-3","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-428391924,"comando":"\"/DESBLOQUEIO-14-EXTERNO\"","url":"http://painel.atualli.com:8098/resetoutput?c=1-2","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-428391924,"comando":"\"/DESBLOQUEIO-15\"","url":"http://painel.atualli.com:8098/setoutput?c=1-1","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-428391924,"comando":"\"/DESBLOQUEIO-12\"","url":"http://painel.atualli.com:8098/resetoutput?c=1-4","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-428391924,"comando":"\"/DESBLOQUEIO-14-INTERNO\"","url":"http://painel.atualli.com:8098/resetoutput?c=1-3","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-428391924,"comando":"\"/DESBLOQUEIO-14-EXTERNO\"","url":"http://painel.atualli.com:8098/resetoutput?c=1-2","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-428391924,"comando":"\"/DESBLOQUEIO-15\"","url":"http://painel.atualli.com:8098/setoutput?c=1-1","tipo":"EXEC"},{"cliente":"MULTILASER-EXTREMA","idchat":-412784342,"comando":"\"/DESBLOQUEIO-BOLLARD\"","url":"http://painel.atualli.com:8094/setinput?c=1-7","tipo":"EXEC"},{"cliente":"MULTILASER-EXTREMA","idchat":-412784342,"comando":"\"/DESBLOQUEIO-CANCELA\"","url":"http://painel.atualli.com:8094/setinput?c=1-6","tipo":"EXEC"},{"cliente":"MULTILASER-EXTREMA","idchat":-412784342,"comando":"\"/DESBLOQUEIO-BUNKER\"","url":"http://painel.atualli.com:8094/setinput?c=1-8","tipo":"EXEC"},{"cliente":"MULTILASER-EXTREMA","idchat":-412784342,"comando":"\"/PANICO-BUNKER\"","url":"http://painel.atualli.com:8094/setinput?c=1-1","tipo":"EXEC"},{"cliente":"MULTILASER-EXTREMA","idchat":-412784342,"comando":"\"/DESBLOQUEIO-15\"","url":"http://painel.atualli.com:8098/setoutput?c=1-1","tipo":"EXEC"},{"cliente":"MULTILASER-EXTREMA","idchat":-412784342,"comando":"\"/DESBLOQUEIO-14-INTERNO\"","url":"http://painel.atualli.com:8098/resetoutput?c=1-3","tipo":"EXEC"},{"cliente":"MULTILASER-EXTREMA","idchat":-412784342,"comando":"\"/DESBLOQUEIO-14-EXTERNO\"","url":"http://painel.atualli.com:8098/resetoutput?c=1-2","tipo":"EXEC"},{"cliente":"MULTILASER-EXTREMA","idchat":-451291829,"comando":"\"/PANICO-PORTARIA\"","url":"http://painel.atualli.com:8094/setinput?c=1-2","tipo":"EXEC"},{"cliente":"MULTILASER-EXTREMA","idchat":-491111053,"comando":"\"/PANICO-REVISTA\"","url":"http://painel.atualli.com:8094/setinput?c=1-3","tipo":"EXEC"},{"cliente":"MULTILASER-EXTREMA","idchat":-312003047,"comando":"\"/PANICO-RONDA1\"","url":"http://painel.atualli.com:8094/setinput?c=1-4","tipo":"EXEC"},{"cliente":"MULTILASER-EXTREMA","idchat":-392573980,"comando":"\"/PANICO-RONDA2\"","url":"http://painel.atualli.com:8094/setinput?c=1-5","tipo":"EXEC"},{"cliente":"BEACON-LEOPOLDINA","idchat":-1001207720086,"comando":"\"/PANICO\"","url":"http://atlsrvmosaico05.atualli.com:8101/setinput?c=1-1","tipo":"EXEC"},{"cliente":"MULTILASER-MANAUS","idchat":-336526317,"comando":"\"/DESBLOQUEIO-CANCELA\"","url":"","tipo":"EXEC"},{"cliente":"MULTILASER-MANAUS","idchat":-336526317,"comando":"\"/DESBLOQUEIO-PRINCIPAL\"","url":"","tipo":"EXEC"},{"cliente":"MULTILASER-MANAUS","idchat":-336526317,"comando":"\"/PANICO-PORTARIA\"","url":"http://painel.atualli.com:8097/setinput?c=1-7","tipo":"EXEC"},{"cliente":"MULTILASER-MANAUS","idchat":-381346430,"comando":"\"/PANICO-REVISTA\"","url":"http://painel.atualli.com:8097/setinput?c=1-8","tipo":"EXEC"},{"cliente":"MULTILASER-MANAUS","idchat":-462838628,"comando":"\"/PANICO-RONDA\"","url":"http://painel.atualli.com:8097/setinput?c=1-9","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-1001460187021,"comando":"\"/DESBLOQUEIO-12\"","url":"http://painel.atualli.com:8098/resetoutput?c=1-4","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-1001460187021,"comando":"\"/DESBLOQUEIO-14-INTERNO\"","url":"http://painel.atualli.com:8098/resetoutput?c=1-3","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-1001460187021,"comando":"\"/DESBLOQUEIO-14-EXTERNO\"","url":"http://painel.atualli.com:8098/resetoutput?c=1-2","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-1001460187021,"comando":"\"/DESBLOQUEIO-15\"","url":"http://painel.atualli.com:8098/setoutput?c=1-1","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-482103081,"comando":"\"/DESBLOQUEIO-12\"","url":"http://painel.atualli.com:8098/resetoutput?c=1-4","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-482103081,"comando":"\"/DESBLOQUEIO-14-INTERNO\"","url":"http://painel.atualli.com:8098/resetoutput?c=1-3","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-482103081,"comando":"\"/DESBLOQUEIO-14-EXTERNO\"","url":"http://painel.atualli.com:8098/resetoutput?c=1-2","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-482103081,"comando":"\"/DESBLOQUEIO-15\"","url":"http://painel.atualli.com:8098/setoutput?c=1-1","tipo":"EXEC"},{"cliente":"PEDRA","idchat":-473868200,"comando":"\"/PANICO\"","url":"http://mosaico02.atualli.com:8093/setinput?c=1-2","tipo":"EXEC"},{"cliente":"MAGMA","idchat":-1001432354496,"comando":"\"/PANICO\"","url":"http://atlsrvmosaico05.atualli.com:8091/setinput?c=1-7","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-1001309438491,"comando":"\"/DESBLOQUEIO-12\"","url":"http://painel.atualli.com:8098/resetoutput?c=1-4","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-1001309438491,"comando":"\"/DESBLOQUEIO-14-INTERNO\"","url":"http://painel.atualli.com:8098/resetoutput?c=1-3","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-1001309438491,"comando":"\"/DESBLOQUEIO-14-EXTERNO\"","url":"http://painel.atualli.com:8098/resetoutput?c=1-2","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-1001309438491,"comando":"\"/DESBLOQUEIO-15\"","url":"http://painel.atualli.com:8098/setoutput?c=1-1","tipo":"EXEC"},{"cliente":"CLIENTE-TESTE","idchat":-1001380123558,"comando":"\"/PANICO\"","url":"http://atualli.ddns.net:8090/setinput?c=1-7","tipo":"EXEC"},{"cliente":"CLIENTE-TESTE","idchat":-1001380123558,"comando":"\"/PORTAO-GARAGEM\"","url":"http://atualli.ddns.net:8090/setoutput?c=0-@4","tipo":"EXEC"},{"cliente":"CLIENTE-TESTE","idchat":-1001380123558,"comando":"\"/CHECKLIST\"","url":"https://script.google.com/macros/s/AKfycbwhKBg30dZyhEiL6gHT4cbFqL2ncF-fGuQ3fwqFlASFF3bZge4C/exec?comando=CheckList&idCliente=CLIENTE-TESTE&idChat=-1001380123558","tipo":"EXEC"},{"cliente":"GOIVOS","idchat":-1001309143182,"comando":"\"/PANICO\"","url":"http://mosaico02.atualli.com:8110/setinput?c=1-1","tipo":"EXEC"},{"cliente":"GIARDINO-DI-MILANO","idchat":-1001350704830,"comando":"\"/PANICO\"","url":"http://mosaico02.atualli.com:8108/setinput?c=1-1","tipo":"EXEC"},{"cliente":"GIARDINO-DI-MILANO","idchat":-1001260470570,"comando":"\"/PANICO\"","url":"http://mosaico02.atualli.com:8108/setinput?c=1-1","tipo":"EXEC"},{"cliente":"SOLAR-PAULISTA","idchat":-1001446804890,"comando":"\"/PANICO\"","url":"http://mosaico02.atualli.com:8111/setinput?c=1-1","tipo":"EXEC"},{"cliente":"DESIGN-ARTE","idchat":-1001427177147,"comando":"\"/PANICO\"","url":"http://mosaico02.atualli.com:8112/setinput?c=1-1","tipo":"EXEC"},{"cliente":"DESIGN-ARTE","idchat":-1001427177147,"comando":"\"/DASHBOARD\"","url":"https://datastudio.google.com/reporting/64ca30f6-35a3-4cf9-a4da-6fdb28e2c9c0/page/WkmuB","tipo":"SHOW"},{"cliente":"FATO","idchat":-1001113849114,"comando":"\"/PANICO\"","url":"http://mosaico02.atualli.com:8113/setinput?c=1-1","tipo":"EXEC"},{"cliente":"FATO","idchat":-1001444120466,"comando":"\"/PANICO\"","url":"http://mosaico02.atualli.com:8113/setinput?c=1-2","tipo":"EXEC"},{"cliente":"FATO","idchat":-1001444120466,"comando":"\"/DASHBOARD\"","url":"https://datastudio.google.com/reporting/f940aee1-4837-4b91-9de1-448ae85f818b","tipo":"SHOW"},{"cliente":"ARTE-POETICA","idchat":-1001281666338,"comando":"\"/DASHBOARD\"","url":"https://datastudio.google.com/reporting/d61a357b-f292-4693-a4cf-2a504ac6bd3b/page/WkmuB","tipo":"SHOW"},{"cliente":"ARTE-POETICA","idchat":-1001281666338,"comando":"\"/PANICO\"","url":"http://atlsrvmosaico05.atualli.com:8114/setinput?c=1-1","tipo":"EXEC"},{"cliente":"MORUBIXABA","idchat":-1001310970015,"comando":"\"/PANICO\"","url":"http://atlsrvmosaico05.atualli.com:8090/setinput?c=1-1","tipo":"EXEC"},{"cliente":"MORUBIXABA","idchat":-1001310970015,"comando":"\"/DASHBOARD\"","url":"https://datastudio.google.com/u/0/reporting/4111b97b-50fb-4828-b8a9-199cb0f1cb43/page/WkmuB","tipo":"SHOW"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-1001168672852,"comando":"\"/DESBLOQUEIO-12\"","url":"http://painel.atualli.com:8098/resetoutput?c=1-4","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-1001168672852,"comando":"\"/DESBLOQUEIO-14-INTERNO\"","url":"http://painel.atualli.com:8098/resetoutput?c=1-3","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-1001168672852,"comando":"\"/DESBLOQUEIO-14-EXTERNO\"","url":"http://painel.atualli.com:8098/resetoutput?c=1-2","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-1001168672852,"comando":"\"/DESBLOQUEIO-15\"","url":"http://painel.atualli.com:8098/setoutput?c=1-1","tipo":"EXEC"},{"cliente":"RITZ","idchat":-1001150497207,"comando":"\"/PANICO\"","url":"http://atualli.ddns.net:8120/setinput?c=1-1","tipo":"EXEC"},{"cliente":"ATUALLI","idchat":-1001315070213,"comando":"\"/PANICO\"","url":"http://mosaico02.atualli.com:8092/setinput?c=1-1","tipo":"EXEC"},{"cliente":"RITZ","idchat":-1001150497207,"comando":"\"/DASHBOARD\"","url":"https://datastudio.google.com/reporting/3d11b1c5-c29a-4d72-9cff-0d5f1e77c97a/page/WkmuB","tipo":"SHOW"},{"cliente":"CE46-SHOPPING-ELDORADO","idchat":"","comando":"\"/PANICO\"","url":"http://atlsrvmosaico05.atualli.com:8123/setinput?c=1-1","tipo":"EXEC"},{"cliente":"CE46-SHOPPING-ELDORADO","idchat":"","comando":"\"/EXTRACAOLIXO\"","url":"http://atlsrvmosaico05.atualli.com:8123/setinput?c=1-2","tipo":"EXEC"},{"cliente":"CE46-SHOPPING-ELDORADO","idchat":"","comando":"\"/REVISTA\"","url":"http://atlsrvmosaico05.atualli.com:8123/setinput?c=1-3","tipo":"EXEC"},{"cliente":"CAPTACAO-ATIBAIA","idchat":-1001371109161,"comando":"\"/PANICO\"","url":"http://atlsrvmosaico05.atualli.com:8117/setinput?c=1-1","tipo":"EXEC"},{"cliente":"MELO-ALVES-645","idchat":-1001209601704,"comando":"\"/PANICO\"","url":"http://atualli.ddns.net:8122/setinput?c=1-1","tipo":"EXEC"},{"cliente":"MEDICAL-CENTER","idchat":-1001593010693,"comando":"\"/PANICO\"","url":"http://atualli.ddns.net:8200/setinput?c=1-1","tipo":"EXEC"},{"cliente":"ALVES-GUIMARAES","idchat":-1001518530764,"comando":"\"/PANICO\"","url":"http://atlsrvmosaico05.atualli.com:8500/setinput?c=1-1","tipo":"EXEC"},{"cliente":"ETE-NOVA-AMERICA","idchat":-1001537190136,"comando":"\"/PANICO\"","url":"http://mosaico03.atualli.com:8701/setinput?c=1-1","tipo":"EXEC"},{"cliente":"CRD-CARLOS-LOURENCO","idchat":-1001542003703,"comando":"\"/PANICO\"","url":"http://mosaico03.atualli.com:8702/setinput?c=1-1","tipo":"EXEC"},{"cliente":"CRD-DIC-5","idchat":-1001553344529,"comando":"\"/PANICO\"","url":"http://mosaico03.atualli.com:8703/setinput?c=1-1","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-1001512982496,"comando":"\"/DESBLOQUEIO-14-INTERNO\"","url":"http://painel.atualli.com:8098/resetoutput?c=1-3","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-1001512982496,"comando":"\"/DESBLOQUEIO-14-EXTERNO\"","url":"http://painel.atualli.com:8098/resetoutput?c=1-2","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-1001512982496,"comando":"\"/DESBLOQUEIO-15\"","url":"http://painel.atualli.com:8098/setoutput?c=1-1","tipo":"EXEC"},{"cliente":"EEE-CAMPINA-GRANDE-I","idchat":-1001553344529,"comando":"\"/PANICO\"","url":"http://mosaico03.atualli.com:8706/setinput?c=1-1","tipo":"EXEC"},{"cliente":"EEE-CAMPINA-GRANDE-II","idchat":-1001553344529,"comando":"\"/PANICO\"","url":"http://mosaico03.atualli.com:8705/setinput?c=1-1","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-1001784503455,"comando":"\"/DESBLOQUEIO-12\"","url":"http://painel.atualli.com:8098/resetoutput?c=1-4","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-1001784503455,"comando":"\"/DESBLOQUEIO-14-INTERNO\"","url":"http://painel.atualli.com:8098/resetoutput?c=1-3","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-1001784503455,"comando":"\"/DESBLOQUEIO-14-EXTERNO\"","url":"http://painel.atualli.com:8098/resetoutput?c=1-2","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-1001784503455,"comando":"\"/DESBLOQUEIO-15\"","url":"http://painel.atualli.com:8098/setoutput?c=1-1","tipo":"EXEC"},{"cliente":"CE46-SHOPPING-ELDORADO","idchat":-1001465118263,"comando":"\"/CHECKLIST\"","url":"https://script.google.com/macros/s/AKfycbwhKBg30dZyhEiL6gHT4cbFqL2ncF-fGuQ3fwqFlASFF3bZge4C/exec?comando=CheckList&idCliente=CE46&idChat=-1001465118263","tipo":"EXEC"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-1001524687207,"comando":"\"/DESBLOQUEIO-15\"","url":"http://painel.atualli.com:8098/setoutput?c=1-1","tipo":"EXEC"},{"cliente":"CE76-SHOPPING-BANGU","idchat":-1001590512608,"comando":"\"/DASHBOARD\"","url":"https://datastudio.google.com/reporting/85f34085-480b-44b6-8059-2bdaa9bd0f67","tipo":"SHOW"},{"cliente":"CE76-SHOPPING-BANGU","idchat":-1001590512608,"comando":"\"/MOSAICO\"","url":"http://painel.atualli.com/ce76","tipo":"SHOW"},{"cliente":"CE41-SHOPPING-TATUAPE","idchat":1001799879032,"comando":"\"/DASHBOARD\"","url":"https://datastudio.google.com/reporting/75169c3e-5dac-4cb4-a545-0a246936fcd8","tipo":"SHOW"},{"cliente":"CE41-SHOPPING-TATUAPE","idchat":1001799879032,"comando":"\"/MOSAICO\"","url":"http://painel.atualli.com/ce41","tipo":"SHOW"},{"cliente":"CE66-SHOPPING-LEBLON","idchat":1001290237773,"comando":"\"/DASHBOARD\"","url":"https://datastudio.google.com/reporting/12db6c19-79ab-4643-83a2-e6db61d0ad23","tipo":"SHOW"},{"cliente":"CE66-SHOPPING-LEBLON","idchat":1001290237773,"comando":"\"/MOSAICO\"","url":"http://painel.atualli.com/ce66","tipo":"SHOW"},{"cliente":"CE20-SHOP-RIO-SUL","idchat":-1001613275088,"comando":"\"/DASHBOARD\"","url":"","tipo":"SHOW"},{"cliente":"CE20-SHOP-RIO-SUL","idchat":-1001613275088,"comando":"\"/MOSAICO\"","url":"http://painel.atualli.com/ce20","tipo":"SHOW"},{"cliente":"CE20-SHOP-RIO-SUL","idchat":-1001613275088,"comando":"\"/CHECKLIST\"","url":"https://script.google.com/macros/s/AKfycbwhKBg30dZyhEiL6gHT4cbFqL2ncF-fGuQ3fwqFlASFF3bZge4C/exec?comando=CheckList&idCliente=CE20-SHOP-RIO-SUL&idChat=-1001613275088","tipo":"EXEC"},{"cliente":"CE38-BARRA-SHOPPING-SALVADOR","idchat":-1001662352615,"comando":"\"/DASHBOARD\"","url":"","tipo":"SHOW"},{"cliente":"CE38-BARRA-SHOPPING-SALVADOR","idchat":-1001662352615,"comando":"\"/MOSAICO\"","url":"http://painel.atualli.com/ce38","tipo":"SHOW"},{"cliente":"CE48-SHOPPING-ARICANDUVA","idchat":-1001774263916,"comando":"\"/DASHBOARD\"","url":"","tipo":"SHOW"},{"cliente":"CE48-SHOPPING-ARICANDUVA","idchat":-1001774263916,"comando":"\"/MOSAICO\"","url":"http://painel.atualli.com/ce48","tipo":"SHOW"},{"cliente":"CE52-SHOPPING-TAMBORE","idchat":-1001717964390,"comando":"\"/DASHBOARD\"","url":"","tipo":"SHOW"},{"cliente":"CE52-SHOPPING-TAMBORE","idchat":-1001717964390,"comando":"\"/MOSAICO\"","url":"http://painel.atualli.com/ce52","tipo":"SHOW"},{"cliente":"CE56-SHOPPING-MIDWAY-MALL","idchat":-1001799820228,"comando":"\"/DASHBOARD\"","url":"","tipo":"SHOW"},{"cliente":"CE56-SHOPPING-MIDWAY-MALL","idchat":-1001799820228,"comando":"\"/MOSAICO\"","url":"http://painel.atualli.com/ce56","tipo":"SHOW"},{"cliente":"MULTILASER-ESCRITORIO","idchat":-1001742511565,"comando":"\"/DESBLOQUEIO-15\"","url":"http://painel.atualli.com:8098/setoutput?c=1-1","tipo":"EXEC"},{"cliente":"INSERIR NA REPLICA","idchat":"","comando":"","url":"","tipo":""} ] }
static/data/cache/feriados.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ { "feriados" : [{"nome":"ATUALLI","datainicio":"2020-02-25T03:00:00.000Z","datafim":"2020-02-25T03:00:00.000Z"},{"nome":"ATUALLI","datainicio":"2020-02-26T03:00:00.000Z","datafim":"2020-02-26T03:00:00.000Z"},{"nome":"MOEMA","datainicio":"2020-05-20T03:00:00.000Z","datafim":"2020-05-20T03:00:00.000Z"},{"nome":"MOEMA","datainicio":"2020-05-21T03:00:00.000Z","datafim":"2020-05-21T03:00:00.000Z"},{"nome":"MOEMA","datainicio":"2020-05-25T03:00:00.000Z","datafim":"2020-05-25T03:00:00.000Z"},{"nome":"MULTILASER-ESCRITORIO","datainicio":"2020-07-07T03:00:00.000Z","datafim":"2020-07-07T03:00:00.000Z"},{"nome":"MULTILASER-ESCRITORIO","datainicio":"2020-07-11T03:00:00.000Z","datafim":"2020-07-11T03:00:00.000Z"},{"nome":"MULTILASER-ESCRITORIO","datainicio":"2020-09-07T03:00:00.000Z","datafim":"2020-09-07T03:00:00.000Z"},{"nome":"MOEMA","datainicio":"2020-09-07T03:00:00.000Z","datafim":"2020-09-07T03:00:00.000Z"},{"nome":"MULTILASER-EXTREMA","datainicio":"2020-09-07T03:00:00.000Z","datafim":"2020-09-07T03:00:00.000Z"},{"nome":"MOEMA","datainicio":"2020-10-12T03:00:00.000Z","datafim":"2020-10-12T03:00:00.000Z"},{"nome":"MULTILASER-ESCRITORIO","datainicio":"2020-10-12T03:00:00.000Z","datafim":"2020-10-12T03:00:00.000Z"},{"nome":"MULTILASER-EXTREMA","datainicio":"2020-10-12T03:00:00.000Z","datafim":"2020-10-12T03:00:00.000Z"},{"nome":"MOEMA","datainicio":"2020-11-02T03:00:00.000Z","datafim":"2020-11-02T03:00:00.000Z"},{"nome":"MULTILASER-EXTREMA","datainicio":"2020-11-02T03:00:00.000Z","datafim":"2020-11-02T03:00:00.000Z"},{"nome":"MOEMA","datainicio":"2020-12-24T03:00:00.000Z","datafim":"2020-12-24T03:00:00.000Z"},{"nome":"MAGMA","datainicio":"2020-12-24T03:00:00.000Z","datafim":"2020-12-24T03:00:00.000Z"},{"nome":"FATO","datainicio":"2020-12-25T03:00:00.000Z","datafim":"2020-12-25T03:00:00.000Z"},{"nome":"FATO","datainicio":"2020-12-25T03:00:00.000Z","datafim":"2020-12-25T03:00:00.000Z"},{"nome":"MOEMA","datainicio":"2020-12-25T03:00:00.000Z","datafim":"2020-12-25T03:00:00.000Z"},{"nome":"MULTILASER-ESCRITORIO","datainicio":"2020-12-25T03:00:00.000Z","datafim":"2020-12-25T03:00:00.000Z"},{"nome":"MULTILASER-EXTREMA","datainicio":"2020-12-25T03:00:00.000Z","datafim":"2020-12-25T03:00:00.000Z"},{"nome":"MAGMA","datainicio":"2020-12-25T03:00:00.000Z","datafim":"2020-12-25T03:00:00.000Z"},{"nome":"FATO","datainicio":"2020-12-26T03:00:00.000Z","datafim":"2020-12-26T03:00:00.000Z"},{"nome":"MULTILASER-ESCRITORIO","datainicio":"2020-12-26T03:00:00.000Z","datafim":"2020-12-26T03:00:00.000Z"},{"nome":"MULTILASER-EXTREMA","datainicio":"2020-12-26T03:00:00.000Z","datafim":"2020-12-26T03:00:00.000Z"},{"nome":"MAGMA","datainicio":"2020-12-26T03:00:00.000Z","datafim":"2020-12-26T03:00:00.000Z"},{"nome":"MOEMA","datainicio":"2020-12-31T03:00:00.000Z","datafim":"2020-12-31T03:00:00.000Z"},{"nome":"MULTILASER-ESCRITORIO","datainicio":"2020-12-31T03:00:00.000Z","datafim":"2020-12-31T03:00:00.000Z"},{"nome":"MAGMA","datainicio":"2020-12-31T03:00:00.000Z","datafim":"2020-12-31T03:00:00.000Z"},{"nome":"MULTILASER-EXTREMA","datainicio":"2020-12-31T03:00:00.000Z","datafim":"2020-12-31T03:00:00.000Z"},{"nome":"FATO","datainicio":"2021-01-01T03:00:00.000Z","datafim":"2021-01-01T03:00:00.000Z"},{"nome":"MOEMA","datainicio":"2021-01-01T03:00:00.000Z","datafim":"2021-01-01T03:00:00.000Z"},{"nome":"MULTILASER-ESCRITORIO","datainicio":"2021-01-01T03:00:00.000Z","datafim":"2021-01-01T03:00:00.000Z"},{"nome":"MAGMA","datainicio":"2021-01-01T03:00:00.000Z","datafim":"2021-01-01T03:00:00.000Z"},{"nome":"MULTILASER-EXTREMA","datainicio":"2021-01-01T03:00:00.000Z","datafim":"2021-01-01T03:00:00.000Z"},{"nome":"MULTILASER-MANAUS","datainicio":"2021-01-01T03:00:00.000Z","datafim":"2021-01-01T03:00:00.000Z"},{"nome":"FATO","datainicio":"2021-01-02T03:00:00.000Z","datafim":"2021-01-02T03:00:00.000Z"},{"nome":"MAGMA","datainicio":"2021-01-02T03:00:00.000Z","datafim":"2021-01-02T03:00:00.000Z"},{"nome":"FATO","datainicio":"2021-01-03T03:00:00.000Z","datafim":"2021-01-03T03:00:00.000Z"},{"nome":"MULTILASER-ESCRITORIO","datainicio":"2021-01-25T03:00:00.000Z","datafim":"2021-01-25T03:00:00.000Z"},{"nome":"MOEMA","datainicio":"2021-04-02T03:00:00.000Z","datafim":"2021-04-02T03:00:00.000Z"},{"nome":"MAGMA","datainicio":"2021-04-02T03:00:00.000Z","datafim":"2021-04-02T03:00:00.000Z"},{"nome":"MULTILASER-MANAUS","datainicio":"2021-04-02T03:00:00.000Z","datafim":"2021-04-02T03:00:00.000Z"},{"nome":"MULTILASER-ESCRITORIO","datainicio":"2021-04-02T03:00:00.000Z","datafim":"2021-04-02T03:00:00.000Z"},{"nome":"MULTILASER-EXTREMA","datainicio":"2021-04-02T03:00:00.000Z","datafim":"2021-04-02T03:00:00.000Z"},{"nome":"FATO-ThiroTransporte","datainicio":"2021-04-02T03:00:00.000Z","datafim":"2021-04-02T03:00:00.000Z"},{"nome":"MOEMA","datainicio":"2021-04-21T03:00:00.000Z","datafim":"2021-04-21T03:00:00.000Z"},{"nome":"MULTILASER-ESCRITORIO","datainicio":"2021-04-21T03:00:00.000Z","datafim":"2021-04-21T03:00:00.000Z"},{"nome":"MOEMA","datainicio":"2021-05-01T03:00:00.000Z","datafim":"2021-05-01T03:00:00.000Z"},{"nome":"CLIENTE-TESTE","datainicio":"2021-06-03T03:00:00.000Z","datafim":"2021-06-03T03:00:00.000Z"},{"nome":"MAGMA","datainicio":"2021-06-15T03:00:00.000Z","datafim":"2021-06-15T03:00:00.000Z"},{"nome":"MOEMA","datainicio":"2021-06-15T03:00:00.000Z","datafim":"2021-06-15T03:00:00.000Z"},{"nome":"MOEMA","datainicio":"2021-09-07T03:00:00.000Z","datafim":"2021-09-07T03:00:00.000Z"},{"nome":"MULTILASER-ESCRITORIO","datainicio":"2021-09-07T03:00:00.000Z","datafim":"2021-09-07T03:00:00.000Z"},{"nome":"MULTILASER-EXTREMA","datainicio":"2021-09-07T03:00:00.000Z","datafim":"2021-09-07T03:00:00.000Z"},{"nome":"MOEMA","datainicio":"2021-10-12T03:00:00.000Z","datafim":"2021-10-12T03:00:00.000Z"},{"nome":"MOEMA","datainicio":"2021-11-02T03:00:00.000Z","datafim":"2021-11-02T03:00:00.000Z"},{"nome":"MOEMA","datainicio":"2021-11-15T03:00:00.000Z","datafim":"2021-11-15T03:00:00.000Z"},{"nome":"MOEMA","datainicio":"2021-11-20T03:00:00.000Z","datafim":"2021-11-20T03:00:00.000Z"},{"nome":"MOEMA","datainicio":"2021-12-24T03:00:00.000Z","datafim":"2021-12-24T03:00:00.000Z"},{"nome":"MOEMA","datainicio":"2021-12-25T03:00:00.000Z","datafim":"2021-12-25T03:00:00.000Z"},{"nome":"MOEMA","datainicio":"2021-12-31T03:00:00.000Z","datafim":"2021-12-31T03:00:00.000Z"},{"nome":"MOEMA","datainicio":"2022-01-01T03:00:00.000Z","datafim":"2022-01-01T03:00:00.000Z"},{"nome":"MULTILASER-ESCRITORIO","datainicio":"2021-12-24T03:00:00.000Z","datafim":"2021-12-24T03:00:00.000Z"},{"nome":"MULTILASER-ESCRITORIO","datainicio":"2021-12-25T03:00:00.000Z","datafim":"2021-12-25T03:00:00.000Z"},{"nome":"MULTILASER-ESCRITORIO","datainicio":"2021-12-26T03:00:00.000Z","datafim":"2021-12-26T03:00:00.000Z"},{"nome":"MULTILASER-ESCRITORIO","datainicio":"2021-12-27T03:00:00.000Z","datafim":"2021-12-27T03:00:00.000Z"},{"nome":"MULTILASER-ESCRITORIO","datainicio":"2021-12-28T03:00:00.000Z","datafim":"2021-12-28T03:00:00.000Z"},{"nome":"MULTILASER-ESCRITORIO","datainicio":"2021-12-29T03:00:00.000Z","datafim":"2021-12-29T03:00:00.000Z"},{"nome":"MULTILASER-ESCRITORIO","datainicio":"2021-12-30T03:00:00.000Z","datafim":"2021-12-30T03:00:00.000Z"},{"nome":"MULTILASER-ESCRITORIO","datainicio":"2021-12-31T03:00:00.000Z","datafim":"2021-12-31T03:00:00.000Z"},{"nome":"MULTILASER-ESCRITORIO","datainicio":"2022-01-01T03:00:00.000Z","datafim":"2022-01-01T03:00:00.000Z"},{"nome":"MULTILASER-ESCRITORIO","datainicio":"2022-01-02T03:00:00.000Z","datafim":"2022-01-02T03:00:00.000Z"},{"nome":"CLIENTE-TESTE","datainicio":"2022-10-31T03:42:00.000Z","datafim":"2022-10-31T03:42:00.000Z"},{"nome":"CLIENTE-TESTE","datainicio":"2022-11-02T03:48:00.000Z","datafim":"2022-11-02T03:48:00.000Z"} ] }
static/data/cache/mosaicoall.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ { "mosaicos" : [{"cliente":"ATUALLI","nome":"ATUALLI","porta":8092,"cameras":"1,2,3,4,5,6","status":"ON","data":"OFF","dominio":"http://mosaico02.atualli.com","ip":"ATLSRVMOSAICO04","grupo":"ATUALLI"},{"cliente":"AWAKE-HEALTH","nome":"AWAKE-HEALTH-DVR1","porta":8127,"cameras":"14,15,29,31,32,33,35,39","status":"ON","data":"OFF","dominio":"http://mosaico02.atualli.com","ip":"ATLSRVMOSAICO04","grupo":"CLINICA-AWAKE-HEALTH"},{"cliente":"BEACON-BERLIOZ","nome":"BEACON-BERLIOZ","porta":8702,"cameras":"2,3,4,7,17,23","status":"ON","data":"OFF","dominio":"http://mosaico03.atualli.com","ip":"ATLSRVMOSAICO03","grupo":"BEACON"},{"cliente":"BEACON-LEOPOLDINA","nome":"BEACON-LEOPOLDINA-DVR","porta":8101,"cameras":"2,5,17,25,33,34,36,38,39,40,49,51","status":"ON","data":"OFF","dominio":"http://atlsrvmosaico05.atualli.com","ip":"ATLSRVMOSAICO05","grupo":"BEACON"},{"cliente":"BEACON-PINHEIROS","nome":"BEACON-PINHEIROS-DVR","porta":8105,"cameras":"2,3,4,6","status":"ON","data":"OFF","dominio":"http://atlsrvmosaico05.atualli.com","ip":"ATLSRVMOSAICO05","grupo":"BEACON"},{"cliente":"CE20-SHOP-RIO-SUL","nome":"CE20-SHOP-RIO-SUL","porta":8510,"cameras":"1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16","status":"ON","data":"OFF","dominio":"http://atlsrvmosaico05.atualli.com","ip":"ATLSRVMOSAICO05","grupo":"CENTAURO"},{"cliente":"CE38-BARRA-SHOPPING-SALVADOR","nome":"CE38-BARRA-SHOPPING-SALVADOR","porta":8508,"cameras":"1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16","status":"ON","data":"OFF","dominio":"http://atlsrvmosaico05.atualli.com","ip":"ATLSRVMOSAICO05","grupo":"CENTAURO"},{"cliente":"CE41-SHOPPING-TATUAPE","nome":"CE41-SHOPPING-TATUAPE","porta":8505,"cameras":"1,2,3,4,5,6,7,8,9,10,11,12","status":"ON","data":"OFF","dominio":"http://atlsrvmosaico05.atualli.com","ip":"ATLSRVMOSAICO05","grupo":"CENTAURO"},{"cliente":"CE46-SHOPPING-ELDORADO","nome":"CE46-SHOPPING-ELDORADO","porta":8123,"cameras":"1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16","status":"ON","data":"OFF","dominio":"http://atlsrvmosaico05.atualli.com","ip":"ATLSRVMOSAICO05","grupo":"CENTAURO"},{"cliente":"CE48-SHOPPING-ARICANDUVA","nome":"CE48-SHOPPING-ARICANDUVA","porta":8509,"cameras":"1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16","status":"ON","data":"OFF","dominio":"http://atlsrvmosaico05.atualli.com","ip":"ATLSRVMOSAICO05","grupo":"CENTAURO"},{"cliente":"CE52-SHOPPING-TAMBORE","nome":"CE52-SHOPPING-TAMBORE","porta":8506,"cameras":"1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16","status":"ON","data":"OFF","dominio":"http://atlsrvmosaico05.atualli.com","ip":"ATLSRVMOSAICO05","grupo":"CENTAURO"},{"cliente":"CE53-SHOPPING-RECIFE","nome":"CE53-SHOPPING-RECIFE","porta":8513,"cameras":"1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16","status":"ON","data":"OFF","dominio":"http://atlsrvmosaico05.atualli.com","ip":"ATLSRVMOSAICO05","grupo":"CENTAURO"},{"cliente":"CE56-SHOPPING-MIDWAY-MALL","nome":"CE56-SHOPPING-MIDWAY-MALL","porta":8507,"cameras":"1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16","status":"ON","data":"OFF","dominio":"http://atlsrvmosaico05.atualli.com","ip":"ATLSRVMOSAICO05","grupo":"CENTAURO"},{"cliente":"CE66-SHOPPING-LEBLON","nome":"CE66-SHOPPING-LEBLON","porta":8502,"cameras":"1,2,3,4,5,6,7,8,9,10,11,12","status":"ON","data":"OFF","dominio":"http://atlsrvmosaico05.atualli.com","ip":"ATLSRVMOSAICO05","grupo":"CENTAURO"},{"cliente":"CE72-SHOP-CASA-FORTE-PLAZA","nome":"CE72-SHOP-CASA-FORTE-PLAZA","porta":8514,"cameras":"1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16","status":"ON","data":"OFF","dominio":"http://atlsrvmosaico05.atualli.com","ip":"ATLSRVMOSAICO05","grupo":"CENTAURO"},{"cliente":"CE76-SHOPPING-BANGU","nome":"CE76-SHOPPING-BANGU","porta":8114,"cameras":"1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16","status":"ON","data":"OFF","dominio":"http://atlsrvmosaico05.atualli.com","ip":"ATLSRVMOSAICO05","grupo":"CENTAURO"},{"cliente":"CE108-SHOP-GUARARAPES","nome":"CE108-SHOP-GUARARAPES","porta":8512,"cameras":"1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16","status":"ON","data":"OFF","dominio":"http://atlsrvmosaico05.atualli.com","ip":"ATLSRVMOSAICO05","grupo":"CENTAURO"},{"cliente":"CE198-SHOP-RIO-MAR","nome":"CE198-SHOP-RIO-MAR","porta":8511,"cameras":"1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16","status":"ON","data":"OFF","dominio":"http://atlsrvmosaico05.atualli.com","ip":"ATLSRVMOSAICO05","grupo":"CENTAURO"},{"cliente":"CLIENTE-TESTE","nome":"CLIENTE-TESTE","porta":8188,"cameras":"1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17","status":"OFF","data":"ON","dominio":"http://atualli.ddns.net","ip":"ATUALLISRVWIN12","grupo":"CLIENTE-TESTE"},{"cliente":"COLEGIO-SANTO-AMERICO","nome":"COLEGIO-SANTO-AMERICO","porta":8128,"cameras":"1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16","status":"OFF","data":"OFF","dominio":"http://mosaico02.atualli.com","ip":"ATLSRVMOSAICO04","grupo":"CSA"},{"cliente":"DESIGN-ARTE","nome":"DESIGN-ARTE","porta":8112,"cameras":"5,6,12,27","status":"OFF","data":"OFF","dominio":"http://mosaico02.atualli.com","ip":"ATLSRVMOSAICO04","grupo":"DESIGN-ARTE"},{"cliente":"FATO","nome":"FATO","porta":8113,"cameras":"1,2,3,4,5,6,12,13","status":"ON","data":"OFF","dominio":"http://painel.atualli.com","ip":"ATLSRVMOSAICO01","grupo":"FATO"},{"cliente":"GEOMETRIA","nome":"GEOMETRIA","porta":8125,"cameras":"25,27,34,43,61,65,66","status":"ON","data":"OFF","dominio":"http://mosaico02.atualli.com","ip":"ATLSRVMOSAICO04","grupo":"CONDOMINIO-EDIFICIO-GEOMETRIA"},{"cliente":"GIARDINO-DI-MILANO","nome":"GIARDINO-DI-MILANO","porta":8108,"cameras":"6,17,18,20,32","status":"ON","data":"OFF","dominio":"http://mosaico02.atualli.com","ip":"ATLSRVMOSAICO04","grupo":"GIARDINO-DI-MILANO"},{"cliente":"GOIVOS","nome":"GOIVOS","porta":8110,"cameras":"2,3,14,15,16","status":"OFF","data":"OFF","dominio":"http://mosaico02.atualli.com","ip":"ATLSRVMOSAICO04","grupo":"GOIVOS"},{"cliente":"MAGMA","nome":"MAGMA","porta":8091,"cameras":"1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48","status":"ON","data":"OFF","dominio":"http://mosaico02.atualli.com","ip":"ATLSRVMOSAICO04","grupo":"MAGMA"},{"cliente":"MEDICAL-CENTER","nome":"MEDICAL-CENTER","porta":8124,"cameras":"6,10,12,18,22,23,24,25,27,28,29,31","status":"ON","data":"OFF","dominio":"http://mosaico02.atualli.com","ip":"ATLSRVMOSAICO04","grupo":"CAMPO-BELO-MEDICAL-CENTER"},{"cliente":"MOEMA","nome":"MOEMA","porta":8089,"cameras":"1,2,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32","status":"ON","data":"OFF","dominio":"http://mosaico02.atualli.com","ip":"ATLSRVMOSAICO04","grupo":"MOEMA"},{"cliente":"MORUBIXABA","nome":"MORUBIXABA","porta":8090,"cameras":"1,3,26","status":"ON","data":"OFF","dominio":"http://atlsrvmosaico05.atualli.com","ip":"ATLSRVMOSAICO05","grupo":"MORUBIXABA"},{"cliente":"MULTILASER-ESCRITORIO","nome":"MULTILASER-ESCRITORIO-DVR-1","porta":8098,"cameras":"1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,51","status":"ON","data":"OFF","dominio":"http://painel.atualli.com","ip":"ATLSRVMOSAICO01","grupo":"MULTILASER"},{"cliente":"MULTILASER-ESCRITORIO","nome":"MULTILASER-ESCRITORIO-14ANDAR","porta":8099,"cameras":"33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54","status":"OFF","data":"OFF","dominio":"http://painel.atualli.com","ip":"ATLSRVMOSAICO01","grupo":"MULTILASER"},{"cliente":"MULTILASER-ESCRITORIO","nome":"MULTILASER-ESCRITORIO-15ANDAR","porta":8100,"cameras":"65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92","status":"ON","data":"OFF","dominio":"http://painel.atualli.com","ip":"ATLSRVMOSAICO01","grupo":"MULTILASER"},{"cliente":"MULTILASER-EXTREMA","nome":"MULTILASER-EXTREMA-LATICINIOS","porta":8095,"cameras":"41,42,43,44,45,46","status":"ON","data":"OFF","dominio":"http://painel.atualli.com","ip":"ATLSRVMOSAICO01","grupo":"MULTILASER"},{"cliente":"MULTILASER-EXTREMA","nome":"MULTILASER-EXTREMA-DVR-PRINCIPAL","porta":8094,"cameras":"1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,67","status":"ON","data":"OFF","dominio":"http://painel.atualli.com","ip":"ATLSRVMOSAICO01","grupo":"MULTILASER"},{"cliente":"MULTILASER-EXTREMA-TABERNA","nome":"MULTILASER-EXTREMA-TABERNA","porta":8096,"cameras":"1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32","status":"ON","data":"OFF","dominio":"http://painel.atualli.com","ip":"ATLSRVMOSAICO01","grupo":"MULTILASER-TABERNA"},{"cliente":"MULTILASER-MANAUS","nome":"MULTILASER-MANAUS-DVR-1","porta":8097,"cameras":"1,2,3,5,7,9,10,11,12,15,18,21,24,27,29,30","status":"ON","data":"OFF","dominio":"http://painel.atualli.com","ip":"ATLSRVMOSAICO01","grupo":"MULTILASER"},{"cliente":"MULTILASER-MANAUS-G3-G4","nome":"MULTILASER-MANAUS-G3-G4","porta":8122,"cameras":"1,2,3,4,5,6,7,8,9,10,11,12,39,40","status":"ON","data":"OFF","dominio":"http://painel.atualli.com","ip":"ATLSRVMOSAICO01","grupo":"MULTILASER"},{"cliente":"MURANO","nome":"MURANO","porta":8121,"cameras":"10,31,35,36","status":"ON","data":"OFF","dominio":"http://mosaico02.atualli.com","ip":"ATLSRVMOSAICO04","grupo":"EDIFICIO-MURANO"},{"cliente":"PEDRA","nome":"PEDRA","porta":8000,"cameras":"1,2","status":"OFF","data":"OFF","dominio":"http://mosaico02.atualli.com","ip":"ATLSRVMOSAICO04","grupo":"PEDRA"},{"cliente":"RITZ","nome":"RITZ-MOSAICO-01","porta":8120,"cameras":"25,28,65,68,69","status":"ON","data":"OFF","dominio":"http://atlsrvmosaico05.atualli.com","ip":"ATLSRVMOSAICO05","grupo":"RITZ"},{"cliente":"SOLAR-PAULISTA","nome":"SOLAR-PAULISTA","porta":8111,"cameras":"13,3,4,7","status":"ON","data":"OFF","dominio":"http://mosaico02.atualli.com","ip":"ATLSRVMOSAICO04","grupo":"SOLAR-PAULISTA"},{"cliente":"ALVES-GUIMARAES","nome":"MOS-ALVES-GUIMARAES","porta":8500,"cameras":"1,2,3,4,5,6,7,8","status":"ON","data":"OFF","dominio":"http://atlsrvmosaico05.atualli.com","ip":"ATLSRVMOSAICO05","grupo":"MOS-INCORPORADORA"},{"cliente":"ATIVA-LOGISTICA-SP","nome":"ATIVA-LOGISTICA-SP","porta":8501,"cameras":"1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16","status":"OFF","data":"OFF","dominio":"http://atlsrvmosaico05.atualli.com","ip":"ATLSRVMOSAICO05","grupo":"ATIVA-LOGISTICA"},{"cliente":"CAPTACAO-ATIBAIA","nome":"SANASA-CAP-ATIBAIA","porta":8707,"cameras":"1,2,3,4","status":"ON","data":"OFF","dominio":"http://mosaico03.atualli.com","ip":"ATLSRVMOSAICO03","grupo":"SANASA"},{"cliente":"EPAR-BOA-VISTA","nome":"EPAR-BOA-VISTA","porta":8700,"cameras":"2,3,5,6,7","status":"ON","data":"OFF","dominio":"http://mosaico03.atualli.com","ip":"ATLSRVMOSAICO03","grupo":"SANASA"},{"cliente":"ETE-NOVA-AMERICA","nome":"ETE-NOVA-AMERICA","porta":8701,"cameras":"1,3,6,7","status":"ON","data":"OFF","dominio":"http://mosaico03.atualli.com","ip":"ATLSRVMOSAICO03","grupo":"SANASA"},{"cliente":"CRD-DIC-5","nome":"CRD-DIC-5","porta":8703,"cameras":"1,2,3,4","status":"ON","data":"OFF","dominio":"http://mosaico03.atualli.com","ip":"ATLSRVMOSAICO03","grupo":"SANASA"},{"cliente":"ETA-CAPIVARI","nome":"ETA-CAPIVARI","porta":8704,"cameras":"1,2,3,8","status":"ON","data":"OFF","dominio":"http://mosaico03.atualli.com","ip":"ATLSRVMOSAICO03","grupo":"SANASA"},{"cliente":"EEE-CAMPINA-GRANDE-II","nome":"EEE-CAMPINA-GRANDE-II","porta":8705,"cameras":"1,2,3,4","status":"ON","data":"OFF","dominio":"http://mosaico03.atualli.com","ip":"ATLSRVMOSAICO03","grupo":"SANASA"},{"cliente":"EEE-CAMPINA-GRANDE-I","nome":"EEE-CAMPINA-GRANDE-I","porta":8706,"cameras":"1,2,3","status":"ON","data":"OFF","dominio":"http://mosaico03.atualli.com","ip":"ATLSRVMOSAICO03","grupo":"SANASA"},{"cliente":"ETE-CAPIVARI-2-EPAR","nome":"ETE-CAPIVARI-2-EPAR","porta":8117,"cameras":"3,4,6,8","status":"ON","data":"OFF","dominio":"http://atlsrvmosaico05.atualli.com","ip":"ATLSRVMOSAICO05","grupo":"SANASA"},{"cliente":"CRD-SAO-BERNARDO","nome":"CRD-SAO-BERNARDO","porta":8708,"cameras":"1,2,3,4","status":"ON","data":"OFF","dominio":"http://mosaico03.atualli.com","ip":"ATLSRVMOSAICO03","grupo":"SANASA"},{"cliente":"CCA-SANASA","nome":"CCA-SANASA","porta":8709,"cameras":"7,9,14,15","status":"ON","data":"OFF","dominio":"http://mosaico03.atualli.com","ip":"ATLSRVMOSAICO03","grupo":"SANASA"},{"cliente":"EEE-SAO-JOAO-NOVA-AMERICA7","nome":"EEE-SAO-JOAO-NOVA-AMERICA7","porta":8710,"cameras":"1,2,3,5,6","status":"ON","data":"OFF","dominio":"http://mosaico03.atualli.com","ip":"ATLSRVMOSAICO03","grupo":"SANASA"},{"cliente":"ALMOXARIFADO-CIDADE-JARDIM","nome":"ALMOXARIFADO-CIDADE-JARDIM","porta":8711,"cameras":"5,6,17,18","status":"ON","data":"OFF","dominio":"http://mosaico03.atualli.com","ip":"ATLSRVMOSAICO03","grupo":"SANASA"},{"cliente":"ADIDAS-ORIGINALS-SCN","nome":"ADIDAS-ORIGINALS-SCN","porta":8090,"cameras":"1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16","status":"OFF","data":"OFF","dominio":"http://atualli.ddns.net","ip":"ATLSRVMOSAICO03","grupo":"GRUPO-NOMURA"},{"cliente":"PDV-VILA-MADALENA","nome":"PDV-VILA-MADALENA","porta":8093,"cameras":"4,6,7,8,11,20,22,24,27,28","status":"ON","data":"OFF","dominio":"http://painel.atualli.com","ip":"ATLSRVMOSAICO01","grupo":"CAMARGO-CORREIA"},{"cliente":"ZCOPS","nome":"ZCOPS","porta":8126,"cameras":"1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16","status":"ON","data":"OFF","dominio":"http://mosaico02.atualli.com","ip":"ATLSRVMOSAICO04","grupo":"ZCOPS"},{"cliente":"COLEGIO-SANTO-AMERICO","nome":"COLEGIO-SANTO-AMERICO2","porta":8112,"cameras":"1,2,3,4,5,6,7,8,12,13,14,18,19,20,21,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,49,50,52,53,54,55,56,57,58,59,60,61,62,63,64,98,99","status":"ON","data":"OFF","dominio":"http://atualli.ddns.net","ip":"ATUALLISRVWIN12","grupo":"CSA"},{"cliente":"COLEGIO-SANTO-AMERICO","nome":"CSA-M03","porta":1601,"cameras":"1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16","status":"OFF","data":"OFF","dominio":"http://atlsrvmosaico02.atualli.com","ip":"ATLSRVMOSAICO02","grupo":"CSA"},{"cliente":"COLEGIO-SANTO-AMERICO","nome":"CSA-M04","porta":8602,"cameras":"17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48","status":"OFF","data":"OFF","dominio":"http://atlsrvmosaico02.atualli.com","ip":"ATLSRVMOSAICO02","grupo":"CSA"},{"cliente":"COLEGIO-SANTO-AMERICO","nome":"CSA-M06","porta":8603,"cameras":"49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64","status":"OFF","data":"OFF","dominio":"http://atlsrvmosaico02.atualli.com","ip":"ATLSRVMOSAICO02","grupo":"CSA"},{"cliente":"COLEGIO-SANTO-AMERICO","nome":"CSA-M07","porta":8604,"cameras":"65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96","status":"OFF","data":"OFF","dominio":"http://atlsrvmosaico02.atualli.com","ip":"ATLSRVMOSAICO02","grupo":"CSA"},{"cliente":"COLEGIO-SANTO-AMERICO","nome":"CSA-M08","porta":8605,"cameras":"97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128","status":"OFF","data":"OFF","dominio":"http://atlsrvmosaico02.atualli.com","ip":"ATLSRVMOSAICO02","grupo":"CSA"},{"cliente":"COLEGIO-SANTO-AMERICO","nome":"CSA-M13","porta":8606,"cameras":"130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160","status":"OFF","data":"OFF","dominio":"http://atlsrvmosaico02.atualli.com","ip":"ATLSRVMOSAICO02","grupo":"CSA"},{"cliente":"COLEGIO-SANTO-AMERICO","nome":"CSA-M15","porta":8607,"cameras":"161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192","status":"OFF","data":"OFF","dominio":"http://atlsrvmosaico02.atualli.com","ip":"ATLSRVMOSAICO02","grupo":"CSA"},{"cliente":"COLEGIO-SANTO-AMERICO","nome":"CSA-CAMERAS-IP","porta":8608,"cameras":"1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16","status":"OFF","data":"OFF","dominio":"http://atlsrvmosaico02.atualli.com","ip":"ATLSRVMOSAICO02","grupo":"CSA"},{"cliente":"MULTILASER-EXTREMA-FIRSTLANE","nome":"MULTILASER-EXTREMA-FIRSTLANE","porta":8601,"cameras":"1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24","status":"ON","data":"OFF","dominio":"http://atlsrvmosaico02.atualli.com","ip":"ATLSRVMOSAICO02","grupo":"MULTILASER"} ] }
static/data/cache/operacao.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ {"operacao":[{"id":"1","nome":"Mauricio Guerta ( [email protected] )","status":"OFF","datalogin":"2021-09-14T00:30:07.979Z","datalogout":"2021-09-15T20:58:21.285Z","temposessao":"160093306","ramal":"2002","refresh":"NO"},{"id":"2","nome":"Mauricio Guerta ( [email protected] )","status":"OFF","datalogin":"2020-07-28T05:26:17.101Z","datalogout":"2020-07-28T05:26:24.128Z","temposessao":"7027","ramal":"2002","refresh":"NO"},{"id":"3","nome":"Fabiana Alves ( [email protected] )","status":"OFF","datalogin":"2021-02-23T20:46:41.928Z","datalogout":"2021-02-24T09:04:55.812Z","temposessao":"44293884","ramal":"2002","refresh":"NO"},{"id":"4","nome":"Eduardo Borges ( [email protected] )","status":"OFF","datalogin":"","datalogout":"","temposessao":"","ramal":"2002","refresh":"NO"},{"id":"5","nome":"Paloma Pereira ( [email protected] )","status":"OFF","datalogin":"2021-10-18T10:54:48.079Z","datalogout":"2021-10-17T09:24:32.378Z","temposessao":"51380","ramal":"2002","refresh":"NO"},{"id":"6","nome":"Cesar Souza ( [email protected] )","status":"OFF","datalogin":"2021-01-05T00:50:46.819Z","datalogout":"2021-01-05T00:50:57.069Z","temposessao":"10250","ramal":"2002","refresh":"NO"},{"id":"7","nome":"Estefany Boreli ( [email protected] )","status":"OFF","datalogin":"2021-10-21T09:04:30.631Z","datalogout":"2021-10-21T22:23:33.170Z","temposessao":"47942539","ramal":"2002","refresh":"NO"},{"id":"8","nome":"Ygor Luciano ( [email protected] )","status":"OFF","datalogin":"2021-10-24T21:23:59.356Z","datalogout":"2021-10-24T21:07:48.374Z","temposessao":"49554","ramal":"2002","refresh":"NO"},{"id":"9","nome":"Angelo Mendes ( [email protected] )","status":"OFF","datalogin":"2021-09-30T10:49:22.456Z","datalogout":"2021-09-30T10:58:21.985Z","temposessao":"539529","ramal":"2002","refresh":"NO"},{"id":"10","nome":"Paloma Pereira ( [email protected] )","status":"OFF","datalogin":"2021-02-06T21:03:45.511Z","datalogout":"2021-02-06T21:04:29.941Z","temposessao":"44430","ramal":"2002","refresh":"NO"},{"id":"11","nome":"Angelo Mendes ( [email protected] )","status":"OFF","datalogin":"2021-04-05T20:19:22.630Z","datalogout":"2021-04-05T20:25:28.819Z","temposessao":"366189","ramal":"2002","refresh":"NO"},{"id":"12","nome":"operacao atualli ( [email protected] )","status":"OFF","datalogin":"2020-09-30T12:27:18.192Z","datalogout":"2020-09-30T12:28:06.245Z","temposessao":"48053","ramal":"2002","refresh":"NO"},{"id":"13","nome":"Eduardo Lima ( [email protected] )","status":"OFF","datalogin":"2020-09-23T19:52:24.454Z","datalogout":"2020-09-23T19:52:29.447Z","temposessao":"4993","ramal":"2002","refresh":"NO"},{"id":"14","nome":"Aline Silva ( [email protected] )","status":"OFF","datalogin":"2021-10-20T20:59:55.501Z","datalogout":"2021-10-20T21:00:06.229Z","temposessao":"10728","ramal":"2002","refresh":"NO"},{"id":"15","nome":"Giovanna Araujo ( [email protected] )","status":"OFF","datalogin":"2021-10-24T04:02:19.861Z","datalogout":"2021-10-24T09:26:29.218Z","temposessao":"19449357","ramal":"2002","refresh":"NO"},{"id":"16","nome":"LOGIN","status":"OFF","datalogin":"2021-07-10T08:43:57.619Z","datalogout":"2021-07-10T08:43:57.619Z","temposessao":"","ramal":"2002","refresh":"NO"},{"id":"17","nome":"LOGOFF","status":"OFF","datalogin":"2021-07-21T19:57:38.830Z","datalogout":"2021-07-21T19:57:38.830Z","temposessao":"","ramal":"2002","refresh":"NO"},{"id":"18","nome":"PAUSAR","status":"OFF","datalogin":"2021-07-21T19:57:40.651Z","datalogout":"2021-07-21T19:57:40.651Z","temposessao":"","ramal":"2002","refresh":"NO"},{"id":"19","nome":"Atualli Tecnologia ( [email protected] )","status":"OFF","datalogin":"2021-09-06T22:13:38.041Z","datalogout":"2021-09-06T22:14:46.955Z","temposessao":"68914","ramal":"2002","refresh":"NO"},{"id":"20","nome":"Edson Almeida ( [email protected] )","status":"OFF","datalogin":"2021-09-29T21:54:59.361Z","datalogout":"2021-09-29T21:55:10.622Z","temposessao":"11261","ramal":"2002","refresh":"NO"},{"id":"21","nome":"Opera��o Atualli ( [email protected] )","status":"OFF","datalogin":"2021-09-25T01:56:46.922Z","datalogout":"2021-09-25T02:01:30.918Z","temposessao":"283996","ramal":"2002","refresh":"NO"},{"id":"22","nome":"Paloma Pereira ( [email protected] )","status":"OFF","datalogin":"2021-10-24T23:03:30.842Z","datalogout":"2021-10-24T23:03:22.294Z","temposessao":"7175539","ramal":"2002","refresh":"NO"},{"id":"23","nome":"Icaro Espalaor ( [email protected] )","status":"OFF","datalogin":"2021-10-24T09:28:47.620Z","datalogout":"2021-10-24T09:34:11.972Z","temposessao":"324352","ramal":"2002","refresh":"NO"},{"id":"24","nome":"Ana Caroline ( [email protected] )","status":"OFF","datalogin":"2021-10-24T09:28:47.620Z","datalogout":"2021-10-24T09:34:11.972Z","temposessao":"324352","ramal":"2002","refresh":"NO"},{"id":"25","nome":"Ana Claudia ( [email protected] )","status":"OFF","datalogin":"2021-10-24T09:28:47.620Z","datalogout":"2021-10-24T09:34:11.972Z","temposessao":"324352","ramal":"2002","refresh":"NO"},{"id":"26","nome":"Angela Marcela ( [email protected] )","status":"OFF","datalogin":"","datalogout":"","temposessao":"","ramal":"","refresh":"NO"}]}
static/data/cache/programacao.txt ADDED
The diff for this file is too large to render. See raw diff
 
static/data/cache/roteiro.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ { "roteiros" : [{"id":1,"nome":"Movimentacao detectada","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, informou o acesso do Sr(a)___ devido___. "},{"id":2,"nome":"Movimentacao detectada Fora do Horario","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, informou o acesso do Sr(a)___ devido___. "},{"id":3,"nome":"Botao de Panico","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, informou o acionamento do bot�o de p�nico devido____. Realizado o acompanhamento das imagens e aparentemente est� sem altera��es no local."},{"id":4,"nome":"Movimentacao na entrada de veiculos","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, informou o acesso do Sr(a)___ devido___. "},{"id":5,"nome":"Movimentacao na entrada de veiculos Fora do Horario","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, informou o acesso do Sr(a)___ devido___. "},{"id":6,"nome":"Acesso de Pessoas","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, informou o acesso do Sr(a)___ devido___. "},{"id":7,"nome":"Acesso de Pessoas Fora do Horario","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, informou o acesso do Sr(a)___ devido___. "},{"id":8,"nome":"Acesso de veiculos","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, informou o acesso do Sr(a)___ devido___. "},{"id":9,"nome":"Acesso de veiculos Fora do Horario","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, informou o acesso do Sr(a)___ devido___. "},{"id":10,"nome":"Acesso de veiculos e pessoas","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, informou o acesso do Sr(a)___ devido___. "},{"id":11,"nome":"Acesso de veiculos e pessoas Fora do Horario","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, informou o acesso do Sr(a)___ devido___. "},{"id":12,"nome":"Inicio de Jornada","procedimento":"Realizar contato telef�nico, questionar se j� houve o in�cio de expediente, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, informou o in�cio do expediente. "},{"id":13,"nome":"Inicio de Jornada fora do Horario estabelecido","procedimento":"Realizar contato telef�nico, questionar se j� houve o in�cio de expediente, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, informou o in�cio do expediente. "},{"id":14,"nome":"Termino de Jornada","procedimento":"Realizar contato telef�nico, questionar se j� houve o t�rmino de expediente, analisar as imagens e preencher ocorr�ncia ","teplate":""},{"id":15,"nome":"Termino de Jornada Fora do Horario estabelecido","procedimento":"Realizar contato telef�nico, questionar se j� houve o t�rmino de expediente, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, informou o t�rmino do expediente. "},{"id":16,"nome":"Inibicao do comando de desbloqueio Fora do Horario estabelecido","procedimento":"Realizar contato telef�nico, confirmar a inibi��o, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, informou a inibi��o devido_____. "},{"id":17,"nome":"Desinibicao do comando de desbloqueio Fora do Horario estabelecido","procedimento":"Realizar contato telef�nico, confirmar a desinibi��o, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, informou a desinibi��o devido_____. "},{"id":18,"nome":"Disparos de emergencia","procedimento":"Realizar contato telef�nico, questionar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, informou os disparos de emerg�ncia devido_____. "},{"id":19,"nome":"Ausencia do posto","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, informou a aus�ncia do posto devido_____. "},{"id":20,"nome":"Retorno ao posto","procedimento":"Realizar contato telef�nico, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, informou o retorno do posto devido_____. "},{"id":21,"nome":"Violacao de Perimetro","procedimento":"Realizar contato telef�nico, questionar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, informou a viola��o do per�metro devido_____. "},{"id":22,"nome":"Bloqueio automatico de porta","procedimento":"Bloqueio autom�tico do sistema","teplate":""},{"id":23,"nome":"Desbloqueio automatico de porta","procedimento":"Desbloqueio autom�tico do sistema","teplate":""},{"id":24,"nome":"Solicitacao de desbloqueio de porta","procedimento":"Realizar contato telef�nico, questionar o motivo da libera��o e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, solicitou o desbloqueio da porta devido_____. "},{"id":25,"nome":"Ausencia do posto Ed Pedra Faria Lima","procedimento":"Realizar contato telef�nico, questionar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, informou a aus�ncia do posto devido_____. "},{"id":26,"nome":"Abertura de loja","procedimento":"Realizar contato telef�nico, questionar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, informou a abertura da loja_____. "},{"id":27,"nome":"Fechamento de loja","procedimento":"Realizar contato telef�nico, questionar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, informou o fechamento da loja _____. "},{"id":28,"nome":"Ausencia do posto","procedimento":"Realizar contato telef�nico, questionar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, informou a aus�ncia do posto devido_____. "},{"id":29,"nome":"Retorno ao posto","procedimento":"Realizar contato telef�nico, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, informou o retorno do posto devido_____. "},{"id":30,"nome":"Ausencia de posto Multilaser Extrema Bunker","procedimento":"Realizar contato telef�nico, questionar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, informou a aus�ncia do posto devido_____. "},{"id":31,"nome":"Bloqueio automatico da Cancela e Garra de Tigre","procedimento":"Bloqueio automatico da Cancela e Garra de Tigre atrav�s do sistema","teplate":""},{"id":32,"nome":"Desbloqueio automatico da Cancela e Garra de Tigre","procedimento":"Desbloqueio automatico da Cancela e Garra de Tigre atrav�s do sistema","teplate":""},{"id":33,"nome":"Desbloqueio manual da Cancela e Garra de Tigre (bloqueio automatico 15 seg)","procedimento":"Realizar contato telef�nico, questionar o motivo da libera��o da cancela e garra, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, solicitou o desbloqueio da cancela e garra devido_____. "},{"id":34,"nome":"Solicitacao de desbloqueio da Cancela e Garra de Tigre","procedimento":"Realizar contato telef�nico, questionar o motivo da libera��o, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, solicitou o desbloqueio da cancela e garra devido_____. "},{"id":35,"nome":"Bloqueio automatico do Boulard","procedimento":"Bloqueio autom�tico do Bollard atrav�s do sistema","teplate":""},{"id":36,"nome":"Desbloqueio automatico do Boulard","procedimento":"Desbloqueio autom�tico do Bollard atrav�s do sistema","teplate":""},{"id":37,"nome":"Desbloqueio manual do Boulard (bloqueio automatico 15 seg)","procedimento":"Realizar contato telef�nico, confirmar o desbloqueio, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, solicitou o desbloqueio do bollard devido_____. "},{"id":38,"nome":"Solicitacao de desbloqueio do Boulard","procedimento":"Realizar contato telef�nico, questionar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, solicitou o desbloqueio do bollard devido_____. "},{"id":39,"nome":"Bloqueio automatico da Porta Blindada","procedimento":"Bloqueio automatico da Porta Blindada atrav�s do sistema","teplate":""},{"id":40,"nome":"Desbloqueio automatico da Porta Blindada","procedimento":"Desbloqueio automatico da Porta Blindada atrav�s do sistema","teplate":""},{"id":41,"nome":"Desbloqueio manual da Porta Blindada (bloqueio automatico 15 seg)","procedimento":"Realizar contato telef�nico, questionar o motivo do acesso, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, solicitou o desbloqueio da porta blindada devido_____. "},{"id":42,"nome":"Solicitacao de desbloqueio da Porta Blindada","procedimento":"Realizar contato telef�nico, questionar o motivo do acesso, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, solicitou o desbloqueio da porta blindada devido_____. "},{"id":43,"nome":"Botao de Panico Bunker","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, informou o acionamento do bot�o de p�nico devido____. Realizado o acompanhamento das imagens e aparentemente est� sem altera��es no local."},{"id":44,"nome":"Botao de Panico Portaria","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, informou o acionamento do bot�o de p�nico devido____. Realizado o acompanhamento das imagens e aparentemente est� sem altera��es no local."},{"id":45,"nome":"Botao de Panico Revista","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, informou o acionamento do bot�o de p�nico devido____. Realizado o acompanhamento das imagens e aparentemente est� sem altera��es no local."},{"id":46,"nome":"Botao de Panico Ronda 1","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, informou o acionamento do bot�o de p�nico devido____. Realizado o acompanhamento das imagens e aparentemente est� sem altera��es no local."},{"id":47,"nome":"Botao de Panico Ronda 2","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, informou o acionamento do bot�o de p�nico devido____. Realizado o acompanhamento das imagens e aparentemente est� sem altera��es no local."},{"id":48,"nome":"Bloqueio automatico da Porta 15 andar","procedimento":"Bloqueio autom�tico da Porta 15 andar atrav�s do sistema","teplate":""},{"id":49,"nome":"Desbloqueio automatico da Porta 15 andar","procedimento":"Desbloqueio autom�tico da Porta 15 andar atrav�s do sistema","teplate":""},{"id":50,"nome":"Desbloqueio manual da Porta 15 andar (bloqueio automatico 15 seg)","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, solicitou o desbloqueio da porta 15 andar devido_____. "},{"id":51,"nome":"Solicitacao de desbloqueio da Porta 15 andar","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, solicitou o desbloqueio da porta 15 andar devido_____. "},{"id":52,"nome":"Bloqueio automatico da Porta 14 andar (Externo)","procedimento":"Bloqueio automatico da Porta 14 andar (Externo) atrav�s do sistema","teplate":""},{"id":53,"nome":"Desbloqueio automatico da Porta 14 andar (Externo)","procedimento":"Desbloqueio automatico da Porta 14 andar (Externo) atrav�s do sistema","teplate":""},{"id":54,"nome":"Desbloqueio manual da Porta 14 andar (Externo - bloqueio automatico 15 seg)","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, solicitou o desbloqueio da porta 14 andar devido_____. "},{"id":55,"nome":"Solicitacao de desbloqueio da Porta 14 andar (Externo)","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, solicitou o desbloqueio da porta 14 andar devido_____. "},{"id":56,"nome":"Bloqueio automatico da Porta 12 andar","procedimento":"Bloqueio automatico da Porta 12 andar atrav�s do sistema","teplate":""},{"id":57,"nome":"Desbloqueio automatico da Porta 12 andar","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":""},{"id":58,"nome":"Desbloqueio manual da Porta 12 andar (bloqueio automatico 15 seg)","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, solicitou o desbloqueio da porta 12 andar devido_____. "},{"id":59,"nome":"Solicitacao de desbloqueio da Porta 12 andar","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, solicitou o desbloqueio da porta 12 andar devido_____. "},{"id":60,"nome":"Bloqueio automatico da Porta CPD","procedimento":"Bloqueio automatico da Porta CPD atrav�s do sistema","teplate":""},{"id":61,"nome":"Desbloqueio automatico da Porta CPD","procedimento":"Desbloqueio automatico da Porta CPD atrav�s do sistema","teplate":""},{"id":62,"nome":"Desbloqueio manual da Porta CPD (bloqueio automatico 15 seg)","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, solicitou o desbloqueio da porta CPD devido_____. "},{"id":63,"nome":"Solicitacao de desbloqueio da Porta CPD","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, solicitou o desbloqueio da porta CPD devido_____. "},{"id":64,"nome":"Bloqueio automatico da Cancela e Garra de Tigre","procedimento":"Bloqueio autom�tico da Cancela e Garra de Tigre atrav�s do sistema","teplate":""},{"id":65,"nome":"Desbloqueio automatico da Cancela e Garra de Tigre","procedimento":"Desbloqueio autom�tico da Cancela e Garra de Tigre atrav�s do sistema","teplate":""},{"id":66,"nome":"Desbloqueio manual da Cancela e Garra de Tigre (bloqueio automatico 15 seg)","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, solicitou o desbloqueio da cancela e garra devido_____. "},{"id":67,"nome":"Solicitacao de desbloqueio da Cancela e Garra de Tigre","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, solicitou o desbloqueio da cancela e garra devido_____. "},{"id":68,"nome":"Bloqueio automatico da Porta Entrada Principal","procedimento":"Bloqueio automatico da Porta Entrada Principal atrav�s do sistema","teplate":""},{"id":69,"nome":"Desbloqueio automatico da Porta Entrada Principal","procedimento":"Desbloqueio automatico da Porta Entrada Principal atrav�s do sistema","teplate":""},{"id":70,"nome":"Desbloqueio manual da Porta Entrada Principal (bloqueio automatico 15 seg)","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, solicitou o desbloqueio da porta entrada principal devido_____. "},{"id":71,"nome":"Solicitacao de desbloqueio da Porta Entrada Principal","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, solicitou o desbloqueio da porta entrada principal devido_____. "},{"id":72,"nome":"Botao de Panico Portaria","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, informou o acionamento do bot�o de p�nico devido____. Realizado o acompanhamento das imagens e aparentemente est� sem altera��es no local."},{"id":73,"nome":"Botao de Panico Ronda","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, informou o acionamento do bot�o de p�nico devido____. Realizado o acompanhamento das imagens e aparentemente est� sem altera��es no local."},{"id":74,"nome":"Botao de Panico Revista","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, informou o acionamento do bot�o de p�nico devido____. Realizado o acompanhamento das imagens e aparentemente est� sem altera��es no local."},{"id":75,"nome":"Bloqueio automatico da Porta 14 andar (Interno)","procedimento":"Bloqueio automatico da Porta 14 andar (Interno) atrav�s do sistema","teplate":""},{"id":76,"nome":"Desbloqueio automatico da Porta 14 andar (Interno)","procedimento":"Desbloqueio automatico da Porta 14 andar (Interno) atrav�s do sistema","teplate":""},{"id":77,"nome":"Desbloqueio manual da Porta 14 andar (Interno - bloqueio automatico 15 seg)","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, solicitou o desbloqueio da porta 14 andar devido_____. "},{"id":78,"nome":"Solicitacao de desbloqueio da Porta 14 andar (Interno)","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, solicitou o desbloqueio da porta 14 andar devido_____. "},{"id":79,"nome":"Acesso de Pessoas no CPD","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, informou o acesso do Sr(a)___ devido___. "},{"id":80,"nome":"Disparo de Alarme","procedimento":"Realizar contato telef�nico, questionar o motivo do disparo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, informou os disparos de alarme devido_____. "},{"id":81,"nome":"Perda de imagem","procedimento":"Realizar contato telef�nico, verifica o motivo da perda de imagem e se est� tudo bem no local","teplate":"Em contato com o Sr(a)___, foi informado a perda de imagem devido_____. "},{"id":82,"nome":"Retorno de imagem","procedimento":"Registrar o retorno da imagem e avisar o cliente","teplate":"Em contato com o Sr(a)___, foi informado o retorno de imagens no local."},{"id":83,"nome":"Movimentacao detectada Casa Guilherme","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, informou o acesso do Sr(a)___ devido___. "},{"id":84,"nome":"Acesso de Pessoas Casa Guilherme","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, informou o acesso do Sr(a)___ devido___. "},{"id":85,"nome":"Botao de Panico Beacon Vila Leopoldina","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, informou o acionamento do bot�o de p�nico devido____. Realizado o acompanhamento das imagens e aparentemente est� sem altera��es no local."},{"id":86,"nome":"Contato de Rotina","procedimento":"Realizar contato telef�nico, verificar se est� tudo bem no local, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, informou que o local est� sem altera��es."},{"id":87,"nome":"Ausencia do posto Beacon Leopoldina","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, informou a aus�ncia do posto devido_____. "},{"id":88,"nome":"Desativa Panico ","procedimento":"Apenas acompanhamento","teplate":""},{"id":89,"nome":"Acesso ao CPD","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, informou a aus�ncia do posto devido_____. "},{"id":90,"nome":"Retorno ao posto GOIVOS","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, informou o retorno do posto devido_____. "},{"id":91,"nome":"Botao de Panico GOIVOS","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, informou o acionamento do bot�o de p�nico devido____. Realizado o acompanhamento das imagens e aparentemente est� sem altera��es no local."},{"id":92,"nome":"Botao de Panico GIARDINO","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, informou o acionamento do bot�o de p�nico devido____. Realizado o acompanhamento das imagens e aparentemente est� sem altera��es no local."},{"id":93,"nome":"Excesso de Pessoas","procedimento":"Realizar contato telef�nico, verificar o motivo de ter mais que uma pessoa no local, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, informou o acesso do Sr(a)___ devido___. "},{"id":94,"nome":"Porta Aberta","procedimento":"Realizar contato telef�nico, solicitar o fechamento da porta e preencher ocorr�ncia ","teplate":"Em Contato com o Sr(a)___, informou a perman�ncias de porta devido_____. "},{"id":95,"nome":"Movimentacao em area restrita","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, informou o acesso do Sr(a)___ devido___. "},{"id":96,"nome":"Botao de Panico SOLAR PAULISTA","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, informou o acionamento do bot�o de p�nico devido____. Realizado o acompanhamento das imagens e aparentemente est� sem altera��es no local."},{"id":97,"nome":"Ausencia do posto SOLAR PAULISTA","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, informou a aus�ncia do posto devido_____. "},{"id":98,"nome":"Retorno ao posto SOLAR PAULISTA","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, informou o retorno do posto devido_____. "},{"id":99,"nome":"Botao de Panico DESIGN ARTE","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, informou o acionamento do bot�o de p�nico devido____. Realizado o acompanhamento das imagens e aparentemente est� sem altera��es no local."},{"id":100,"nome":"Botao de Emergencia 14 andar ","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, informou o acionamento do bot�o de emerg�ncia devido____. Realizado o acompanhamento das imagens e aparentemente est� sem altera��es no local."},{"id":101,"nome":"Botao de Emergencia 15 andar ","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, informou o acionamento do bot�o de emerg�ncia devido____. Realizado o acompanhamento das imagens e aparentemente est� sem altera��es no local."},{"id":102,"nome":"Botao de Panico 15 andar ","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, informou o acionamento do bot�o de p�nico devido____. Realizado o acompanhamento das imagens e aparentemente est� sem altera��es no local."},{"id":103,"nome":"Porta de emergencia Loja","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, informou o acionamento do bot�o de p�nico devido____. Realizado o acompanhamento das imagens e aparentemente est� sem altera��es no local."},{"id":104,"nome":"Porta de emergencia Shopping","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, informou o acionamento do bot�o de p�nico devido____. Realizado o acompanhamento das imagens e aparentemente est� sem altera��es no local."},{"id":105,"nome":"Extra��o de Lixo","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, informou o acionamento do bot�o de p�nico devido____. Realizado o acompanhamento das imagens e aparentemente est� sem altera��es no local."},{"id":106,"nome":"Revista","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, informou o acionamento do bot�o de p�nico devido____. Realizado o acompanhamento das imagens e aparentemente est� sem altera��es no local."},{"id":107,"nome":"Acesso ao CPD","procedimento":"Realizar contato telef�nico, questionar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, informou a abertura da loja_____. "},{"id":108,"nome":"Abertura de Cofre","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, informou o acionamento do bot�o de p�nico devido____. Realizado o acompanhamento das imagens e aparentemente est� sem altera��es no local."},{"id":109,"nome":"Abertura porta da Doca","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Em contato com o Sr(a)___, informou o acionamento do bot�o de p�nico devido____. Realizado o acompanhamento das imagens e aparentemente est� sem altera��es no local."},{"id":110,"nome":"CheckList via aplicativo","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia ","teplate":"Template preenchido automaticamente"},{"id":111,"nome":"Acesso de pessoas na rampa","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia","teplate":"Template preenchido automaticamente"},{"id":112,"nome":"Acesso de pessoas na �rea restrita","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia","teplate":"Template preenchido automaticamente"},{"id":113,"nome":"CPD Botao de emergencia","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia","teplate":"Template preenchido automaticamente"},{"id":114,"nome":"CPD Controle de contigencia","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia","teplate":"Template preenchido automaticamente"},{"id":115,"nome":"CPD Sensor magnetico da porta","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia","teplate":"Template preenchido automaticamente"},{"id":116,"nome":"Porta principal - Botao de emergencia","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia","teplate":"Template preenchido automaticamente"},{"id":117,"nome":"Porta principal - Controle de contigencia","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia","teplate":"Template preenchido automaticamente"},{"id":118,"nome":"Porta principal - Sensor magnetico da porta","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia","teplate":"Template preenchido automaticamente"},{"id":119,"nome":"Porta principal G3 - LED aberto/fechado","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia","teplate":"Template preenchido automaticamente"},{"id":120,"nome":"Porta principal G3 - Fechadura eletroima","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia","teplate":"Template preenchido automaticamente"},{"id":121,"nome":"CPD - LED aberto fechado","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia","teplate":"Template preenchido automaticamente"},{"id":122,"nome":"CPD - Fechadura eletroima","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia","teplate":"Template preenchido automaticamente"} ] }
static/data/cache/tokengoogle.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ https://script.google.com/macros/s/AKfycbxjeB8VhP_aGmShBNTS3XGb72q5-HX_bos_Ze93TZ7nnSXuBww/exec
static/data/dlq/16.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ {"id":"16","cliente":"CLIENTE-TESTE","data":"28/03/2022 23:34:10","idprogramacao:"131","idmsg":"2114121","idchat":"-1001380123558","idroteiro":"110","roteiro":"CheckList via aplicativo ","video":"http://atualli.ddns.net/getpathvideo?c=\\\\ATUALLISRVWIN12\\GRAVACOES\\LOCAL\\CLIENTE-TESTE\\28-03-2022\\CLIENTE-TESTE\\DVR-01\\CAM-03\\EVENTOS\\LOCAL_CLIENTE-TESTE_DVR-01_ce52.ddns-intelbras.com.br_37777_01_28032022_233359.mp4","status":"Manual","dataoperador":null,"dataregistro":"28/03/2022 23:34:10","operador":"","desbloqueio":"","complemento":"","urlcamera":"http://atualli.ddns.net:8112/getcamera?c=00","procedimento":"Realizar contato telef�nico, verificar o motivo, analisar as imagens e preencher ocorr�ncia ","templat":"","prioridade":"LARANJA","contatos":"Mauricio-8011993559629,Angelo-8011993456789","idalarme":"0","login":"movimento,pessoa,veiculo"}
static/data/dlq/25.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ {"id":"25","cliente":"CLIENTE-TESTE","data":"01/04/2022 20:07:49","idprogramacao":"132","idmsg":"2141985","idchat":"-1001380123558","idroteiro":"84","roteiro":"Acesso de Pessoas Casa Guilherme ","video":"http://atualli.ddns.net/getpathvideo?c=\\\\ATUALLISRVWIN12\\GRAVACOES\\LOCAL\\CLIENTE-TESTE\\01-04-2022\\CLIENTE-TESTE\\DVR-01\\CAM-03\\EVENTOS\\LOCAL_CLIENTE-TESTE_DVR-01_ce52.ddns-intelbras.com.br_37777_01_01042022_200739.mp4","status":"Descartado","dataoperador":"03/08/2022 23:36:31","dataregistro":"01/04/2022 20:07:49","operador":"Atualli Tecnologia ( [email protected] )","desbloqueio":"","complemento":"","urlcamera":"http://atualli.ddns.net:8112/getcamera?c=00","procedimento":"Realizar contato telefonico, verificar o motivo, analisar as imagens e preencher ocorrencia ","templat":"teste","prioridade":"VERDE","contatos":"Mauricio-8011993559629,Angelo-8011993456789","idalarme":"0","login":""}
static/data/dlq/419601.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ {"id":"419601","cliente":"EPAR-BOA-VISTA","data":"05/07/2022 21:50:18","idprogramacao":"550","idmsg":"557329","idchat":"-1001577017933","idroteiro":"8","roteiro":"Acesso de veiculos ","video":"http://mosaico03.atualli.com/getpathvideo?c=\\\\ATLSRVMOSAICO03\\GRAVACOES\\LOCAL\\SANASA\\05-07-2022\\EPAR-BOA-VISTA\\DVR01\\CAM-06\\EVENTOS\\LOCAL_EPAR-BOA-VISTA_DVR01_177.170.15.160_35210_06_05072022_215014.mp4","status":"Descartado","dataoperador":"21/07/2022 20:25:22","dataregistro":"05/07/2022 21:50:18","operador":"Giovanna Araujo ( [email protected] )","desbloqueio":"","complemento":"","urlcamera":"http://mosaico03.atualli.com:8700/getcamera?c=03","procedimento":"Realizar contato telefonico, verificar o motivo, analisar as imagens e preencher ocorrencia ","templat":"Em contato com o Sr(a)___, informou o acesso do Sr(a)___ devido___. ","prioridade":"AMARELO","contatos":"SanasaStrat�gic-801932351544,SanasaCelular-8019981312026,SanasaCelular-8019983795336,ThalesSupervisor-8019993410280,CIMCAMP-80193772402,CIMCAMP-8019981312863","idalarme":"0","login":"movimento,pessoa,veiculo"}
static/data/dlq/419656.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ {"id":"419656","cliente":"EPAR-BOA-VISTA","data":"05/07/2022 22:25:41","idprogramacao":"550","idmsg":"557376","idchat":"-1001577017933","idroteiro":"8","roteiro":"Acesso de veiculos ","video":"http://mosaico03.atualli.com/getpathvideo?c=\\\\ATLSRVMOSAICO03\\GRAVACOES\\LOCAL\\SANASA\\05-07-2022\\EPAR-BOA-VISTA\\DVR01\\CAM-06\\EVENTOS\\LOCAL_EPAR-BOA-VISTA_DVR01_177.170.15.160_35210_06_05072022_222537.mp4","status":"Descartado","dataoperador":"21/07/2022 20:25:12","dataregistro":"05/07/2022 22:25:41","operador":"Giovanna Araujo ( [email protected] )","desbloqueio":"","complemento":"","urlcamera":"http://mosaico03.atualli.com:8700/getcamera?c=03","procedimento":"Realizar contato telefonico, verificar o motivo, analisar as imagens e preencher ocorrencia ","templat":"Em contato com o Sr(a)___, informou o acesso do Sr(a)___ devido___. ","prioridade":"VERMELHO","contatos":"SanasaStrat�gic-801932351544,SanasaCelular-8019981312026,SanasaCelular-8019983795336,ThalesSupervisor-8019993410280,CIMCAMP-80193772402,CIMCAMP-8019981312863","idalarme":"0","login":"movimento,pessoa,veiculo"}
static/data/dlq/419657.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ {"id":"419657","cliente":"EPAR-BOA-VISTA","data":"05/07/2022 22:27:08","idprogramacao":"550","idmsg":"557377","idchat":"-1001577017933","idroteiro":"6","roteiro":"Acesso de Pessoas ","video":"http://mosaico03.atualli.com/getpathvideo?c=\\\\ATLSRVMOSAICO03\\GRAVACOES\\LOCAL\\SANASA\\05-07-2022\\EPAR-BOA-VISTA\\DVR01\\CAM-06\\EVENTOS\\LOCAL_EPAR-BOA-VISTA_DVR01_177.170.15.160_35210_06_05072022_222719.mp4","status":"Descartado","dataoperador":"21/07/2022 20:59:23","dataregistro":"05/07/2022 22:27:08","operador":"Atualli Tecnologia ( [email protected] )","desbloqueio":"","complemento":"","urlcamera":"http://mosaico03.atualli.com:8700/getcamera?c=03","procedimento":"Realizar contato telefonico, verificar o motivo, analisar as imagens e preencher ocorrencia ","templat":"Em contato com o Sr(a)___, informou o acesso do Sr(a)___ devido___. ","prioridade":"AMARELO","contatos":"SanasaStrat�gic-801932351544,SanasaCelular-8019981312026,SanasaCelular-8019983795336,ThalesSupervisor-8019993410280,CIMCAMP-80193772402,CIMCAMP-8019981312863","idalarme":"0","login":"movimento,pessoa,veiculo"}
static/data/dlq/419659.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ {"id":"419659","cliente":"EPAR-BOA-VISTA","data":"05/07/2022 22:29:05","idprogramacao":"551","idmsg":"557379","idchat":"-1001577017933","idroteiro":"8","roteiro":"Acesso de veiculos ","video":"http://mosaico03.atualli.com/getpathvideo?c=\\\\ATLSRVMOSAICO03\\GRAVACOES\\LOCAL\\SANASA\\05-07-2022\\EPAR-BOA-VISTA\\DVR01\\CAM-07\\EVENTOS\\LOCAL_EPAR-BOA-VISTA_DVR01_177.170.15.160_35210_07_05072022_222539.mp4","status":"Descartado","dataoperador":"21/07/2022 21:16:14","dataregistro":"05/07/2022 22:29:05","operador":"Atualli Tecnologia ( [email protected] )","desbloqueio":"","complemento":"","urlcamera":"http://mosaico03.atualli.com:8700/getcamera?c=04","procedimento":"Realizar contato telefonico, verificar o motivo, analisar as imagens e preencher ocorrencia ","templat":"Em contato com o Sr(a)___, informou o acesso do Sr(a)___ devido___. ","prioridade":"AMARELO","contatos":"SanasaStrat�gic-801932351544,SanasaCelular-8019981312026,SanasaCelular-8019983795336,ThalesSupervisor-8019993410280,CIMCAMP-80193772402,CIMCAMP-8019981312863","idalarme":"0","login":"mascara,pessoa,veiculo"}
static/data/dlq/419679.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ {"id":"419679","cliente":"EPAR-BOA-VISTA","data":"05/07/2022 22:40:33","idprogramacao":"550","idmsg":"557398","idchat":"-1001577017933","idroteiro":"8","roteiro":"Acesso de veiculos ","video":"http://mosaico03.atualli.com/getpathvideo?c=\\\\ATLSRVMOSAICO03\\GRAVACOES\\LOCAL\\SANASA\\05-07-2022\\EPAR-BOA-VISTA\\DVR01\\CAM-06\\EVENTOS\\LOCAL_EPAR-BOA-VISTA_DVR01_177.170.15.160_35210_06_05072022_224029.mp4","status":"Descartado","dataoperador":"21/07/2022 21:35:49","dataregistro":"05/07/2022 22:40:33","operador":"Giovanna Araujo ( [email protected] )","desbloqueio":"","complemento":"","urlcamera":"http://mosaico03.atualli.com:8700/getcamera?c=03","procedimento":"Realizar contato telefonico, verificar o motivo, analisar as imagens e preencher ocorrencia ","templat":"Em contato com o Sr(a)___, informou o acesso do Sr(a)___ devido___. ","prioridade":"AMARELO","contatos":"SanasaStrat�gic-801932351544,SanasaCelular-8019981312026,SanasaCelular-8019983795336,ThalesSupervisor-8019993410280,CIMCAMP-80193772402,CIMCAMP-8019981312863","idalarme":"0","login":"movimento,pessoa,veiculo"}
static/data/dlq/419693.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ {"id":"419693","cliente":"EPAR-BOA-VISTA","data":"05/07/2022 22:48:27","idprogramacao":"551","idmsg":"557411","idchat":"-1001577017933","idroteiro":"6","roteiro":"Acesso de Pessoas ","video":"http://mosaico03.atualli.com/getpathvideo?c=\\\\ATLSRVMOSAICO03\\GRAVACOES\\LOCAL\\SANASA\\05-07-2022\\EPAR-BOA-VISTA\\DVR01\\CAM-07\\EVENTOS\\LOCAL_EPAR-BOA-VISTA_DVR01_177.170.15.160_35210_07_05072022_224807.mp4","status":"Descartado","dataoperador":"06/07/2022 00:27:25","dataregistro":"05/07/2022 22:48:27","operador":"Giovanna Araujo ( [email protected] )","desbloqueio":"","complemento":"","urlcamera":"http://mosaico03.atualli.com:8700/getcamera?c=04","procedimento":"Realizar contato telefonico, verificar o motivo, analisar as imagens e preencher ocorrencia ","templat":"Em contato com o Sr(a)___, informou o acesso do Sr(a)___ devido___. ","prioridade":"AMARELO","contatos":"SanasaStrat�gic-801932351544,SanasaCelular-8019981312026,SanasaCelular-8019983795336,ThalesSupervisor-8019993410280,CIMCAMP-80193772402,CIMCAMP-8019981312863","idalarme":"0","login":"mascara,pessoa,veiculo"}
static/data/dlq/419699.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ {"id":"419699","cliente":"EPAR-BOA-VISTA","data":"05/07/2022 22:51:23","idprogramacao":"551","idmsg":"557417","idchat":"-1001577017933","idroteiro":"10","roteiro":"Acesso de veiculos e pessoas ","video":"http://mosaico03.atualli.com/getpathvideo?c=\\\\ATLSRVMOSAICO03\\GRAVACOES\\LOCAL\\SANASA\\05-07-2022\\EPAR-BOA-VISTA\\DVR01\\CAM-07\\EVENTOS\\LOCAL_EPAR-BOA-VISTA_DVR01_177.170.15.160_35210_07_05072022_225110.mp4","status":"Descartado","dataoperador":"21/07/2022 23:36:50","dataregistro":"05/07/2022 22:51:23","operador":"Atualli Tecnologia ( [email protected] )","desbloqueio":"","complemento":"","urlcamera":"http://mosaico03.atualli.com:8700/getcamera?c=04","procedimento":"Realizar contato telefonico, verificar o motivo, analisar as imagens e preencher ocorrencia ","templat":"Em contato com o Sr(a)___, informou o acesso do Sr(a)___ devido___. ","prioridade":"AMARELO","contatos":"SanasaStrat�gic-801932351544,SanasaCelular-8019981312026,SanasaCelular-8019983795336,ThalesSupervisor-8019993410280,CIMCAMP-80193772402,CIMCAMP-8019981312863","idalarme":"0","login":"mascara,pessoa,veiculo"}
static/data/dlq/419777.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ {"id":"419777","cliente":"EPAR-BOA-VISTA","data":"05/07/2022 23:51:06","idprogramacao":"551","idmsg":"557493","idchat":"-1001577017933","idroteiro":"8","roteiro":"Acesso de veiculos ","video":"http://mosaico03.atualli.com/getpathvideo?c=\\\\ATLSRVMOSAICO03\\GRAVACOES\\LOCAL\\SANASA\\05-07-2022\\EPAR-BOA-VISTA\\DVR01\\CAM-07\\EVENTOS\\LOCAL_EPAR-BOA-VISTA_DVR01_177.170.15.160_35210_07_05072022_235108.mp4","status":"Descartado","dataoperador":"21/07/2022 23:36:57","dataregistro":"05/07/2022 23:51:06","operador":"Atualli Tecnologia ( [email protected] )","desbloqueio":"","complemento":"","urlcamera":"http://mosaico03.atualli.com:8700/getcamera?c=04","procedimento":"Realizar contato telefonico, verificar o motivo, analisar as imagens e preencher ocorrencia ","templat":"Em contato com o Sr(a)___, informou o acesso do Sr(a)___ devido___. ","prioridade":"AMARELO","contatos":"SanasaStrat�gic-801932351544,SanasaCelular-8019981312026,SanasaCelular-8019983795336,ThalesSupervisor-8019993410280,CIMCAMP-80193772402,CIMCAMP-8019981312863","idalarme":"0","login":"mascara,pessoa,veiculo"}
static/data/dlq/419781.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ {"id":"419781","cliente":"EPAR-BOA-VISTA","data":"05/07/2022 23:53:10","idprogramacao":"550","idmsg":"557497","idchat":"-1001577017933","idroteiro":"8","roteiro":"Acesso de veiculos ","video":"http://mosaico03.atualli.com/getpathvideo?c=\\\\ATLSRVMOSAICO03\\GRAVACOES\\LOCAL\\SANASA\\05-07-2022\\EPAR-BOA-VISTA\\DVR01\\CAM-06\\EVENTOS\\LOCAL_EPAR-BOA-VISTA_DVR01_177.170.15.160_35210_06_05072022_235107.mp4","status":"Descartado","dataoperador":"06/07/2022 00:28:33","dataregistro":"05/07/2022 23:53:10","operador":"Giovanna Araujo ( [email protected] )","desbloqueio":"","complemento":"","urlcamera":"http://mosaico03.atualli.com:8700/getcamera?c=03","procedimento":"Realizar contato telefonico, verificar o motivo, analisar as imagens e preencher ocorrencia ","templat":"Em contato com o Sr(a)___, informou o acesso do Sr(a)___ devido___. ","prioridade":"AMARELO","contatos":"SanasaStrat�gic-801932351544,SanasaCelular-8019981312026,SanasaCelular-8019983795336,ThalesSupervisor-8019993410280,CIMCAMP-80193772402,CIMCAMP-8019981312863","idalarme":"0","login":"movimento,pessoa,veiculo"}
static/data/dlq/419813.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ {"id":"419813","cliente":"EPAR-BOA-VISTA","data":"06/07/2022 00:22:50","idprogramacao":"551","idmsg":"557523","idchat":"-1001577017933","idroteiro":"6","roteiro":"Acesso de Pessoas ","video":"http://mosaico03.atualli.com/getpathvideo?c=\\\\ATLSRVMOSAICO03\\GRAVACOES\\LOCAL\\SANASA\\06-07-2022\\EPAR-BOA-VISTA\\DVR01\\CAM-07\\EVENTOS\\LOCAL_EPAR-BOA-VISTA_DVR01_177.170.15.160_35210_07_06072022_002255.mp4","status":"Descartado","dataoperador":"06/07/2022 03:10:36","dataregistro":"06/07/2022 00:22:50","operador":"Giovanna Araujo ( [email protected] )","desbloqueio":"","complemento":"","urlcamera":"http://mosaico03.atualli.com:8700/getcamera?c=04","procedimento":"Realizar contato telefonico, verificar o motivo, analisar as imagens e preencher ocorrencia ","templat":"Em contato com o Sr(a)___, informou o acesso do Sr(a)___ devido___. ","prioridade":"VERMELHO","contatos":"SanasaStrat�gic-801932351544,SanasaCelular-8019981312026,SanasaCelular-8019983795336,ThalesSupervisor-8019993410280,CIMCAMP-80193772402,CIMCAMP-8019981312863","idalarme":"0","login":"mascara,pessoa,veiculo"}
static/data/dlq/55.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ {"id":"55","cliente":"CLIENTE-TESTE","data":"13/04/2022 10:18:14","idprogramacao":"133","idmsg":"2226044","idchat":"-1001380123558","idroteiro":"94","roteiro":"Porta Aberta ","video":"http://atualli.ddns.net/getpathvideo?c=\\\\ATUALLISRVWIN12\\GRAVACOES\\LOCAL\\CLIENTE-TESTE\\13-04-2022\\CLIENTE-TESTE\\DVR-03\\HALL-ELEVADOR\\EVENTOS\\LOCAL_CLIENTE-TESTE_DVR-03_192.168.0.131_554_01_13042022_101701.mp4","status":"Descartado","dataoperador":"03/09/2022 00:53:49","dataregistro":"13/04/2022 10:18:14","operador":"Atualli Tecnologia ( [email protected] )","desbloqueio":"","complemento":"","urlcamera":"http://atualli.ddns.net:8112/getcamera?c=02","procedimento":"Realizar contato telefonico, solicitar o fechamento da porta e preencher ocorrencia ","templat":"Em Contato com o Sr(a)___, informou a permanencias de porta devido_____. ","prioridade":"VERDE","contatos":"Mauricio-8011993559629,Angelo-8011993456789","idalarme":"0","login":"sempessoa,pessoa"}
static/data/dlq/56.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ {"id":"56","cliente":"CLIENTE-TESTE","data":"13/04/2022 10:29:02","idprogramacao":"133","idmsg":"2226121","idchat":"-1001380123558","idroteiro":"94","roteiro":"Porta Aberta ","video":"http://atualli.ddns.net/getpathvideo?c=\\\\ATUALLISRVWIN12\\GRAVACOES\\LOCAL\\CLIENTE-TESTE\\13-04-2022\\CLIENTE-TESTE\\DVR-03\\HALL-ELEVADOR\\EVENTOS\\LOCAL_CLIENTE-TESTE_DVR-03_192.168.0.131_554_01_13042022_102810.mp4","status":"Descartado","dataoperador":"03/09/2022 00:53:57","dataregistro":"13/04/2022 10:29:02","operador":"Atualli Tecnologia ( [email protected] )","desbloqueio":"","complemento":"","urlcamera":"http://atualli.ddns.net:8112/getcamera?c=02","procedimento":"Realizar contato telefonico, solicitar o fechamento da porta e preencher ocorrencia ","templat":"Em Contato com o Sr(a)___, informou a permanencias de porta devido_____. ","prioridade":"VERDE","contatos":"Mauricio-8011993559629,Angelo-8011993456789","idalarme":"0","login":"sempessoa,pessoa"}
static/data/dlq/57.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ {"id":"57","cliente":"CLIENTE-TESTE","data":"13/04/2022 10:35:41","idprogramacao":"133","idmsg":"2226141","idchat":"-1001380123558","idroteiro":"94","roteiro":"Porta Aberta ","video":"http://atualli.ddns.net/getpathvideo?c=\\\\ATUALLISRVWIN12\\GRAVACOES\\LOCAL\\CLIENTE-TESTE\\13-04-2022\\CLIENTE-TESTE\\DVR-03\\HALL-ELEVADOR\\EVENTOS\\LOCAL_CLIENTE-TESTE_DVR-03_192.168.0.131_554_01_13042022_103504.mp4","status":"Descartado","dataoperador":"03/09/2022 00:54:04","dataregistro":"13/04/2022 10:35:41","operador":"Atualli Tecnologia ( [email protected] )","desbloqueio":"","complemento":"","urlcamera":"http://atualli.ddns.net:8112/getcamera?c=02","procedimento":"Realizar contato telefonico, solicitar o fechamento da porta e preencher ocorrencia ","templat":"Em Contato com o Sr(a)___, informou a permanencias de porta devido_____. ","prioridade":"VERDE","contatos":"Mauricio-8011993559629,Angelo-8011993456789","idalarme":"0","login":"sempessoa,pessoa"}
static/data/dlq/58.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ {"id":"58","cliente":"CLIENTE-TESTE","data":"13/04/2022 10:42:16","idprogramacao":"133","idmsg":"2226184","idchat":"-1001380123558","idroteiro":"94","roteiro":"Porta Aberta ","video":"http://atualli.ddns.net/getpathvideo?c=\\\\ATUALLISRVWIN12\\GRAVACOES\\LOCAL\\CLIENTE-TESTE\\13-04-2022\\CLIENTE-TESTE\\DVR-03\\HALL-ELEVADOR\\EVENTOS\\LOCAL_CLIENTE-TESTE_DVR-03_192.168.0.131_554_01_13042022_104049.mp4","status":"Descartado","dataoperador":"03/09/2022 00:54:10","dataregistro":"13/04/2022 10:42:16","operador":"Atualli Tecnologia ( [email protected] )","desbloqueio":"","complemento":"","urlcamera":"http://atualli.ddns.net:8112/getcamera?c=02","procedimento":"Realizar contato telefonico, solicitar o fechamento da porta e preencher ocorrencia ","templat":"Em Contato com o Sr(a)___, informou a permanencias de porta devido_____. ","prioridade":"VERDE","contatos":"Mauricio-8011993559629,Angelo-8011993456789","idalarme":"0","login":"sempessoa,pessoa"}
static/data/dlq/59.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ {"id":"59","cliente":"CLIENTE-TESTE","data":"13/04/2022 11:00:09","idprogramacao":"133","idmsg":"2226273","idchat":"-1001380123558","idroteiro":"94","roteiro":"Porta Aberta ","video":"http://atualli.ddns.net/getpathvideo?c=\\\\ATUALLISRVWIN12\\GRAVACOES\\LOCAL\\CLIENTE-TESTE\\13-04-2022\\CLIENTE-TESTE\\DVR-03\\HALL-ELEVADOR\\EVENTOS\\LOCAL_CLIENTE-TESTE_DVR-03_192.168.0.131_554_01_13042022_105932.mp4","status":"Descartado","dataoperador":"03/09/2022 00:54:23","dataregistro":"13/04/2022 11:00:09","operador":"Atualli Tecnologia ( [email protected] )","desbloqueio":"","complemento":"","urlcamera":"http://atualli.ddns.net:8112/getcamera?c=02","procedimento":"Realizar contato telefonico, solicitar o fechamento da porta e preencher ocorrencia ","templat":"Em Contato com o Sr(a)___, informou a permanencias de porta devido_____. ","prioridade":"VERDE","contatos":"Mauricio-8011993559629,Angelo-8011993456789","idalarme":"0","login":"sempessoa,pessoa"}
static/data/dlq/60.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ {"id":"60","cliente":"CLIENTE-TESTE","data":"13/04/2022 11:01:26","idprogramacao":"133","idmsg":"2226283","idchat":"-1001380123558","idroteiro":"94","roteiro":"Porta Aberta ","video":"http://atualli.ddns.net/getpathvideo?c=\\\\ATUALLISRVWIN12\\GRAVACOES\\LOCAL\\CLIENTE-TESTE\\13-04-2022\\CLIENTE-TESTE\\DVR-03\\HALL-ELEVADOR\\EVENTOS\\LOCAL_CLIENTE-TESTE_DVR-03_192.168.0.131_554_01_13042022_110049.mp4","status":"Descartado","dataoperador":"03/09/2022 00:54:31","dataregistro":"13/04/2022 11:01:26","operador":"Atualli Tecnologia ( [email protected] )","desbloqueio":"","complemento":"","urlcamera":"http://atualli.ddns.net:8112/getcamera?c=02","procedimento":"Realizar contato telefonico, solicitar o fechamento da porta e preencher ocorrencia ","templat":"Em Contato com o Sr(a)___, informou a permanencias de porta devido_____. ","prioridade":"VERDE","contatos":"Mauricio-8011993559629,Angelo-8011993456789","idalarme":"0","login":"sempessoa,pessoa"}
static/data/dlq/ERROJSON_17.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ Invalid character after parsing property name. Expected ':' but got: 1. Path 'data', line 1, position 82.
static/data/operacao.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ {"operacao":[{"id":"1","nome":"Mauricio Guerta ( [email protected] )","status":"OFF","datalogin":"2021-09-14T00:30:07.979Z","datalogout":"2021-09-15T20:58:21.285Z","temposessao":"160093306","ramal":"2002","refresh":"NO"},{"id":"2","nome":"Mauricio Guerta ( [email protected] )","status":"OFF","datalogin":"2020-07-28T05:26:17.101Z","datalogout":"2020-07-28T05:26:24.128Z","temposessao":"7027","ramal":"2002","refresh":"NO"},{"id":"3","nome":"Fabiana Alves ( [email protected] )","status":"OFF","datalogin":"2021-02-23T20:46:41.928Z","datalogout":"2021-02-24T09:04:55.812Z","temposessao":"44293884","ramal":"2002","refresh":"NO"},{"id":"4","nome":"Eduardo Borges ( [email protected] )","status":"OFF","datalogin":"","datalogout":"","temposessao":"","ramal":"2002","refresh":"NO"},{"id":"5","nome":"Paloma Pereira ( [email protected] )","status":"OFF","datalogin":"2021-10-18T10:54:48.079Z","datalogout":"2021-10-17T09:24:32.378Z","temposessao":"51380","ramal":"2002","refresh":"NO"},{"id":"6","nome":"Cesar Souza ( [email protected] )","status":"OFF","datalogin":"2021-01-05T00:50:46.819Z","datalogout":"2021-01-05T00:50:57.069Z","temposessao":"10250","ramal":"2002","refresh":"NO"},{"id":"7","nome":"Estefany Boreli ( [email protected] )","status":"OFF","datalogin":"2021-10-21T09:04:30.631Z","datalogout":"2021-10-21T22:23:33.170Z","temposessao":"47942539","ramal":"2002","refresh":"NO"},{"id":"8","nome":"Ygor Luciano ( [email protected] )","status":"OFF","datalogin":"2021-10-24T21:23:59.356Z","datalogout":"2021-10-24T21:07:48.374Z","temposessao":"49554","ramal":"2002","refresh":"NO"},{"id":"9","nome":"Angelo Mendes ( [email protected] )","status":"OFF","datalogin":"2021-09-30T10:49:22.456Z","datalogout":"2021-09-30T10:58:21.985Z","temposessao":"539529","ramal":"2002","refresh":"NO"},{"id":"10","nome":"Paloma Pereira ( [email protected] )","status":"OFF","datalogin":"2021-02-06T21:03:45.511Z","datalogout":"2021-02-06T21:04:29.941Z","temposessao":"44430","ramal":"2002","refresh":"NO"},{"id":"11","nome":"Angelo Mendes ( [email protected] )","status":"OFF","datalogin":"2021-04-05T20:19:22.630Z","datalogout":"2021-04-05T20:25:28.819Z","temposessao":"366189","ramal":"2002","refresh":"NO"},{"id":"12","nome":"operacao atualli ( [email protected] )","status":"OFF","datalogin":"2020-09-30T12:27:18.192Z","datalogout":"2020-09-30T12:28:06.245Z","temposessao":"48053","ramal":"2002","refresh":"NO"},{"id":"13","nome":"Eduardo Lima ( [email protected] )","status":"OFF","datalogin":"2020-09-23T19:52:24.454Z","datalogout":"2020-09-23T19:52:29.447Z","temposessao":"4993","ramal":"2002","refresh":"NO"},{"id":"14","nome":"Aline Silva ( [email protected] )","status":"OFF","datalogin":"2021-10-20T20:59:55.501Z","datalogout":"2021-10-20T21:00:06.229Z","temposessao":"10728","ramal":"2002","refresh":"NO"},{"id":"15","nome":"Giovanna Araujo ( [email protected] )","status":"ON","datalogin":"2021-10-24T04:02:19.861Z","datalogout":"2021-10-24T09:26:29.218Z","temposessao":"19449357","ramal":"2002","refresh":"NO"},{"id":"16","nome":"LOGIN","status":"OFF","datalogin":"2021-07-10T08:43:57.619Z","datalogout":"2021-07-10T08:43:57.619Z","temposessao":"","ramal":"2002","refresh":"NO"},{"id":"17","nome":"LOGOFF","status":"OFF","datalogin":"2021-07-21T19:57:38.830Z","datalogout":"2021-07-21T19:57:38.830Z","temposessao":"","ramal":"2002","refresh":"NO"},{"id":"18","nome":"PAUSAR","status":"OFF","datalogin":"2021-07-21T19:57:40.651Z","datalogout":"2021-07-21T19:57:40.651Z","temposessao":"","ramal":"2002","refresh":"NO"},{"id":"19","nome":"Atualli Tecnologia ( [email protected] )","status":"OFF","datalogin":"2021-09-06T22:13:38.041Z","datalogout":"2021-09-06T22:14:46.955Z","temposessao":"68914","ramal":"2002","refresh":"NO"},{"id":"20","nome":"Edson Almeida ( [email protected] )","status":"OFF","datalogin":"2021-09-29T21:54:59.361Z","datalogout":"2021-09-29T21:55:10.622Z","temposessao":"11261","ramal":"2002","refresh":"NO"},{"id":"21","nome":"Opera��o Atualli ( [email protected] )","status":"OFF","datalogin":"2021-09-25T01:56:46.922Z","datalogout":"2021-09-25T02:01:30.918Z","temposessao":"283996","ramal":"2002","refresh":"NO"},{"id":"22","nome":"Paloma Pereira ( [email protected] )","status":"ON","datalogin":"2021-10-24T23:03:30.842Z","datalogout":"2021-10-24T23:03:22.294Z","temposessao":"7175539","ramal":"2002","refresh":"NO"},{"id":"23","nome":"Icaro Espalaor ( [email protected] )","status":"ON","datalogin":"2021-10-24T09:28:47.620Z","datalogout":"2021-10-24T09:34:11.972Z","temposessao":"324352","ramal":"2002","refresh":"NO"},{"id":"24","nome":"Ana Caroline ( [email protected] )","status":"OFF","datalogin":"2021-10-24T09:28:47.620Z","datalogout":"2021-10-24T09:34:11.972Z","temposessao":"324352","ramal":"2002","refresh":"NO"},{"id":"25","nome":"Ana Claudia ( [email protected] )","status":"OFF","datalogin":"2021-10-24T09:28:47.620Z","datalogout":"2021-10-24T09:34:11.972Z","temposessao":"324352","ramal":"2002","refresh":"NO"},{"id":"26","nome":"Angela Marcela ( [email protected] )","status":"OFF","datalogin":"","datalogout":"","temposessao":"","ramal":"","refresh":"NO"}]}
static/data/operacaoTemplate.html ADDED
@@ -0,0 +1,2249 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+
5
+ <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
6
+ <meta http-equiv="Pragma" content="no-cache" />
7
+ <meta http-equiv="Expires" content="0" />
8
+ <meta charset="utf-8" />
9
+ <title>ATUALLI MOSAICO WEB</title>
10
+ <meta name="viewport" content="width=device-width, initial-scale=1">
11
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
12
+ <style>
13
+ * {
14
+ box-sizing: border-box;
15
+ }
16
+
17
+ body {
18
+ margin: 0;
19
+ font-family: Arial;
20
+ background: #000000;
21
+ }
22
+
23
+ #logo {
24
+ width: 100%;
25
+ top: 10px;
26
+ z-index: 1;
27
+ }
28
+
29
+ .title_print, .reporting_period {
30
+ text-align: center;
31
+ }
32
+
33
+ .header {
34
+ text-align: center;
35
+ padding: 0.05%;
36
+ background: #053067;
37
+ color: white;
38
+ }
39
+
40
+ .buttondiv {
41
+ float: left;
42
+ overflow: auto;
43
+ padding: 4px 10px;
44
+
45
+ }
46
+
47
+ .buttonfila {
48
+
49
+ font-size: 14px;
50
+ border-radius: 25px;
51
+ border: 2px solid black;
52
+ outline: none;
53
+ color: white;
54
+ padding: 11px 16px;
55
+ background-color: #000000;
56
+ font-family: inherit;
57
+ margin: 0;
58
+
59
+ }
60
+
61
+ .buttonwork {
62
+
63
+ font-size: 14px;
64
+ border-radius: 25px;
65
+ // border: none;
66
+ border: 2px solid black;
67
+ outline: none;
68
+ color: white;
69
+ padding: 11px 16px;
70
+ background-color: #339BFF;
71
+ font-family: inherit;
72
+ margin: 0;
73
+ }
74
+
75
+
76
+ .tudo {
77
+
78
+ // position: absolute;
79
+ // display: none;
80
+ // flex-wrap: wrap;
81
+ // background: #000000;
82
+ // height: 100%;
83
+ // width: 100%;
84
+ }
85
+
86
+ /* Bottom left text */
87
+ .bottom-left {
88
+ position: absolute;
89
+ bottom: 8px;
90
+ left: 16px;
91
+ }
92
+
93
+ /* Top left text */
94
+ .top-left {
95
+ position: absolute;
96
+ top: 18px;
97
+ left: 16px;
98
+ }
99
+
100
+ /* Top right text */
101
+ .top-right {
102
+ position: absolute;
103
+ top: 18px;
104
+ right: 16px;
105
+ }
106
+
107
+ /* Bottom right text */
108
+ .bottom-right {
109
+ position: absolute;
110
+ bottom: 8px;
111
+ right: 16px;
112
+ }
113
+
114
+ /* Centered text */
115
+ .centered {
116
+ position: absolute;
117
+ top: 50%;
118
+ left: 50%;
119
+ transform: translate(-50%, -50%);
120
+ }
121
+
122
+ .row {
123
+ // position: fixed;
124
+ display: none;
125
+ flex-wrap: wrap;
126
+ padding: 6.3vh 0;
127
+ background: #000000;
128
+ width:100%;
129
+ height:92%;
130
+ }
131
+
132
+ .rowblock {
133
+ display: none;
134
+ flex-wrap: wrap;
135
+ padding: 100% 0;
136
+ background-image: url('getresource?r=accessdenied.png');
137
+ height: 100%;
138
+ }
139
+
140
+ /* Create four equal columns that sits next to each other */
141
+ .column7x {
142
+ flex: 14.28%;
143
+ max-width: 14.28%;
144
+ padding: 0 2px;
145
+ }
146
+ .column7x img {
147
+ margin-top: 2px;
148
+ vertical-align: middle;
149
+ }
150
+
151
+ .column7x:active img {
152
+ position: fixed;
153
+ top: 50%;
154
+ left: 0;
155
+ width: 100%;
156
+ height: 100%;
157
+ -webkit-transform: translateY(-50%);
158
+ transform: translateY(-50%);
159
+ cursor: zoom-out;
160
+ }
161
+
162
+ .column6x {
163
+ flex: 16.6%;
164
+ max-width: 16.6%;
165
+ padding: 0 2px;
166
+ }
167
+ .column6x img {
168
+ margin-top: 2px;
169
+ vertical-align: middle;
170
+ }
171
+
172
+ .column6x:active img {
173
+ position: fixed;
174
+ top: 50%;
175
+ left: 0;
176
+ width: 100%;
177
+ height: 100%;
178
+ -webkit-transform: translateY(-50%);
179
+ transform: translateY(-50%);
180
+ cursor: zoom-out;
181
+ }
182
+
183
+
184
+ .column5x {
185
+ flex: 20%;
186
+ max-width: 20%;
187
+ padding: 0 2px;
188
+ }
189
+ .column5x img {
190
+ margin-top: 2px;
191
+ vertical-align: middle;
192
+ }
193
+
194
+ .column5x:active img {
195
+ position: fixed;
196
+ top: 50%;
197
+ left: 0;
198
+ width: 100%;
199
+ height: 100%;
200
+ -webkit-transform: translateY(-50%);
201
+ transform: translateY(-50%);
202
+ cursor: zoom-out;
203
+ }
204
+
205
+
206
+ .column3x {
207
+ flex: 33.33%;
208
+ max-width: 33.33%;
209
+ padding: 0 2px;
210
+ }
211
+ .column3x img {
212
+ margin-top: 2px;
213
+ vertical-align: middle;
214
+ }
215
+
216
+ .column3x:active img {
217
+ position: fixed;
218
+ top: 50%;
219
+ left: 0;
220
+ width: 100%;
221
+ height: 100%;
222
+ -webkit-transform: translateY(-50%);
223
+ transform: translateY(-50%);
224
+ cursor: zoom-out;
225
+ }
226
+
227
+
228
+ .column {
229
+ flex: 25%;
230
+ max-width: 25%;
231
+ padding: 0 2px;
232
+ }
233
+
234
+ .column img {
235
+ margin-top: 2px;
236
+ vertical-align: middle;
237
+
238
+ }
239
+
240
+ .column:hover img {
241
+ /* position: absolute;
242
+ // bottom: 0%;
243
+ left: 0;
244
+ right: 0;
245
+ height: 50%;
246
+ width: 50%;
247
+ background: rgba(0, 0, 0, 0.5);
248
+ padding: 5px 10px;
249
+ transition: all 1s;
250
+ color: white; */
251
+ }
252
+ .column:active img {
253
+ position: fixed;
254
+ top: 50%;
255
+ left: 0;
256
+ width: 100%;
257
+ height: 100%;
258
+ -webkit-transform: translateY(-50%);
259
+ transform: translateY(-50%);
260
+ cursor: zoom-out;
261
+ }
262
+
263
+ /* Responsive layout - makes a two column-layout instead of four columns */
264
+ @media screen and (max-width: 800px) {
265
+ .column {
266
+ flex: 50%;
267
+ max-width: 50%;
268
+ }
269
+ }
270
+
271
+ /* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
272
+ @media screen and (max-width: 600px) {
273
+ .column {
274
+ flex: 100%;
275
+ max-width: 100%;
276
+ }
277
+ }
278
+
279
+ #popupbox {
280
+ margin: 0;
281
+ margin-left: 40%;
282
+ margin-right: 40%;
283
+ margin-top: 50px;
284
+ padding-top: 10px;
285
+ width: 20%;
286
+ height: 150px;
287
+ position: fixed;
288
+ background: #FBFBF0;
289
+ border: solid #000000 2px;
290
+ z-index: 9;
291
+ font-family: arial;
292
+ visibility: hidden;
293
+ }
294
+
295
+
296
+ #ocorrencia {
297
+ margin: 0;
298
+ margin-left: 25%;
299
+ margin-right: 25%;
300
+ margin-top: 12%;
301
+ padding-top: 10px;
302
+ width: 50%;
303
+ height: 50%;
304
+ position: fixed;
305
+ background: white;
306
+ border: solid black 2px;
307
+ z-index: 9;
308
+ font-family: arial;
309
+ visibility: hidden;
310
+ }
311
+
312
+ .sidenav {
313
+ height: 100%;
314
+ width: 0;
315
+ position: fixed;
316
+ z-index: 1;
317
+ top: 0;
318
+ left: 0;
319
+ background-color: #111;
320
+ overflow-x: hidden;
321
+ transition: 0.5s;
322
+ padding-top: 60px;
323
+ }
324
+
325
+ .sidenav a {
326
+ padding: 8px 8px 8px 32px;
327
+ text-decoration: none;
328
+ font-size: 25px;
329
+ color: #818181;
330
+ display: block;
331
+ transition: 0.3s;
332
+ }
333
+
334
+ .sidenav a:hover {
335
+ color: #f1f1f1;
336
+ }
337
+
338
+ .sidenav .closebtn {
339
+ position: absolute;
340
+ top: 0;
341
+ right: 25px;
342
+ font-size: 36px;
343
+ margin-left: 50px;
344
+ }
345
+
346
+ @media screen and (max-height: 450px) {
347
+ .sidenav {padding-top: 15px;}
348
+ .sidenav a {font-size: 18px;}
349
+ }
350
+
351
+ .topnav {
352
+ position: fixed;
353
+ top: 0;
354
+ width: 100%;
355
+ height:6.3vh;
356
+ overflow: hidden;
357
+ background-color: #fefefe;
358
+ }
359
+
360
+
361
+ .topnav a {
362
+ float: left;
363
+ display: block;
364
+ color: #000000;
365
+ text-align: center;
366
+ padding: 14px 16px;
367
+ text-decoration: none;
368
+ font-size: 17px;
369
+ }
370
+
371
+ .active {
372
+ background-color: #4CAF50;
373
+ color: white;
374
+ }
375
+
376
+ .topnav .icon {
377
+ display: none;
378
+ }
379
+
380
+ .dropdown {
381
+ float: left;
382
+ overflow: auto;
383
+ padding: 4px 10px;
384
+
385
+ }
386
+
387
+ .dropdown .dropbtn {
388
+ font-size: 14px;
389
+ border-radius: 25px;
390
+ border: 2px solid black;
391
+ outline: none;
392
+ color: black;
393
+ padding: 11px 16px;
394
+ background-color: #fefefe;
395
+ font-family: inherit;
396
+ margin: 0;
397
+ }
398
+
399
+ .dropdown-content {
400
+ display: none;
401
+ position: fixed;
402
+ background-color: #f9f9f9;
403
+ min-width: 160px;
404
+ overflow: auto;
405
+ max-height: 90%;/* you can change as you need it */
406
+ box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
407
+ z-index: 1;
408
+ }
409
+
410
+ .dropdown-content a {
411
+ float: none;
412
+ color: black;
413
+ padding: 12px 16px;
414
+ text-decoration: none;
415
+ display: block;
416
+ text-align: left;
417
+ }
418
+
419
+ .topnav a:hover, .dropdown:hover .dropbtn {
420
+ background-color: #555;
421
+ color: white;
422
+ }
423
+
424
+ .dropdown-content a:hover {
425
+ background-color: #ddd;
426
+ color: black;
427
+ }
428
+
429
+ .dropdown:hover .dropdown-content {
430
+ display: block;
431
+ }
432
+
433
+ @media screen and (max-width: 1300px) {
434
+ .topnav a:not(:first-child), .dropdown .dropbtn {
435
+ display: none;
436
+ }
437
+
438
+ .topnav a.icon {
439
+ float: right;
440
+ display: block;
441
+ }
442
+ }
443
+
444
+ @media screen and (max-width: 1300px) {
445
+ .topnav.responsive {
446
+ position: relative;
447
+ height:1%;
448
+ }
449
+
450
+ .topnav.responsive .icon {
451
+ position: absolute;
452
+ right: 0;
453
+ top: 0;
454
+ }
455
+
456
+ .topnav.responsive a {
457
+ float: none;
458
+ display: block;
459
+ text-align: left;
460
+ }
461
+
462
+ .topnav.responsive .dropdown {
463
+ float: none;
464
+ }
465
+
466
+ .topnav.responsive .dropdown-content {
467
+ position: relative;
468
+ }
469
+
470
+ .topnav.responsive .dropdown .dropbtn {
471
+ display: block;
472
+ width: 100%;
473
+ text-align: left;
474
+ }
475
+ }
476
+ /*
477
+ novo popup
478
+ */
479
+
480
+ /* Button used to open the contact form - fixed at the bottom of the page */
481
+ .open-button {
482
+ background-color: #555;
483
+ color: white;
484
+ padding: 16px 20px;
485
+ border: none;
486
+ cursor: pointer;
487
+ opacity: 0.8;
488
+ position: fixed;
489
+ bottom: 23px;
490
+ right: 28px;
491
+ width: 280px;
492
+ }
493
+
494
+ /* The popup form - hidden by default */
495
+ .form-popup {
496
+ display: none;
497
+ position: fixed;
498
+ bottom: 0;
499
+ right: 15px;
500
+ border: 3px solid #f1f1f1;
501
+ z-index: 9;
502
+ }
503
+
504
+ /* Add styles to the form container */
505
+ .form-container {
506
+ max-width: 300px;
507
+ padding: 10px;
508
+ background-color: white;
509
+ }
510
+
511
+ /* Full-width input fields */
512
+ .form-container input[type=text], .form-container input[type=password] {
513
+ width: 100%;
514
+ padding: 15px;
515
+ margin: 5px 0 22px 0;
516
+ border: none;
517
+ background: #f1f1f1;
518
+ }
519
+
520
+ /* When the inputs get focus, do something */
521
+ .form-container input[type=text]:focus, .form-container input[type=password]:focus {
522
+ background-color: #ddd;
523
+ outline: none;
524
+ }
525
+
526
+ /* Set a style for the submit/login button */
527
+ .form-container .btn {
528
+ background-color: #4CAF50;
529
+ color: white;
530
+ padding: 16px 20px;
531
+ border: none;
532
+ cursor: pointer;
533
+ width: 100%;
534
+ margin-bottom: 10px;
535
+ opacity: 0.8;
536
+ }
537
+
538
+ /* Add a red background color to the cancel button */
539
+ .form-container .cancel {
540
+ background-color: red;
541
+ }
542
+
543
+ /* Add some hover effects to buttons */
544
+ .form-container .btn:hover, .open-button:hover {
545
+ opacity: 1;
546
+ }
547
+ /* POPUP central */
548
+ /* Full-width input fields */
549
+ input[type=text], input[type=password] {
550
+ width: 100%;
551
+ padding: 12px 20px;
552
+ margin: 8px 0;
553
+ display: inline-block;
554
+ border: 1px solid #ccc;
555
+ box-sizing: border-box;
556
+ }
557
+
558
+
559
+ /* Set a style for all buttons */
560
+ .button {
561
+ background-color: #4CAF50;
562
+ color: white;
563
+ padding: 14px 20px;
564
+ margin: 8px 0;
565
+ border: none;
566
+ cursor: pointer;
567
+ width: 100%;
568
+ text-align: center;
569
+ }
570
+
571
+ button:hover {
572
+ opacity: 0.8;
573
+ }
574
+
575
+ /* Extra styles for the cancel button */
576
+ .cancelbtn {
577
+ width: 100%;
578
+ padding: 10px 18px;
579
+ background-color: #f44336;
580
+ text-align: center;
581
+ }
582
+
583
+ /* Center the image and position the close button */
584
+ .imgcontainer {
585
+ text-align: center;
586
+ margin: 24px 0 12px 0;
587
+ position: relative;
588
+ border: 3px solid #fff;
589
+ background: #f1f1f1;
590
+ width: 100%;
591
+ // min-height: 450px;
592
+
593
+ }
594
+
595
+
596
+ .imgchild {
597
+ width: 50%;
598
+ height: 26vw;
599
+ float: left;
600
+ padding: 0px;
601
+ margin: 0 0;
602
+ border: 1px solid #000;
603
+ }
604
+
605
+ img.avatar {
606
+ width: 40%;
607
+ border-radius: 50%;
608
+ }
609
+
610
+ .container {
611
+ padding: 16px;
612
+ }
613
+
614
+ .select {
615
+ padding: 16px;
616
+ width: 40%;
617
+ }
618
+
619
+ .select_audio {
620
+ width: 40%;
621
+ }
622
+
623
+ options {
624
+ padding: 16px;
625
+ width: 40%;
626
+ }
627
+
628
+ span.psw {
629
+ float: right;
630
+ padding-top: 16px;
631
+ }
632
+
633
+ /* The Modal (background) */
634
+ .modal {
635
+ display: none; /* Hidden by default */
636
+ position: fixed; /* Stay in place */
637
+ z-index: 1; /* Sit on top */
638
+ left: 0;
639
+ top: 0;
640
+ width: 100%; /* Full width */
641
+ height: 100%; /* Full height */
642
+ overflow: auto; /* Enable scroll if needed */
643
+ background-color: rgb(0,0,0); /* Fallback color */
644
+ background-color: rgba(0,0,0,0.0); /* Black w/ opacity */
645
+ padding-top: 60px;
646
+ }
647
+
648
+ /* Hide scrollbar for Chrome, Safari and Opera */
649
+ .modal::-webkit-scrollbar {
650
+ display: none;
651
+ }
652
+
653
+ /* Hide scrollbar for IE, Edge and Firefox */
654
+ .modal {
655
+ -ms-overflow-style: none; /* IE and Edge */
656
+ scrollbar-width: none; /* Firefox */
657
+ }
658
+
659
+ /* Modal Content/Box */
660
+ .modal-content {
661
+ background-color: #fefefe;
662
+ margin: 5% auto 15% auto; /* 5% from the top, 15% from the bottom and centered */
663
+ border: 1px solid #888;
664
+ width: 60%; /* Could be more or less, depending on screen size */
665
+ }
666
+
667
+ /* The Close Button (x) */
668
+ .close {
669
+ position: absolute;
670
+ right: 25px;
671
+ top: 0;
672
+ color: #000;
673
+ font-size: 35px;
674
+ font-weight: bold;
675
+ }
676
+
677
+ .close:hover,
678
+ .close:focus {
679
+ color: red;
680
+ cursor: pointer;
681
+ }
682
+
683
+ /* Add Zoom Animation */
684
+ .animate {
685
+ -webkit-animation: animatezoom 0.6s;
686
+ animation: animatezoom 0.6s
687
+ }
688
+
689
+ @-webkit-keyframes animatezoom {
690
+ from {
691
+ -webkit-transform: scale(0)
692
+ }
693
+
694
+ to {
695
+ -webkit-transform: scale(1)
696
+ }
697
+ }
698
+
699
+ @keyframes animatezoom {
700
+ from {
701
+ transform: scale(0)
702
+ }
703
+
704
+ to {
705
+ transform: scale(1)
706
+ }
707
+ }
708
+
709
+ /* Change styles for span and cancel button on extra small screens */
710
+ @media screen and (max-width: 300px) {
711
+ span.psw {
712
+ display: block;
713
+ float: none;
714
+ }
715
+
716
+ .cancelbtn {
717
+ width: 100%;
718
+ }
719
+ }
720
+ </style>
721
+ </head>
722
+ <body onload="iniciaPagina();">
723
+ <title>Hello</title>
724
+
725
+
726
+ <!--Add buttons to initiate auth sequence and sign out
727
+ <button id="authorize_button" style="display: none;">Authorize</button>
728
+ <button id="signout_button" style="display: none;">Sign Out</button>
729
+ -->
730
+
731
+ <script type="text/javascript">
732
+ // Client ID and API key from the Developer Console
733
+ var CLIENT_ID = '346985849712-4diehepugvj39n4e3ednr25qieekkmen.apps.googleusercontent.com'; //'392646183283-5f9h5jgsll9hfcb46mlfplu57vtmhaa0.apps.googleusercontent.com';
734
+ var API_KEY = 'AIzaSyDGpegS1TV-7moMp5dKz-BEtt6bA864h_4';//'AIzaSyASaqrMk2sPLTnXsW8fjCcTvAsagc28DhA';
735
+
736
+
737
+ // Array of API discovery doc URLs for APIs used by the quickstart
738
+ var DISCOVERY_DOCS = ["https://sheets.googleapis.com/$discovery/rest?version=v4"];
739
+
740
+ // Authorization scopes required by the API; multiple scopes can be
741
+ // included, separated by spaces.
742
+ var SCOPES = "https://www.googleapis.com/auth/spreadsheets.readonly";
743
+
744
+ // var authorizeButton = document.getElementById('authorize_button');
745
+ //var signoutButton = document.getElementById('signout_button');
746
+
747
+ /**
748
+ * On load, called to load the auth2 library and API client library.
749
+ */
750
+
751
+ function storeLogin(name)
752
+ {
753
+ setCookieh("LOGIN",name,10);
754
+ }
755
+
756
+ function loadLogin()
757
+ {
758
+ var name = getCookieh("LOGIN");
759
+ return name;
760
+ }
761
+
762
+ function setCookieh(name,value,days) {
763
+ /* var expires = "";
764
+ if (days) {
765
+ var date = new Date();
766
+ date.setTime(date.getTime() + (days*24*60*60*1000));
767
+ expires = "; expires=" + date.toUTCString();
768
+ }
769
+ document.cookie = name + "=" + (value || "") + expires + "; path=/";*/
770
+ window.localStorage.setItem(name, value);
771
+ }
772
+
773
+ function getCookieh(name) {
774
+ /* var nameEQ = name + "=";
775
+ var ca = document.cookie.split(';');
776
+ for(var i=0;i < ca.length;i++) {
777
+ var c = ca[i];
778
+ while (c.charAt(0)==' ') c = c.substring(1,c.length);
779
+ if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
780
+ }
781
+ return null; */
782
+
783
+ return window.localStorage.getItem(name);
784
+ }
785
+
786
+ function sleeph(time) {
787
+ return new Promise((resolve) => setTimeout(resolve, time));
788
+ }
789
+
790
+
791
+ function handleClientLoad() {
792
+ // document.getElementById("myLogin").innerHTML = "AGUARDE...";
793
+ sleeph(100).then(() => {
794
+
795
+
796
+ document.getElementById("conteudo").style.display = "flex";
797
+ var name=loadLogin();
798
+ if((!name) || (name=="LOGIN"))
799
+ {
800
+ waitLogin();
801
+ }
802
+ else
803
+ {
804
+ waitLogout(name);
805
+ }
806
+ });
807
+ }
808
+
809
+ function SignOUT()
810
+ {
811
+ var name = gapi.auth2.getAuthInstance().currentUser.get();
812
+ if(name.getBasicProfile())
813
+ {
814
+ var logname = name.getBasicProfile().getName() + " ( " + name.getBasicProfile().getEmail() + " )";
815
+ logout(logname);
816
+ }
817
+ else
818
+ {
819
+ var logname = loadLogin();
820
+ logout(logname);
821
+ }
822
+
823
+ gapi.auth2.getAuthInstance().signOut();
824
+ gapi.auth2.getAuthInstance().disconnect();
825
+ }
826
+
827
+ /**
828
+ * Initializes the API client library and sets up sign-in state
829
+ * listeners.
830
+ */
831
+ function initClient() {
832
+ gapi.client.init({
833
+ apiKey: API_KEY,
834
+ clientId: CLIENT_ID,
835
+ discoveryDocs: DISCOVERY_DOCS,
836
+ scope: SCOPES
837
+ }).then(function () {
838
+ // Listen for sign-in state changes.
839
+ gapi.auth2.getAuthInstance().isSignedIn.listen(updateSigninStatus);
840
+
841
+ // Handle the initial sign-in state.
842
+ updateSigninStatus(gapi.auth2.getAuthInstance().isSignedIn.get());
843
+ //authorizeButton.onclick = handleAuthClick;
844
+ // signoutButton.onclick = handleSignoutClick;
845
+ }, function(error) {
846
+ waitLogin();
847
+ alert(error.message);
848
+ });
849
+ }
850
+
851
+ function initClientSigIn() {
852
+ gapi.client.init({
853
+ apiKey: API_KEY,
854
+ clientId: CLIENT_ID,
855
+ discoveryDocs: DISCOVERY_DOCS,
856
+ scope: SCOPES
857
+ }).then(function () {
858
+ // Listen for sign-in state changes.
859
+ gapi.auth2.getAuthInstance().isSignedIn.listen(updateSigninStatus);
860
+
861
+ // Handle the initial sign-in state.
862
+ updateSigninStatus(gapi.auth2.getAuthInstance().isSignedIn.get());
863
+ gapi.auth2.getAuthInstance().signIn();
864
+
865
+ }, function(error) {
866
+ waitLogin();
867
+ alert(error.message);
868
+ });
869
+ }
870
+
871
+ function initClientSigOut() {
872
+ gapi.client.init({
873
+ apiKey: API_KEY,
874
+ clientId: CLIENT_ID,
875
+ discoveryDocs: DISCOVERY_DOCS,
876
+ scope: SCOPES
877
+ }).then(function () {
878
+ // Listen for sign-in state changes.
879
+ gapi.auth2.getAuthInstance().isSignedIn.listen(updateSigninStatus);
880
+
881
+ // Handle the initial sign-in state.
882
+ // updateSigninStatus(gapi.auth2.getAuthInstance().isSignedIn.get());
883
+ SignOUT();
884
+ waitLogin();
885
+ }, function(error) {
886
+ waitLogin();
887
+ alert(error.message);
888
+ });
889
+ }
890
+
891
+ /**
892
+ * Called when the signed in status changes, to update the UI
893
+ * appropriately. After a sign-in, the API is called.
894
+ */
895
+ function updateSigninStatus(isSignedIn) {
896
+ if (isSignedIn) {
897
+ //authorizeButton.style.display = 'none';
898
+ //signoutButton.style.display = 'block';
899
+
900
+
901
+ listMajors();
902
+ } else {
903
+ //authorizeButton.style.display = 'block';
904
+ //signoutButton.style.display = 'none';
905
+ waitLogin();
906
+ }
907
+ }
908
+
909
+ /**
910
+ * Sign in the user upon button click.
911
+ */
912
+ var init=0;
913
+ function handleAuthClick(event) {
914
+ document.getElementById("myLogin").innerHTML = "AGUARDE...";
915
+ if(init==0)
916
+ {
917
+ gapi.load('client:auth2', initClientSigIn);
918
+ init=1;
919
+ }
920
+ else
921
+ gapi.auth2.getAuthInstance().signIn();
922
+ }
923
+
924
+ function waitLogin()
925
+ {
926
+ document.getElementById("conteudo").style.display = "none";
927
+ document.getElementById("listaclientes").style.display = "none";
928
+ // document.getElementById("ferramentas").style.display = "none";
929
+ document.getElementById("Fila").style.display = "none";
930
+ document.getElementById("operacao").style.display = "none";
931
+ document.getElementById("viewList").style.display = "none";
932
+ document.getElementById("portal").style.display = "flex";
933
+ document.getElementById("myLogin").innerHTML = "LOGIN";
934
+ document.getElementById("myLoginS").innerHTML = "LOGIN";
935
+ var obj = document.getElementById("myLoginS");
936
+ obj.setAttribute('href', "javascript:handleAuthClick(0);");
937
+ document.getElementById("Fila").setAttribute('onclick', "document.getElementById('ocoModal').style.display = 'none'; javascript:void(0);");
938
+ storeLogin("LOGIN");
939
+ }
940
+
941
+ function waitLogout(logname) {
942
+ document.getElementById("conteudo").style.display = "flex";
943
+ document.getElementById("listaclientes").style.display = "inline";
944
+ // document.getElementById("ferramentas").style.display = "inline";
945
+ document.getElementById("Fila").style.display = "flex";
946
+ document.getElementById("operacao").style.display = "flex";
947
+ document.getElementById("viewList").style.display = "inline";
948
+ document.getElementById("portal").style.display = "none";
949
+ document.getElementById("myLogin").innerHTML = "LOGOFF";
950
+ var obj = document.getElementById("myLoginS");
951
+ obj.setAttribute('href', "javascript:handleSignoutClick(0);");
952
+ document.getElementById("Fila").setAttribute('onclick', "getVideoOcorrencia();");
953
+ // var name = gapi.auth2.getAuthInstance().currentUser.get();
954
+ // var logname = name.getBasicProfile().getName() + " ( " + name.getBasicProfile().getEmail() + " )";
955
+ //login(logname);
956
+ document.getElementById("myLogin").innerHTML = logname; // Qt.Au = email , Qt.Bd= fullname, Qt.zU=lastname, Qt.zW=firstname.
957
+ var clip=logname.indexOf("(");
958
+ document.getElementById("myLoginS").innerHTML = logname.substring(0,clip);
959
+ storeLogin(logname);
960
+ }
961
+
962
+ /**
963
+ * Sign out the user upon button click.
964
+ */
965
+ function handleSignoutClick(event) {
966
+
967
+ var x;
968
+ var r = confirm("Deseja finalizar a sessao ?");
969
+ if (r == true) {
970
+
971
+ document.getElementById("myLogin").innerHTML = "AGUARDE...";
972
+ gapi.load('client:auth2', initClientSigOut);
973
+ init=1;
974
+ }
975
+
976
+ }
977
+
978
+ /**
979
+ * Append a pre element to the body containing the given message
980
+ * as its text node. Used to display the results of the API call.
981
+ *
982
+ * @param {string} message Text to be placed in pre element.
983
+ */
984
+ function appendPre(message) {
985
+ //var pre = document.getElementById('content');
986
+ // var textContent = document.createTextNode(message + '\n');
987
+ document.body.innerHTML = message.trim();
988
+ //pre.appendChild(message);
989
+ }
990
+
991
+ /**
992
+ * Print the names and majors of students in a sample spreadsheet:
993
+ * https://docs.google.com/spreadsheets/d/1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms/edit
994
+ */
995
+ function listMajors() {
996
+ gapi.client.sheets.spreadsheets.values.get({
997
+ spreadsheetId: '1edERX6z500r_PzovDi0zuRxU_wKrBGxZlTAPDWKZKEY', // '1PIAQ9qDorLJ99SjXmtx_OsT_aSI2_oumHw4ukgqwQos',
998
+ range: 'PESSOAS!A1:N23',
999
+ }).then(function(response) {
1000
+ var name = gapi.auth2.getAuthInstance().currentUser.get();
1001
+ var logname = name.getBasicProfile().getName() + " ( " + name.getBasicProfile().getEmail() + " )";
1002
+ waitLogout(logname);
1003
+ }, function(response) {
1004
+ // appendPre('Error: ' + response.result.error.message);
1005
+ // nao tem acesso desconecta
1006
+ waitLogin();
1007
+ gapi.auth2.getAuthInstance().signOut();
1008
+ gapi.auth2.getAuthInstance().disconnect();
1009
+ alert("ACESSO NEGADO!")
1010
+ });
1011
+ }
1012
+
1013
+ </script>
1014
+
1015
+ <script async defer src="https://apis.google.com/js/api.js"
1016
+ onload="this.onload=function(){};handleClientLoad()"
1017
+ onreadystatechange="if (this.readyState === 'complete') this.onload()">
1018
+ </script>
1019
+ <div class="tudo">
1020
+
1021
+ <div id="mySidenav" class="sidenav">
1022
+ <a href="javascript:void(0)" class="closebtn" onclick="closeNav()">&times;</a>
1023
+
1024
+ <a href="javascript:setMosaico();" id="mosaico">Mosaico</a>
1025
+ <!--a href="javascript:popupwindow('https://datastudio.google.com/reporting/9aefeac4-1d0d-47c4-b5cf-66f49d41c4f2/page/p_2yjwggbisc', 'RESUMO', screen.width/1.5, screen.height/1.5);" id="dash">Dashboard</a-->
1026
+ <a href="javascript:setDash();" id="dash">Operacao</a>
1027
+ <!--a href="javascript:window.open('https://datastudio.google.com/reporting/9aefeac4-1d0d-47c4-b5cf-66f49d41c4f2/page/p_2yjwggbisc', '_blank').focus();" id="dash">Operacao</a-->
1028
+ <a href="javascript:popupwindow('/visualizacao','VISUALIZACAO', screen.width/1, screen.height/1);"> Visualizacao</a>
1029
+ <!--a href="javascript:popupwindow('/programacao?id=1','PROGRAMACAO', screen.width/2, screen.height/2);"> Programacao</a-->
1030
+ <!--a href="javascript:setCercaVirtual()" id="conf">Cerca Virtual</a-->
1031
+ <!--a href="javascript:popupwindow('https://www.appsheet.com/start/8ec6ba07-1f60-4525-87a4-bd3208dfb0b7', 'CONFIGURACAO', screen.width/1.5, screen.height/1.5);" id="conf">Configuracao</a-->
1032
+ <a href="javascript:setConfig()" id="conf">Configuracao</a>
1033
+ <a href="javascript:setConfigCheckList()" id="conf">Check-List</a>
1034
+ <a href="javascript:setTelegram()" id="conf">Telegram</a>
1035
+ <a href="javascript:setSimulador()" id="conf">Simulador</a>
1036
+ <a href="" id="conf">Bloqueios</a>
1037
+ <!--a href="javascript:popupwindow('http://painel.atualli.com/recogimg', 'SIMULADOR', screen.width/1.5, screen.height/1.5);" id="conf">Simulador</a-->
1038
+ <a href="javascript:setResetMosaico();" id="reset">Reset Mosaico</a>
1039
+ </div>
1040
+
1041
+ <div class="topnav" id="myTopnav">
1042
+ <span style="background-color: #000000;color: blue;float:left;font-size:40px;cursor:pointer" onclick="openNav()">&#9776; </span>
1043
+ <img title = "logo" src="getresource?r=alogo.png" align="left">
1044
+ <!--a href="#news" onclick="javascript:void(0);" id="Fila">Fila</a-->
1045
+ <div class="buttondiv">
1046
+ <button class="buttonfila" id="Fila">Fila</button>
1047
+ </div>
1048
+ <div class="dropdown" id="listaclientes">
1049
+ <button class="dropbtn" id="clientelabel">
1050
+ <?CLIENTE?>
1051
+ </button>
1052
+ <div class="dropdown-content">
1053
+ <?LISTA?>
1054
+ </div>
1055
+ </div>
1056
+
1057
+ <!--a href="javascript:void(0);" id="clientelabel">(MULTILASER-MANAUS-DVR-1)</a-->
1058
+
1059
+ <!--div class="dropdown" id="ferramentas">
1060
+ <button class="dropbtn">
1061
+ Ferramentas
1062
+ <i class="fa fa-caret-down"></i>
1063
+ </button>
1064
+ <div class="dropdown-content">
1065
+ <a href="javascript:resetMosaico(0);" id="reset">RESET MOSAICO</a>
1066
+ <a href="javascript:popupwindow('https://datastudio.google.com/reporting/9aefeac4-1d0d-47c4-b5cf-66f49d41c4f2', 'RESUMO', screen.width/1.5, screen.height/1.5);" id="dash">Dashboard</a>
1067
+ <a href="javascript:popupwindow('/visualizacao','VISUALIZACAO', screen.width/1, screen.height/1);"> Visualizacao</a>
1068
+ <a href="javascript:popupwindow('/programacao?id=1','PROGRAMACAO', screen.width/2, screen.height/2);"> Programacao</a>
1069
+ <a href="javascript:popupwindow('https://www.appsheet.com/start/8ec6ba07-1f60-4525-87a4-bd3208dfb0b7', 'CONFIGURACAO', screen.width/1.5, screen.height/1.5);" id="conf">Configuracao</a>
1070
+ <a href="javascript:popupwindow('http://painel.atualli.com/recogimg', 'SIMULADOR', screen.width/1.5, screen.height/1.5);" id="conf">Simulador</a>
1071
+ </div>
1072
+ </div-->
1073
+ <!--a href="javascript:handleAuthClick(0);" id="myLogin"></a-->
1074
+ <!--div class="dropdown" id="loginlist">
1075
+ <button class="dropbtn" id="myLogin">
1076
+ LOGIN
1077
+ <i class="fa fa-caret-down"></i>
1078
+ </button>
1079
+ <div class="dropdown-content">
1080
+ <a href="javascript:selecionaOperador('LOGOFF');">LOGIN</a>
1081
+ <a href="javascript:selecionaOperador('PAUSAR');">PAUSAR</a>
1082
+ <a href="javascript:selecionaOperador('LOGIN');">LOGOFF</a>
1083
+ </div>
1084
+ </div-->
1085
+ <!--a href="javascript:setoperacao(0);" id="operacao">AGUARDE...</a-->
1086
+ <div class="buttondiv">
1087
+ <button onclick="javascript:setoperacao(0);" class="buttonwork" id="operacao">>AGUARDE...</button>
1088
+ </div>
1089
+ <!--a href="javascript:void(0);" class="icon" onclick="myFunctionNav()">
1090
+ <i class="fa fa-bars"></i>
1091
+ </a-->
1092
+ <div class="dropdown" id="viewList">
1093
+ <button class="dropbtn">
1094
+ VIEW
1095
+ <i class="fa fa-caret-down"></i>
1096
+ </button>
1097
+ <div class="dropdown-content">
1098
+ <a href="javascript:changeGrade('column7x');">7x</a>
1099
+ <a href="javascript:changeGrade('column6x');">6x</a>
1100
+ <a href="javascript:changeGrade('column5x');">5x</a>
1101
+ <a href="javascript:changeGrade('column');">4x</a>
1102
+ <a href="javascript:changeGrade('column3x');">3x</a>
1103
+ <a href="javascript:changeGrade('Auto');">Auto</a>
1104
+ </div>
1105
+ </div>
1106
+
1107
+ <img title = "avatar" id="myavatar" style="width:3%" src="getresource?r=anonymus.jpg" align="left">
1108
+ <a href="" style="display:none" id="myLogin"></a>
1109
+ <a href="javascript:handleAuthClick(0);" id="myLoginS"></a>
1110
+ <a href="javascript:void(0);" class="icon" onclick="NavResponsive()">
1111
+ <i class="fa fa-bars"></i>
1112
+ </a>
1113
+ </div>
1114
+
1115
+ <div class="rowblock" id="portal">
1116
+ <tr></tr>
1117
+ </div>
1118
+
1119
+ <div style="display:none" id="listocorrencias">
1120
+ <tr>
1121
+ <iframe id="iframelistocorrencias" src="" frameborder="0" style="position:absolute; top:7%; left:0; width:100%; height:100%; border:0" allowfullscreen></iframe>
1122
+ </tr>
1123
+ </div>
1124
+
1125
+ <div style="display:none" id="configuracao">
1126
+ <tr>
1127
+ <iframe id="iframeconfiguracao" src="" frameborder="0" style="position:absolute; top:7%; left:0; width:80%; height:100%; border:0" allowfullscreen></iframe>
1128
+ </tr>
1129
+ </div>
1130
+
1131
+ <div style="display:none" id="configuracaochecklist">
1132
+ <tr>
1133
+ <iframe id="iframeconfiguracaochecklist" src="" frameborder="0" style="position:absolute; top:7%; left:0; width:100%; height:100%; border:0" allowfullscreen></iframe>
1134
+ </tr>
1135
+ </div>
1136
+
1137
+ <div style="display:none" id="cercavirtual">
1138
+ <tr>
1139
+ <iframe id="iframecercavirtual" src="" frameborder="0" style="position:absolute; top:7%; left:80%; width:20%; height:100%; border:0" allowfullscreen></iframe>
1140
+ </tr>
1141
+ </div>
1142
+
1143
+ <div style="display:none" id="simulador">
1144
+ <tr>
1145
+ <iframe id="iframesimulador" src="" frameborder="0" style="position:absolute; top:7%; left:0; width:100%; height:100%; border:0" allowfullscreen></iframe>
1146
+ </tr>
1147
+ </div>
1148
+
1149
+
1150
+
1151
+ <div class="row" id="conteudo">
1152
+ <tr>
1153
+ <div id="ocoModal" class="modal">
1154
+
1155
+ <form class="modal-content animate" id="formOcorrencia" action="javascript:gravaOcorrencia()" method="get">
1156
+
1157
+ <div class="imgcontainer">
1158
+
1159
+ <div style="width:100%">
1160
+ <p><b>TRATAMENTO DE OCORRENCIA</b></p> <span onclick="document.getElementById('ocoModal').style.display = 'none'" class="close" title="Close Modal">&times;</span>
1161
+ </div>
1162
+
1163
+ <div class="imgchild">
1164
+ <p><b>Gravacao</b></p>
1165
+ <video id="videoocorrencia" preload="metadata" autoplay loop muted playsinline width=100% height=77% controls src="getresource?r=atualli.png&" type="video/mp4"> </video>
1166
+
1167
+ </div>
1168
+ <div class="imgchild">
1169
+ <p><b>Ao Vivo</b></p>
1170
+ <img src="getresource?r=atualli.png&" onerror="errorloadimg(this)" id="aovivo" class="refrx" alt="" style="width:100%">
1171
+ </div>
1172
+ </div>
1173
+
1174
+ <div class="container" style="background-color:#f1f1f1">
1175
+
1176
+ <label for="rot"><b>.</b></label></br>
1177
+
1178
+ <label id="IdOcoView" for="rot"><b>ID: </b></label></br>
1179
+
1180
+
1181
+
1182
+ <label id="IdCliente" for="rot"><b>Cliente: </b></label></br>
1183
+
1184
+
1185
+
1186
+ <label id="Operador" for="rot"><b>Operador: </b></label></br>
1187
+
1188
+
1189
+
1190
+ <label id="DataOcorrencia" for="rot"><b>Data: </b></label></br>
1191
+
1192
+
1193
+
1194
+ <label id="NomeRoteiro" for="rot"><b>Roteiro: </b></label></br>
1195
+
1196
+
1197
+ <!--label id="videoOco" for="rot"><b>Video: </b></label></br-->
1198
+ </div>
1199
+
1200
+ <div class="container">
1201
+
1202
+ <label id="pergunta1" for="uname"><b>Procedimento</b></label>
1203
+ <input type="text" id="procedimento" placeholder="Texto livre" name="procedimento" readonly style="background-color:#f1f1f1">
1204
+
1205
+ <label id="pergunta2" for="psw"><b>Motivo</b></label>
1206
+ <input type="text" id="template" placeholder="Texto livre" name="template" required onkeydown="return (event.keyCode!=13);">
1207
+ <!--textarea placeholder="Texto livre" rows="5" cols="10" id="template" style = "font-size: 12pt; width:100%; margin:5px 0;padding:3px" ></textarea-->
1208
+ <label id="pergunta3" for="psw"><b>Audio</b></label>
1209
+ <input type="file" id="audio" name="audio" accept="audio/*" multiple>
1210
+ <button type="button" id="loadLastAudio" onclick="javascript:getUltimoAudio()">Carrega Ultimos Audios</button>
1211
+ <select id="listaAudios" class="select_audio" style="background-color:#f1f1f1" name="formal" onchange="javascript:selAudio(this)"></select>
1212
+ </br></br>
1213
+ <a href="" id="lastaudio"></a>
1214
+ <input type="hidden" name="cmd" id="GravaOcorrencia" value="">
1215
+ <input type="hidden" name="idOco" id="idOco" value="">
1216
+ <input type="hidden" name="idCamera" id="idCamera" value="">
1217
+ <input type="hidden" name="nomeOperador" id="nomeOperador" value="">
1218
+ <input type="hidden" name="idChat" id="idChat" value="">
1219
+ <input type="hidden" name="cliente" id="cliente" value="">
1220
+ <input type="hidden" name="roteiro" id="roteiro" value="">
1221
+
1222
+ <button type="submit" style="display:none" id="gravar" class="button">Grava</button>
1223
+ <button type="button" style="display:none" id="descartar" onclick="javascript:descartaOcorrencia(0)" class="cancelbtn">Descartar</button>
1224
+ <button type="button" style="display:none" id="desbloqueio" onclick="" class="cancelbtn">Desbloqueio</button>
1225
+ <select class="select" id="listaContatos" style="background-color:#f1f1f1" name="formal" onchange="javascript:handleSelect(this)"></select>
1226
+
1227
+ <script type="text/javascript">
1228
+ function handleSelect(elm)
1229
+ {
1230
+ if(elm.value.length>1)
1231
+ window.location = elm.value;
1232
+ }
1233
+ </script>
1234
+ </div>
1235
+
1236
+ </form>
1237
+ </div>
1238
+
1239
+ <?BODY?>
1240
+
1241
+ </tr>
1242
+ </div>
1243
+ </div>
1244
+ <script async">
1245
+
1246
+ // setInterval("gogo();", 1500);
1247
+ var to = 1; // 2; //3;
1248
+ var first = 0;
1249
+ var idx = 0;
1250
+ var tamFila = 0;
1251
+ var myFila = 0;
1252
+
1253
+ var onlyView = 0;
1254
+
1255
+ // Get the modal
1256
+ //var modalOcorrencia = document.getElementById('ocoModal');
1257
+
1258
+ // When the user clicks anywhere outside of the modal, close it
1259
+ //window.onclick = function (event) {
1260
+ // if (event.target == modalOcorrencia) {
1261
+ // modalOcorrencia.style.display = "none";
1262
+ // }
1263
+ //}
1264
+
1265
+
1266
+ function NavResponsive() {
1267
+ var x = document.getElementById("myTopnav");
1268
+ if (x.className === "topnav") {
1269
+ x.className += " responsive";
1270
+ } else {
1271
+ x.className = "topnav";
1272
+ }
1273
+ }
1274
+ function setTelegram() {
1275
+
1276
+ popupwindow('https://web.telegram.org/z','TELEGRAM', screen.width/4, screen.height)
1277
+ closeNav();
1278
+ }
1279
+
1280
+ function resetAllView() {
1281
+ document.getElementById("configuracao").style.display = "none";
1282
+ document.getElementById("configuracaochecklist").style.display = "none";
1283
+ document.getElementById("conteudo").style.display = "none";
1284
+ document.getElementById("listocorrencias").style.display = "none";
1285
+ document.getElementById("simulador").style.display = "none";
1286
+ document.getElementById("cercavirtual").style.display = "none";
1287
+ }
1288
+
1289
+ function setCercaVirtual()
1290
+ {
1291
+ // resetAllView();
1292
+ var objAovivo = document.getElementById("iframecercavirtual");
1293
+ var osrc= objAovivo.getAttribute('src');
1294
+ if ( osrc=="")
1295
+ {
1296
+
1297
+
1298
+ objAovivo.setAttribute('src', "/programacao?id=1");
1299
+ }
1300
+ document.getElementById("cercavirtual").style.display = "flex";
1301
+ closeNav();
1302
+
1303
+ }
1304
+
1305
+ function setDash() {
1306
+
1307
+ /* resetAllView();
1308
+ var objAovivo = document.getElementById("iframelistocorrencias");
1309
+ var osrc= objAovivo.getAttribute('src');
1310
+ if ( osrc=="")
1311
+ {
1312
+
1313
+
1314
+ objAovivo.setAttribute('src', "https://datastudio.google.com/embed/reporting/9aefeac4-1d0d-47c4-b5cf-66f49d41c4f2/page/p_2yjwggbisc");
1315
+ }
1316
+ document.getElementById("listocorrencias").style.display = "flex"; */
1317
+
1318
+ popupwindow('https://datastudio.google.com/reporting/9aefeac4-1d0d-47c4-b5cf-66f49d41c4f2/page/p_2yjwggbisc', 'RESUMO', screen.width/1, screen.height/1);
1319
+ closeNav();
1320
+
1321
+ }
1322
+
1323
+ function setMosaico() {
1324
+ resetAllView();
1325
+ document.getElementById("conteudo").style.display = "flex";
1326
+ closeNav();
1327
+
1328
+ }
1329
+
1330
+ function setResetMosaico()
1331
+ {
1332
+ setMosaico();
1333
+ resetMosaico(0);
1334
+
1335
+ }
1336
+
1337
+ function setSimulador()
1338
+ {
1339
+
1340
+ resetAllView();
1341
+
1342
+ var objAovivo = document.getElementById("iframesimulador");
1343
+ var osrc= objAovivo.getAttribute('src');
1344
+ if ( osrc=="")
1345
+ {
1346
+
1347
+ objAovivo.setAttribute('src', "http://painel.atualli.com/recogimg");
1348
+ }
1349
+ document.getElementById("simulador").style.display = "flex";
1350
+ closeNav();
1351
+ }
1352
+
1353
+ function setConfig() {
1354
+
1355
+ resetAllView();
1356
+ var objAovivo = document.getElementById("iframeconfiguracao");
1357
+ var osrc= objAovivo.getAttribute('src');
1358
+ if ( osrc=="")
1359
+ {
1360
+ // objAovivo.setAttribute('src', "https://www.appsheet.com/start/8ec6ba07-1f60-4525-87a4-bd3208dfb0b7#view=PROGRAMACAO");
1361
+ objAovivo.setAttribute('src', "https://www.appsheet.com/start/99e79f6b-62fe-44c8-bab4-b4b9de10cd7d#view=PROGRAMACAO");
1362
+ }
1363
+ document.getElementById("configuracao").style.display = "flex";
1364
+
1365
+ setCercaVirtual();
1366
+ closeNav();
1367
+
1368
+ }
1369
+
1370
+ function setConfigCheckList() {
1371
+
1372
+ resetAllView();
1373
+ var objAovivo = document.getElementById("iframeconfiguracaochecklist");
1374
+ var osrc= objAovivo.getAttribute('src');
1375
+ if ( osrc=="")
1376
+ {
1377
+ // objAovivo.setAttribute('src', "https://www.appsheet.com/start/8ec6ba07-1f60-4525-87a4-bd3208dfb0b7#view=PROGRAMACAO");
1378
+ objAovivo.setAttribute('src', "https://www.appsheet.com/start/54218ac3-e0db-414a-b3e5-1fb46540b5c4#view=PROGRAMACAO_CHECKLIST");
1379
+ }
1380
+ document.getElementById("configuracaochecklist").style.display = "flex";
1381
+
1382
+ closeNav();
1383
+
1384
+ }
1385
+
1386
+ function openNav() {
1387
+ document.getElementById("mySidenav").style.width = "250px";
1388
+ }
1389
+
1390
+ function closeNav() {
1391
+ document.getElementById("mySidenav").style.width = "0";
1392
+ }
1393
+
1394
+ var atualColumn="column";
1395
+ function changeGrade(novo)
1396
+ {
1397
+
1398
+ var lista = document.getElementsByClassName(atualColumn);
1399
+ var len=lista.length;
1400
+
1401
+ var newClass=novo;
1402
+ if(novo=="Auto")
1403
+ { newClass="column3x";
1404
+ if (len>=8) newClass="column";
1405
+ if (len>=16) newClass="column5x";
1406
+ if (len>=24) newClass="column6x";
1407
+ if (len>=31) newClass="column7x";
1408
+ }
1409
+
1410
+ for (var i = 0; i < len; i ++)
1411
+ {
1412
+ lista[0].className = newClass;
1413
+ }
1414
+ atualColumn=newClass;
1415
+ let cliente=document.getElementById("clientelabel").innerHTML;
1416
+ cliente=cliente.trim();
1417
+ setCookie("GRADE-"+cliente,novo,10);
1418
+ }
1419
+
1420
+ function drawOperador(name) {
1421
+
1422
+ document.getElementById("myLogin").innerHTML = name;
1423
+ }
1424
+
1425
+ function selecionaOperador(name) {
1426
+
1427
+ var atual= getCookie("LOGIN");
1428
+
1429
+ if (name!=atual)
1430
+ {
1431
+ if((name.length>0) && (name!="LOGOFF")&& (name!="LOGIN"))
1432
+ login(name);
1433
+ if(atual.length>0)
1434
+ logout(atual);
1435
+ }
1436
+ if(!name) name="LOGIN";
1437
+ setCookie("LOGIN",name,10);
1438
+ drawOperador(name);
1439
+ }
1440
+
1441
+
1442
+ function setCookie(name,value,days) {
1443
+ /* var expires = "";
1444
+ if (days) {
1445
+ var date = new Date();
1446
+ date.setTime(date.getTime() + (days*24*60*60*1000));
1447
+ expires = "; expires=" + date.toUTCString();
1448
+ }
1449
+ document.cookie = name + "=" + (value || "") + expires + "; path=/"; */
1450
+ window.localStorage.setItem(name,value);
1451
+ }
1452
+ function getCookie(name) {
1453
+ /* var nameEQ = name + "=";
1454
+ var ca = document.cookie.split(';');
1455
+ for(var i=0;i < ca.length;i++) {
1456
+ var c = ca[i];
1457
+ while (c.charAt(0)==' ') c = c.substring(1,c.length);
1458
+ if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
1459
+ }
1460
+ return null; */
1461
+ return window.localStorage.getItem(name);
1462
+ }
1463
+ function eraseCookie(name) {
1464
+ document.cookie = name +'=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;';
1465
+ }
1466
+
1467
+ function openForm() {
1468
+ document.getElementById("myForm").style.display = "block";
1469
+ }
1470
+
1471
+ function closeForm() {
1472
+ document.getElementById("myForm").style.display = "none";
1473
+ }
1474
+
1475
+ function resetFormOcorrencia()
1476
+ {
1477
+ var obj = document.getElementById("videoocorrencia");
1478
+
1479
+ obj.setAttribute('src', "");
1480
+ var objproc = document.getElementById("procedimento");
1481
+ objproc.setAttribute('value', "");
1482
+
1483
+ var objtmp = document.getElementById("template");
1484
+ objtmp.setAttribute('value', "");
1485
+
1486
+ // document.getElementById("videoOco").innerHTML = "<b> Video: Aguarde...</b>";
1487
+ document.getElementById("IdCliente").innerHTML = "<b> Cliente: Aguarde...</b>";
1488
+ document.getElementById("IdOcoView").innerHTML = "<b> ID: Aguarde...</b>";
1489
+ document.getElementById("NomeRoteiro").innerHTML = "<b> Roteiro: Aguarde...</b>";
1490
+ document.getElementById("DataOcorrencia").innerHTML = "<b> Data: Aguarde... </b>";
1491
+ document.getElementById("Operador").innerHTML = "<b> Operador: Aguarde... </b>";
1492
+ var objidOco = document.getElementById("idOco");
1493
+ objidOco.setAttribute('value', "");
1494
+ var objnOp = document.getElementById("nomeOperador");
1495
+ objnOp.setAttribute('value', "");
1496
+ var objnidChat = document.getElementById("idChat");
1497
+ objnidChat.setAttribute('value', "");
1498
+
1499
+ document.getElementById("desbloqueio").style.display = 'none'
1500
+ document.getElementById("gravar").style.display = 'none'
1501
+ document.getElementById("descartar").style.display = 'none'
1502
+
1503
+ document.getElementById("gravar").innerHTML = "Gravar";
1504
+ document.getElementById("gravar").disabled = false;
1505
+
1506
+ document.getElementById("descartar").innerHTML = "Descartar";
1507
+ document.getElementById("descartar").disabled = false;
1508
+
1509
+ var objAovivo = document.getElementById("aovivo");
1510
+ objAovivo.setAttribute('src', '');
1511
+ objAovivo.setAttribute('class', 'refrx');
1512
+
1513
+ document.getElementById("audio").value = "";
1514
+ document.getElementById("lastaudio").innerHTML = "";
1515
+ document.getElementById("listaAudios").innerHTML = "";
1516
+
1517
+ }
1518
+
1519
+ function popupwindow(url, title, w, h) {
1520
+ var left = (screen.width / 2) - (w / 2);
1521
+ var top = (screen.height / 2) - (h / 2);
1522
+ return window.open(url, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=' + w + ', height=' + h + ', top=' + top + ', left=' + left);
1523
+ }
1524
+
1525
+ function openurl(url)
1526
+ {
1527
+ var urls = url;
1528
+ if (onlyView==1)
1529
+ urls = urls + "?view=true";
1530
+ window.location.replace(urls);
1531
+ // return window.open(urls,'_self');
1532
+ }
1533
+
1534
+ function execDesbloqueio(url)
1535
+ {
1536
+ var xhttp = new XMLHttpRequest();
1537
+ xhttp.onreadystatechange = function () {
1538
+ if (this.readyState == 4 && this.status == 200) {
1539
+ var desbloqueio = document.getElementById("desbloqueio");
1540
+ desbloqueio.innerHTML = this.responseText;
1541
+ }
1542
+ };
1543
+ var desbloqueio = document.getElementById("desbloqueio").innerHTML = "AGUARDE...";
1544
+ xhttp.open("GET", url, true);
1545
+ xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
1546
+ xhttp.send("");
1547
+
1548
+ }
1549
+
1550
+ function sleep(time) {
1551
+ return new Promise((resolve) => setTimeout(resolve, time));
1552
+ }
1553
+
1554
+
1555
+ function getVideoOcorrencia() {
1556
+
1557
+ if (myFila <= 0) return;
1558
+
1559
+
1560
+ resetFormOcorrencia();
1561
+ // Usage!
1562
+ sleep(100).then(() => {
1563
+ // Do something after the sleep!
1564
+ if (myFila <= 0) return;
1565
+
1566
+ // document.getElementById('ocoModal').style.display = 'block';
1567
+ // resetFormOcorrencia();
1568
+
1569
+ /* var audio = new Audio('http://atualli.ddns.net/getresource?r=alarm.ogg');
1570
+ audio.addEventListener('canplaythrough', function () {
1571
+ audio.play();
1572
+ }); */
1573
+
1574
+ document.getElementById("desbloqueio").innerHTML="Desbloqueio";
1575
+ document.getElementById("gravar").innerHTML = "Grava";
1576
+
1577
+ //document.getElementById('ocoModal').style.display = 'block'
1578
+ var xhttp = new XMLHttpRequest();
1579
+ xhttp.onreadystatechange = function () {
1580
+ if (this.readyState == 4 && this.status == 200) {
1581
+
1582
+ if(this.responseText.indexOf("VAZIO") !== -1) return;
1583
+
1584
+ var json = JSON.parse(this.responseText);
1585
+
1586
+ if (json.status == "Manual") {
1587
+
1588
+ document.getElementById('ocoModal').style.display = 'block';
1589
+ resetFormOcorrencia();
1590
+
1591
+ //document.getElementById('ocoModal').style.display = 'block';
1592
+ document.getElementById("descartar").style.display = 'block'
1593
+ document.getElementById("gravar").style.display = 'block'
1594
+
1595
+
1596
+ document.getElementById("desbloqueio").style.display = 'none'
1597
+ var obj = document.getElementById("videoocorrencia");
1598
+
1599
+ obj.setAttribute('src', json.video);
1600
+
1601
+ //document.getElementById("procedimento").innerHTML = "<b>" + json.procedimento + "</b>";
1602
+ document.getElementById("template").innerHTML = json.templat ;
1603
+
1604
+ var objproc = document.getElementById("procedimento");
1605
+ objproc.setAttribute('value', json.procedimento);
1606
+
1607
+ var objtmp = document.getElementById("template");
1608
+ objtmp.setAttribute('value', json.templat);
1609
+
1610
+ var objidChat = document.getElementById("idChat");
1611
+ objidChat.setAttribute('value', json.idchat);
1612
+
1613
+ var objCliente = document.getElementById("cliente");
1614
+ objCliente.setAttribute('value', json.cliente);
1615
+
1616
+ var objRoteiro = document.getElementById("roteiro");
1617
+ objRoteiro.setAttribute('value', json.roteiro);
1618
+
1619
+ var objAovivo = document.getElementById("aovivo");
1620
+ objAovivo.setAttribute('src', json.urlcamera);
1621
+
1622
+
1623
+ // document.getElementById("videoOco").innerHTML = "<b> Video: " + json.video + "</b>";
1624
+ document.getElementById("IdCliente").innerHTML = "<b> Cliente: " + json.cliente + "</b>";
1625
+ document.getElementById("IdOcoView").innerHTML = "<b> ID: " + json.id + "</b>";
1626
+ document.getElementById("NomeRoteiro").innerHTML = "<b> Roteiro: " + json.roteiro + "</b>";
1627
+ document.getElementById("DataOcorrencia").innerHTML = "<b> Data: " + json.data + "</b>";
1628
+
1629
+ if (json.desbloqueio) {
1630
+ var desbloqueio = document.getElementById("desbloqueio");
1631
+ desbloqueio.style.display = 'block'
1632
+ var url = json.desbloqueio;
1633
+ desbloqueio.setAttribute('onclick', "execDesbloqueio('" + url + "')");
1634
+
1635
+ }
1636
+
1637
+ var lista = json.contatos.split(/,| |-/);
1638
+ var options = "<option value=\"\">REALIZAR CONTATO</option>";
1639
+
1640
+ for (var i = 0; i < lista.length; i += 2) {
1641
+ nome = lista[i];
1642
+ telefone = lista[i + 1];
1643
+
1644
+ options += "<option value=\"tel:80" + telefone + "\">Ligar para " + nome + " " + telefone + "</option>";
1645
+ }
1646
+ document.getElementById("listaContatos").innerHTML = options;
1647
+
1648
+ document.getElementById("Operador").innerHTML = "<b> Operador: " + document.getElementById("myLogin").innerHTML + "</b>";
1649
+ var objidOco = document.getElementById("idOco");
1650
+ objidOco.setAttribute('value', json.id);
1651
+ var objnOp = document.getElementById("nomeOperador");
1652
+ objnOp.setAttribute('value', document.getElementById("myLogin").innerHTML);
1653
+
1654
+ //document.getElementById('ocoModal').style.display = 'block';
1655
+ }
1656
+ else {
1657
+ document.getElementById('ocoModal').style.display = 'none';
1658
+ }
1659
+
1660
+ }
1661
+ };
1662
+ // xhttp.open("GET", "https://script.google.com/macros/s/AKfycbziTdRkV1r6WFdUMoaBAugEkywspV6TqhPE8fTQnl2FOZ6Qn2E/exec?cmd=Ocorrencia&operador=" + document.getElementById("myLogin").innerHTML, true);
1663
+ xhttp.open("GET", "getdatalocal?comando=Ocorrencia&operador=" + document.getElementById("myLogin").innerHTML, true);
1664
+ xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
1665
+ xhttp.send("");
1666
+ });
1667
+ }
1668
+
1669
+ const fileInput = document.getElementById('audio');
1670
+ fileInput.onchange = () => {
1671
+ const selectedFile = fileInput.files[0];
1672
+
1673
+ if ((selectedFile) && (selectedFile.name.length > 0))
1674
+ {
1675
+ var dt = new Date();
1676
+ var path = "ftp://192.168.0.10/" + dt.getFullYear() + "/" + String(dt.getMonth() + 1).padStart(2, '0') + "/" + String(dt.getDate()).padStart(2, '0') + "/";
1677
+
1678
+ var saudio = path+selectedFile.name;
1679
+ var saudio = saudio.replace("[1]", "");
1680
+
1681
+ var objAudio = document.getElementById("lastaudio");
1682
+ objAudio.setAttribute('href', saudio);
1683
+
1684
+ document.getElementById("lastaudio").innerHTML = saudio;
1685
+
1686
+ }
1687
+ else {
1688
+ document.getElementById("lastaudio").innerHTML = "";
1689
+ }
1690
+ }
1691
+
1692
+ function getUltimoAudio()
1693
+ {
1694
+ var xhttp = new XMLHttpRequest();
1695
+ xhttp.onreadystatechange = function ()
1696
+ {
1697
+ if (this.readyState == 4 && this.status == 200)
1698
+ {
1699
+ var json = JSON.parse(this.responseText);
1700
+
1701
+ var file = json.voips[0].file;
1702
+ var sfile = file.replace("/var/spool/asterisk/monitor", "ftp://192.168.0.10");
1703
+
1704
+ var objAudio = document.getElementById("lastaudio");
1705
+ //objAudio.setAttribute('href', "javascript:testAudio(\"" + sfile + "\")");
1706
+ objAudio.setAttribute('href', sfile);
1707
+
1708
+ document.getElementById("lastaudio").innerHTML = sfile;
1709
+ document.getElementById("loadLastAudio").innerHTML = "Carrega Ultimos Audios";
1710
+
1711
+ var options = "<option value=\"\">Lista Ultimos Audios</option>";
1712
+
1713
+ for (var i = 0; i < json.voips.length; i ++) {
1714
+ var nome = json.voips[i].file;
1715
+ var snome = nome.replace("/var/spool/asterisk/monitor", "ftp://192.168.0.10");
1716
+
1717
+ options += "<option value=\"" + snome + "\">" + snome + "</option>";
1718
+ }
1719
+ document.getElementById("listaAudios").innerHTML = options;
1720
+
1721
+ }
1722
+ }
1723
+ var videoobj = document.getElementById("videoocorrencia");
1724
+ var video = videoobj.getAttribute('src');
1725
+
1726
+ var dvideo = video; // video.replace("http://atualli.ddns.net", "http://localhost:8088"); // video; // apenas para debug local
1727
+
1728
+ document.getElementById("loadLastAudio").innerHTML = "AGUARDE...";
1729
+
1730
+ xhttp.open("GET", dvideo + "&ramal=2002&phone=0", true);
1731
+ xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
1732
+ xhttp.send("");
1733
+ }
1734
+
1735
+ function testAudio(elm)
1736
+ {
1737
+ window.open(elm.value);
1738
+ }
1739
+
1740
+ function selAudio(elm) {
1741
+ if (elm.value.length > 1) {
1742
+
1743
+ var objAudio = document.getElementById("lastaudio");
1744
+ objAudio.setAttribute('href', elm.value);
1745
+
1746
+ document.getElementById("lastaudio").innerHTML = elm.value;
1747
+ }
1748
+ }
1749
+
1750
+ function sendMsgFinal(status)
1751
+ {
1752
+ var xhttp = new XMLHttpRequest();
1753
+
1754
+
1755
+ var videoobj = document.getElementById("videoocorrencia");
1756
+ var video = videoobj.getAttribute('src');
1757
+
1758
+ var objnOp = document.getElementById("nomeOperador");
1759
+ var operador = objnOp.getAttribute('value');
1760
+
1761
+ var idResp2 = document.getElementById("template").value;
1762
+ var idChat = document.getElementById("idChat").value;
1763
+
1764
+ var cliente = document.getElementById("cliente").value;
1765
+
1766
+ var roteiro = document.getElementById("roteiro").value;
1767
+
1768
+ var idOco = document.getElementById("idOco").value;
1769
+
1770
+ // var audio = document.getElementById("audio").value;
1771
+
1772
+ //var dt = new Date();
1773
+ //var path = "ftp://192.168.0.10/" + dt.getFullYear() + "/" + String (dt.getMonth() + 1).padStart(2, '0') + "/" + String (dt.getDate()).padStart(2, '0') + "/";
1774
+
1775
+ // var saudio = audio.replace("fakepath", "SIP\\Recordings");
1776
+ //var saudio = audio.replace("C:\\fakepath\\", path);
1777
+ //var saudio = saudio.replace("[1]", "");
1778
+
1779
+ var saudio = document.getElementById("lastaudio").innerHTML;
1780
+ if (saudio.length > 0)
1781
+ idResp2 = idResp2 + " (AUDIO ANEXADO)";
1782
+
1783
+
1784
+ var dvideo = video; // video.replace("http://atualli.ddns.net", "http://localhost:8088"); // video; // apenas para debug local
1785
+ // var url = dvideo + "&idchat=" + idChat + "&status=" + status + "&idoco=" + idOco + "&motivo=" + cliente + " - " + roteiro + " - " + idResp2 + "&audio=" + saudio;
1786
+ var url = dvideo + "&idchat=" + idChat + "&status=" + status + "&idoco=" + idOco + "&cliente=" + cliente + "&roteiro=" + roteiro + "&motivo=" + idResp2 + "&audio=" + saudio;
1787
+
1788
+ xhttp.open("GET", url, true);
1789
+ xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
1790
+ xhttp.send("");
1791
+ }
1792
+
1793
+ function gravaOcorrencia()
1794
+ {
1795
+ var template = document.getElementById("template").value;
1796
+ if (template.length > 0) {
1797
+ var r = confirm("Deseja realmente salvar a ocorrencia ?");
1798
+ if (r == true) {
1799
+ var xhttp = new XMLHttpRequest();
1800
+ xhttp.onreadystatechange = function () {
1801
+ if (this.readyState == 4 && this.status == 200) {
1802
+
1803
+ var json = JSON.parse(this.responseText);
1804
+
1805
+ sendMsgFinal("grava");
1806
+
1807
+ resetFormOcorrencia();
1808
+
1809
+ document.getElementById('ocoModal').style.display = 'none';
1810
+ alert("OCORRENCIA GRAVADA COM SUCESSO !");
1811
+ document.getElementById("gravar").innerHTML = "Gravar";
1812
+ document.getElementById("gravar").disabled = false;
1813
+
1814
+ }
1815
+
1816
+ };
1817
+
1818
+ document.getElementById("gravar").innerHTML = "Aguarde..";
1819
+ document.getElementById("gravar").disabled = true;
1820
+
1821
+
1822
+ var objidOco = document.getElementById("idOco");
1823
+ var idOco = objidOco.getAttribute('value');
1824
+ var objnOp = document.getElementById("nomeOperador");
1825
+ var operador = objnOp.getAttribute('value');
1826
+ var idResp1 = document.getElementById("procedimento").value;
1827
+ var idResp2 = document.getElementById("template").value;
1828
+ var idChat = document.getElementById("idChat").value;
1829
+
1830
+ // xhttp.open("GET", "https://script.google.com/macros/s/AKfycbziTdRkV1r6WFdUMoaBAugEkywspV6TqhPE8fTQnl2FOZ6Qn2E/exec?cmd=GravaOcorrencia&idOco=" + idOco + "&resposta1=" + idResp1 + "&resposta2=" + idResp2 + "&operador=" + operador, true);
1831
+ xhttp.open("GET", "getdatalocal?comando=GravaOcorrencia&idOco=" + idOco + "&resposta1=" + idResp1 + "&resposta2=" + idResp2 + "&operador=" + operador, true);
1832
+ xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
1833
+ // xhttp.timeout = 8000; // Set timeout to 4 seconds (4000 milliseconds)
1834
+ // xhttp.ontimeout = function () { alert("Timed out!!!"); }
1835
+ xhttp.send("");
1836
+
1837
+ }
1838
+ }
1839
+ else
1840
+ alert("Preencha o campo motivo e justifique a ocorrencia !");
1841
+ }
1842
+
1843
+ function resetMosaico() {
1844
+
1845
+ var r = confirm("Deseja realmente reiniciar o Mosaico ?. Use apenas em quando as imagens estiverem congeladas a mais de 1 hora");
1846
+ if (r == true) {
1847
+ var xhttp = new XMLHttpRequest();
1848
+ xhttp.onreadystatechange = function () {
1849
+ if (this.readyState == 4 && this.status == 200) {
1850
+
1851
+
1852
+ alert("MOSAICO REINICIADO COM SUCESSO !");
1853
+ document.getElementById("reset").innerHTML = "RESET";
1854
+ document.getElementById("reset").disabled = false;
1855
+
1856
+ }
1857
+
1858
+ };
1859
+
1860
+ document.getElementById("reset").innerHTML = "AGUARDE..";
1861
+ document.getElementById("reset").disabled = true;
1862
+
1863
+
1864
+ var login = document.getElementById("myLogin").innerHTML;
1865
+ var cliente = document.getElementById("clientelabel").innerHTML;
1866
+ var texto = "AT" + cliente + "_reiniciado_pelo_operador_" + login;
1867
+
1868
+ xhttp.open("GET", "<?URLBASE?>/resetmosaico?msg=" + texto, true);
1869
+ xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
1870
+ xhttp.send("");
1871
+ }
1872
+ }
1873
+
1874
+ function descartaOcorrencia() {
1875
+
1876
+ var template = document.getElementById("template").value;
1877
+ if (template.length > 0) {
1878
+ var r = confirm("Deseja realmente descartar ocorrencia ?");
1879
+ if (r == true) {
1880
+ var xhttp = new XMLHttpRequest();
1881
+ xhttp.onreadystatechange = function () {
1882
+ if (this.readyState == 4 && this.status == 200) {
1883
+
1884
+ var json = JSON.parse(this.responseText);
1885
+
1886
+ sendMsgFinal("descarta");
1887
+
1888
+ resetFormOcorrencia();
1889
+
1890
+ document.getElementById('ocoModal').style.display = 'none';
1891
+ alert("OCORRENCIA DESCARTADA COM SUCESSO !");
1892
+ document.getElementById("descartar").innerHTML = "Descartar";
1893
+ document.getElementById("descartar").disabled = false;
1894
+
1895
+ }
1896
+
1897
+ };
1898
+
1899
+ document.getElementById("descartar").innerHTML = "Aguarde..";
1900
+ document.getElementById("descartar").disabled = true;
1901
+
1902
+
1903
+ var objidOco = document.getElementById("idOco");
1904
+ var idOco = objidOco.getAttribute('value');
1905
+ var objnOp = document.getElementById("nomeOperador");
1906
+ var operador = objnOp.getAttribute('value');
1907
+ var idResp1 = document.getElementById("procedimento").value;
1908
+
1909
+ var idResp2 = document.getElementById("template").value;
1910
+
1911
+
1912
+ // xhttp.open("GET", "https://script.google.com/macros/s/AKfycbziTdRkV1r6WFdUMoaBAugEkywspV6TqhPE8fTQnl2FOZ6Qn2E/exec?cmd=GravaOcorrencia&descarta=true&idOco=" + idOco + "&resposta1=" + idResp1 + "&resposta2=" + idResp2 + "&operador=" + operador, true);
1913
+ xhttp.open("GET", "getdatalocal?comando=GravaOcorrencia&descarta=true&idOco=" + idOco + "&resposta1=" + idResp1 + "&resposta2=" + idResp2 + "&operador=" + operador, true);
1914
+ xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
1915
+ xhttp.send("");
1916
+ }
1917
+ }
1918
+ else
1919
+ alert("Preencha o campo motivo e justifique o Descarte!");
1920
+ }
1921
+
1922
+ function myFunctionNav() {
1923
+ var x = document.getElementById("myTopnav");
1924
+ if (x.className === "topnav") {
1925
+ x.className += " responsive";
1926
+ } else {
1927
+ x.className = "topnav";
1928
+ }
1929
+ }
1930
+ var solicitaLog = 0;
1931
+ function login(login) {
1932
+ var xhttp = new XMLHttpRequest();
1933
+ xhttp.onreadystatechange = function () {
1934
+ if (this.readyState == 4) {
1935
+ solicitaLog = 0;
1936
+ }
1937
+ };
1938
+ // xhttp.open("GET", "https://script.google.com/macros/s/AKfycbziTdRkV1r6WFdUMoaBAugEkywspV6TqhPE8fTQnl2FOZ6Qn2E/exec?cmd=Login&login="+login+"&ip=0", true);
1939
+ xhttp.open("GET", "getdatalocal?comando=Login&login="+login+"&ip=0", true);
1940
+ xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
1941
+ xhttp.send("");
1942
+ }
1943
+
1944
+ function logout(login) {
1945
+ var xhttp = new XMLHttpRequest();
1946
+ xhttp.onreadystatechange = function () {
1947
+ if (this.readyState == 4) {
1948
+ solicitaLog = 0;
1949
+ }
1950
+ };
1951
+ // xhttp.open("GET", "https://script.google.com/macros/s/AKfycbziTdRkV1r6WFdUMoaBAugEkywspV6TqhPE8fTQnl2FOZ6Qn2E/exec?cmd=Logout&login=" + login + "&ip=0", true);
1952
+ xhttp.open("GET", "getdatalocal?comando=Logout&login=" + login + "&ip=0", true);
1953
+ xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
1954
+ xhttp.send("");
1955
+ }
1956
+
1957
+ /* function autentica() {
1958
+
1959
+ var xhttp = new XMLHttpRequest();
1960
+
1961
+ var usuario = document.getElementById("myFormUsuario").value;
1962
+ var senha = document.getElementById("myFormSenha").value;
1963
+
1964
+ xhttp.onreadystatechange = function () {
1965
+ if (this.readyState == 4 && this.status == 200) {
1966
+
1967
+ if (this.responseText.indexOf("ERRO") > -1) {
1968
+ document.getElementById("myLogin").innerHTML = this.responseText;
1969
+
1970
+ localStorage.setItem("sessao", this.responseText);
1971
+ }
1972
+ else {
1973
+ localStorage.setItem("sessao", this.responseText);
1974
+ }
1975
+
1976
+ }
1977
+
1978
+ closeForm();
1979
+ };
1980
+
1981
+ document.getElementById("myLogin").innerHTML = "Aguarde Login";
1982
+ xhttp.open("GET", "https://script.google.com/macros/s/AKfycbziTdRkV1r6WFdUMoaBAugEkywspV6TqhPE8fTQnl2FOZ6Qn2E/exec?cmd=Login&user="+usuario+"&psw="+senha, true);
1983
+ xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
1984
+ xhttp.send("");
1985
+
1986
+ } */
1987
+
1988
+ function setoperacao() {
1989
+
1990
+ var status = document.getElementById("operacao").innerHTML;
1991
+ var usuario = document.getElementById("myLogin").innerHTML;
1992
+
1993
+ if ((usuario != "LOGIN") && (usuario != "")) {
1994
+ if (status == "QUERO TRABALHAR") {
1995
+ solicitaLog = 1;
1996
+ document.getElementById("operacao").innerHTML = "AGUARDE...";
1997
+ login(usuario);
1998
+ }
1999
+ if (status == "TRABALHANDO") {
2000
+ solicitaLog = 1;
2001
+ document.getElementById("operacao").innerHTML = "AGUARDE...";
2002
+ logout(usuario);
2003
+ }
2004
+ }
2005
+ }
2006
+
2007
+ function getFila()
2008
+ {
2009
+ if (onlyView==1) {
2010
+ document.getElementById("operacao").innerHTML = "VISUALIZANDO";
2011
+ tamFila = 0;
2012
+ myFila = 0;
2013
+ return;
2014
+ }
2015
+
2016
+ var xhttp = new XMLHttpRequest();
2017
+ xhttp.onreadystatechange = function () {
2018
+ if (this.readyState == 4 && this.status == 200) {
2019
+
2020
+ var json = JSON.parse(this.responseText);
2021
+
2022
+ document.getElementById("Fila").innerHTML = "FILA OCORRENCIAS " + "(" + json.myFila +"/"+json.numFila + ") ";
2023
+ if (solicitaLog == 0) {
2024
+ document.getElementById("operacao").innerHTML = json.status;
2025
+ }
2026
+
2027
+ var status = document.getElementById("operacao").innerHTML;
2028
+ if (status == "TRABALHANDO") {
2029
+ if (json.numFila != "0") {
2030
+ tamFila = parseInt(json.numFila);
2031
+ myFila = parseInt(json.myFila);
2032
+
2033
+ if (document.getElementById('ocoModal').style.display != 'block') {
2034
+ getVideoOcorrencia();
2035
+ }
2036
+ }
2037
+ else {
2038
+ tamFila = 0;
2039
+ myFila = 0;
2040
+ }
2041
+ }
2042
+ else {
2043
+ tamFila = 0;
2044
+ myFila = 0;
2045
+ }
2046
+ }
2047
+ };
2048
+ var usuario = document.getElementById("myLogin").innerHTML;
2049
+ // xhttp.open("GET", "https://script.google.com/macros/s/AKfycbziTdRkV1r6WFdUMoaBAugEkywspV6TqhPE8fTQnl2FOZ6Qn2E/exec?cmd=F2ila&login="+usuario, true);
2050
+ xhttp.open("GET", "getdatalocal?comando=F2ila&login="+usuario, true);
2051
+ xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
2052
+ xhttp.send("");
2053
+ }
2054
+
2055
+ function gogo2()
2056
+ {
2057
+ getFila()
2058
+ setTimeout(gogo2, to * 1000);
2059
+ }
2060
+
2061
+
2062
+ function refreshimg(img)
2063
+ {
2064
+
2065
+ }
2066
+
2067
+ function imgRedirect(img)
2068
+ {
2069
+
2070
+ }
2071
+
2072
+
2073
+ function errorloadimg(img) {
2074
+
2075
+ var d = new Date(),
2076
+ dummy = d.getTime();
2077
+ var newurl = 'getresource?r=atualli.png&';
2078
+
2079
+ var obj = img,
2080
+ s_rc = obj.getAttribute('src'),
2081
+ pure_src = s_rc.substring(s_rc.indexOf('c='), s_rc.indexOf('c=') + 4);
2082
+ obj.setAttribute('src',newurl+pure_src + '&' + dummy);
2083
+ //obj.nextSibling.innerHTML = obj.getAttribute('src');
2084
+
2085
+ /* first += 20;
2086
+ if (first > 5000)
2087
+ {
2088
+ first = 5000;
2089
+ //obj.removeChild(obj.lastElementChild);
2090
+ //location.reload();
2091
+ } */
2092
+
2093
+ }
2094
+
2095
+ function gogo()
2096
+ {
2097
+ try {
2098
+
2099
+ if (first == 0) {
2100
+ first += 1;
2101
+ setTimeout(gogo, to * 10000);
2102
+
2103
+ }
2104
+ var d=new Date(),
2105
+ dummy=d.getTime(),
2106
+ i=idx,
2107
+ pix=document.images;
2108
+ for (; i < pix.length; i++)
2109
+ {
2110
+ if (pix[i].className !== 'refr')
2111
+ { continue; }
2112
+ else
2113
+ {
2114
+ var obj = pix[i];
2115
+
2116
+ if ((obj.complete)) {
2117
+ first -= 5;
2118
+ if (first < 1) first = 1;
2119
+ }
2120
+ else {
2121
+ first += 20;
2122
+ if (first > 5000)
2123
+ {
2124
+ first = 5000;
2125
+ //obj.removeChild(obj.lastElementChild);
2126
+ //location.reload();
2127
+ }
2128
+ }
2129
+ {
2130
+
2131
+ var s_rc = obj.getAttribute('src');
2132
+
2133
+ if (s_rc.indexOf('r=')) {
2134
+ var newurl = '<?URL?>';
2135
+ var pure_src = s_rc.substring(s_rc.indexOf('c='), s_rc.indexOf('c=') + 4);
2136
+ obj.setAttribute('src', newurl + pure_src + '&' + dummy);
2137
+
2138
+ var objAovivo = document.getElementById("aovivo");
2139
+ var s_rc2 = objAovivo.getAttribute('src');
2140
+ if (s_rc2.indexOf('c=')>-1) {
2141
+ var pure_src2 = s_rc2.substring(0, s_rc2.indexOf('c=') + 4);
2142
+ objAovivo.setAttribute('src', pure_src2 + '&' + dummy);
2143
+ }
2144
+ }
2145
+ else {
2146
+ var pure_src = s_rc.substring(0, s_rc.indexOf('c=') + 4);
2147
+ obj.setAttribute('src', pure_src + '&' + dummy);
2148
+ }
2149
+
2150
+ // obj.nextSibling.innerHTML = obj.getAttribute('src');
2151
+
2152
+ idx += 1;
2153
+ if (idx >= pix.length) idx = 0;
2154
+ break;
2155
+ }
2156
+
2157
+ }
2158
+ }
2159
+
2160
+ setTimeout(gogo, first);
2161
+
2162
+ }
2163
+ catch (e) {
2164
+
2165
+ setTimeout(gogo, to * 100);
2166
+ }
2167
+
2168
+ }
2169
+
2170
+ function iniciaPagina()
2171
+ {
2172
+ const urlParams = new URLSearchParams(window.location.search);
2173
+ const myParam = urlParams.get('view');
2174
+ if (myParam)
2175
+ onlyView = 1;
2176
+ gogo2();
2177
+ // document.getElementById("Fila").setAttribute('onclick', "document.getElementById('ocoModal').style.display = 'block'; getVideoOcorrencia();");
2178
+
2179
+ gogo();
2180
+
2181
+ let cliente=document.getElementById("clientelabel").innerHTML;
2182
+ cliente=cliente.trim();
2183
+ var novaGrade=getCookie("GRADE-"+cliente);
2184
+ if(novaGrade)
2185
+ changeGrade(novaGrade);
2186
+ else
2187
+ changeGrade("Auto");
2188
+
2189
+ setCookie("CLIENTE",cliente,10);
2190
+
2191
+ // selecionaOperador(getCookie("LOGIN"));
2192
+ // document.getElementById("Fila").setAttribute('onclick', "getVideoOcorrencia();");
2193
+ }
2194
+
2195
+ //Make the DIV element draggagle:
2196
+ dragElement(document.getElementById("ocoModal"));
2197
+
2198
+ function dragElement(elmnt) {
2199
+ var pos1 = 0, pos2 = 0, pos3 = 0, pos4 = 0;
2200
+ if (document.getElementById(elmnt.id + "header")) {
2201
+ /* if present, the header is where you move the DIV from:*/
2202
+ document.getElementById(elmnt.id + "header").onmousedown = dragMouseDown;
2203
+ } else {
2204
+ /* otherwise, move the DIV from anywhere inside the DIV:*/
2205
+ elmnt.onmousedown = dragMouseDown;
2206
+ }
2207
+
2208
+ function dragMouseDown(e) {
2209
+ e = e || window.event;
2210
+ //e.preventDefault();
2211
+ // get the mouse cursor position at startup:
2212
+ pos3 = e.clientX;
2213
+ pos4 = e.clientY;
2214
+ var elementId = e.srcElement.id;
2215
+ if (elementId != "template") {
2216
+ document.onmouseup = closeDragElement;
2217
+ // call a function whenever the cursor moves:
2218
+ document.onmousemove = elementDrag;
2219
+ }
2220
+ }
2221
+
2222
+ function elementDrag(e) {
2223
+ e = e || window.event;
2224
+ //e.preventDefault();
2225
+ // calculate the new cursor position:
2226
+ pos1 = pos3 - e.clientX;
2227
+ pos2 = pos4 - e.clientY;
2228
+ pos3 = e.clientX;
2229
+ pos4 = e.clientY;
2230
+ // set the element's new position:
2231
+ elmnt.style.top = (elmnt.offsetTop - pos2) + "px";
2232
+ elmnt.style.left = (elmnt.offsetLeft - pos1) + "px";
2233
+ }
2234
+
2235
+ function closeDragElement() {
2236
+ /* stop moving when mouse button is released:*/
2237
+ document.onmouseup = null;
2238
+ document.onmousemove = null;
2239
+ }
2240
+ }
2241
+ </script>
2242
+
2243
+
2244
+ </body>
2245
+
2246
+ </html>
2247
+
2248
+
2249
+