dss 2 năm trước cách đây
mục cha
commit
8a8e4146b3

+ 2 - 0
src/CallCenter.Api/Controllers/ReportController.cs

@@ -1,4 +1,5 @@
 using CallCenter.Devices;
+using Microsoft.AspNetCore.Authorization;
 using Microsoft.AspNetCore.Mvc;
 using Microsoft.Extensions.Options;
 
@@ -17,6 +18,7 @@ public class ReportController : ControllerBase
         _deviceEventHandler = deviceEventHandler;
     }
 
+    [AllowAnonymous]
     [HttpGet]
     public async Task ReceiveEvents()
     {

+ 55 - 8
src/CallCenter.Api/appsettings.Development.json

@@ -37,7 +37,7 @@
   },
   "AllowedHosts": "*",
   "DeviceConfigs": {
-    "Address": "http://192.168.100.100/xml",
+    "Address": "http://192.168.100.101/xml",
     "Authorize": true,
     "ReceiveKey": "E1BBD1BB-A269-44",
     "SendKey": "2A-BA92-160A3B1D",
@@ -51,14 +51,61 @@
   "Cors": {
     "Origins": [ "http://localhost:8888", "http://callcenter-admin.fengwo.com", "http://admin.call.fengwo.com" ]
   },
+  "SendCallRecord": {
+    "FwUrl": "http://192.168.100.84:8066/api/call/insertcalls"
+  },
   "WorkTimeSettings": {
-    "MorningBegin": "08:00",
-    "MorningEnd": "12:00",
-    "AfterBegin": "15:00",
-    "AfterEnd": "21:00",
-    "WorkDay": [ 1, 2, 3, 4, 5, 0, 6 ],
-    "WorkCategory": "08da9b9f-a35d-4ade-8ea7-55e8abbcdefd",
-    "RestCategory": "08daa5f5-ac7a-4ced-8295-1c78baa15f9e"
+    "LineSetting": [
+      {
+        //"NumNo": "12345",
+        "NumNo": "3495",
+        "MorningBegin": "00:00",
+        "MorningEnd": "12:00",
+        "AfterBegin": "12:00",
+        "AfterEnd": "23:59",
+        "WorkDay": [ 1, 2, 3, 4, 5, 6, 0 ],
+        "WorkCategory": "08dae7d5-4332-40e8-85dd-ad210e40270b",
+        "RestCategory": "",
+        "WorkToGroup": "600",
+        "RestToGroup": "600"
+      },
+      {
+        "NumNo": "12333",
+        "MorningBegin": "07:00",
+        "MorningEnd": "12:00",
+        "AfterBegin": "12:00",
+        "AfterEnd": "23:00",
+        "WorkDay": [ 1, 2, 3, 4, 5, 6, 0 ],
+        "WorkCategory": "",
+        "RestCategory": "",
+        "WorkToGroup": "604",
+        "RestToGroup": "600"
+      },
+      {
+        "NumNo": "12319",
+        "MorningBegin": "00:00",
+        "MorningEnd": "12:00",
+        "AfterBegin": "12:00",
+        "AfterEnd": "23:59",
+        "WorkDay": [ 1, 2, 3, 4, 5, 6, 0 ],
+        "WorkCategory": "",
+        "RestCategory": "",
+        "WorkToGroup": "600",
+        "RestToGroup": "600"
+      },
+      {
+        "NumNo": "12315",
+        "MorningBegin": "00:00",
+        "MorningEnd": "12:00",
+        "AfterBegin": "12:00",
+        "AfterEnd": "23:59",
+        "WorkDay": [ 1, 2, 3, 4, 5, 6, 0 ],
+        "WorkCategory": "",
+        "RestCategory": "",
+        "WorkToGroup": "",
+        "RestToGroup": ""
+      }
+    ]
   },
   "IdentityConfiguration": {
     "Password": {

+ 1 - 1
src/CallCenter.Api/appsettings.json

@@ -105,7 +105,7 @@
     ]
   },
   "RecordSettings": {
-    "Remote": "http://192.168.100.100/mcc/Recorder/",
+    "Remote": "http://192.168.100.101/mcc/Recorder/",
     "Local": "http://192.168.100.36:50001/Recorder/"
   },
   "SendCallRecord": {