Browse Source

enums.callcenter

xf 2 năm trước cách đây
mục cha
commit
343a1ee474
61 tập tin đã thay đổi với 102 bổ sung93 xóa
  1. 2 2
      src/Hotline.Api/Controllers/CallController.cs
  2. 1 1
      src/Hotline.Api/Controllers/IvrController.cs
  3. 1 1
      src/Hotline.Api/Controllers/PbxController.cs
  4. 3 3
      src/Hotline.Api/Controllers/TelController.cs
  5. 1 1
      src/Hotline.Application/Handlers/CallCenter/BaseHandler.cs
  6. 1 1
      src/Hotline.Application/Handlers/CallCenter/CallState/AlertExtToOuterNotificationHandler.cs
  7. 1 1
      src/Hotline.Application/Handlers/CallCenter/CallState/AlertMenuToOuterNotificationHandler.cs
  8. 1 1
      src/Hotline.Application/Handlers/CallCenter/CallState/AlertVisitorToExtNotificationHandler.cs
  9. 1 1
      src/Hotline.Application/Handlers/CallCenter/CallState/DtmfNotificationHandler.cs
  10. 1 1
      src/Hotline.Application/Handlers/CallCenter/CallState/RingExtToOuterNotificationHandler.cs
  11. 1 1
      src/Hotline.Application/Handlers/CallCenter/CallState/RingVisitorToExtNotificationHandler.cs
  12. 1 1
      src/Hotline.Application/Handlers/CallCenter/FlowControl/AnswerExtToOuterNotificationHandler.cs
  13. 1 1
      src/Hotline.Application/Handlers/CallCenter/FlowControl/AnswerViisitorToExtNotificationHandler.cs
  14. 1 1
      src/Hotline.Application/Handlers/CallCenter/FlowControl/AnsweredExtToOuterNotificationHandler.cs
  15. 1 1
      src/Hotline.Application/Handlers/CallCenter/FlowControl/AnsweredExtToOuterToExtNotificationHandler.cs
  16. 1 1
      src/Hotline.Application/Handlers/CallCenter/FlowControl/AnsweredVisitorToExtNotificationHandler.cs
  17. 1 1
      src/Hotline.Application/Handlers/CallCenter/FlowControl/ByeExtAndOuterOneNotificationHandler.cs
  18. 1 1
      src/Hotline.Application/Handlers/CallCenter/FlowControl/ByeExtAndOuterTwoNotificationHandler.cs
  19. 1 1
      src/Hotline.Application/Handlers/CallCenter/FlowControl/ByeOuterAndOuterNotificationHandler.cs
  20. 1 1
      src/Hotline.Application/Handlers/CallCenter/FlowControl/ByeVisitorAndExtNotificationHandler.cs
  21. 1 1
      src/Hotline.Application/Handlers/CallCenter/FlowControl/ByeVisitorOffNotificationHandler.cs
  22. 1 1
      src/Hotline.Application/Handlers/CallCenter/FlowControl/CdrNotificationHandler.cs
  23. 1 1
      src/Hotline.Application/Handlers/CallCenter/FlowControl/DivertVisitorToExtNotificationHandler.cs
  24. 1 1
      src/Hotline.Application/Handlers/CallCenter/FlowControl/EndOfAnnOuterToMenuNotificationHandler.cs
  25. 1 1
      src/Hotline.Application/Handlers/CallCenter/FlowControl/EndOfAnnVisitorToMenuNotificationHandler.cs
  26. 1 1
      src/Hotline.Application/Handlers/CallCenter/FlowControl/IncomingNotificationHandler.cs
  27. 1 1
      src/Hotline.Application/Handlers/CallCenter/FlowControl/InviteNotificationHandler.cs
  28. 1 1
      src/Hotline.Application/Handlers/CallCenter/Transient/TransientOuterNotificationHandler.cs
  29. 7 7
      src/Hotline.NewRock/DeviceManager.cs
  30. 1 1
      src/Hotline.Repository.SqlSugar/CallCenter/CallRepository.cs
  31. 1 1
      src/Hotline.Share/Dtos/CallCenter/AddIvrDto.cs
  32. 1 1
      src/Hotline.Share/Dtos/CallCenter/CallDto.cs
  33. 1 1
      src/Hotline.Share/Dtos/CallCenter/IvrDto.cs
  34. 1 1
      src/Hotline.Share/Dtos/CallCenter/IvrStrategy.cs
  35. 1 1
      src/Hotline.Share/Dtos/CallCenter/OutCallDto.cs
  36. 1 1
      src/Hotline.Share/Dtos/CallCenter/TelDto.cs
  37. 1 1
      src/Hotline.Share/Dtos/CallCenter/TelGroupDto.cs
  38. 5 5
      src/Hotline.Share/Enums/CallCenter/ECDRRoute.cs
  39. 7 7
      src/Hotline.Share/Enums/CallCenter/ECDRType.cs
  40. 1 1
      src/Hotline.Share/Enums/CallCenter/ECallDirection.cs
  41. 2 2
      src/Hotline.Share/Enums/CallCenter/ECallStatus.cs
  42. 5 5
      src/Hotline.Share/Enums/CallCenter/ECallType.cs
  43. 1 1
      src/Hotline.Share/Enums/CallCenter/EDistribution.cs
  44. 1 1
      src/Hotline.Share/Enums/CallCenter/EEndBy.cs
  45. 2 2
      src/Hotline.Share/Enums/CallCenter/EInfoType.cs
  46. 1 1
      src/Hotline.Share/Enums/CallCenter/EIvrAnswerType.cs
  47. 1 1
      src/Hotline.Share/Enums/CallCenter/EIvrStrategeType.cs
  48. 1 1
      src/Hotline.Share/Enums/CallCenter/EIvrType.cs
  49. 1 1
      src/Hotline.Share/Enums/CallCenter/EOnState.cs
  50. 1 1
      src/Hotline.Share/Enums/CallCenter/EPhoneISP.cs
  51. 3 4
      src/Hotline.Share/Enums/CallCenter/ERingOffType.cs
  52. 5 5
      src/Hotline.Share/Enums/CallCenter/ETelStatus.cs
  53. 2 2
      src/Hotline.Share/Enums/CallCenter/ETelStatusInfo.cs
  54. 1 1
      src/Hotline/CallCenter/Calls/Call.cs
  55. 1 1
      src/Hotline/CallCenter/Calls/CallDetail.cs
  56. 1 1
      src/Hotline/CallCenter/Calls/CallRecord.cs
  57. 1 1
      src/Hotline/CallCenter/Ivrs/Ivr.cs
  58. 1 1
      src/Hotline/CallCenter/Ivrs/IvrDomainService.cs
  59. 1 1
      src/Hotline/CallCenter/Tels/TelGroup.cs
  60. 1 1
      src/Hotline/Tools/PhoneISPTool.cs
  61. 10 0
      src/Hotline/WorkOrders/WorkflowBusinessModule.cs

+ 2 - 2
src/Hotline.Api/Controllers/CallController.cs

@@ -2,7 +2,7 @@
 using Hotline.CallCenter.Calls;
 using Hotline.Permissions;
 using Hotline.Share.Dtos.CallCenter;
-using Hotline.Share.Enums;
+using Hotline.Share.Enums.CallCenter;
 using Hotline.Share.Requests;
 using MapsterMapper;
 using Microsoft.AspNetCore.Mvc;
@@ -78,7 +78,7 @@ namespace Hotline.Api.Controllers
             {
                 OutCallDto outCallDto = new OutCallDto();
                 outCallDto.CallId = item.Id;
-                outCallDto.InfoType = Share.Enums.EInfoType.Call;//TODO目前写死(只有电话)
+                outCallDto.InfoType = EInfoType.Call;//TODO目前写死(只有电话)
                 outCallDto.Direction = item.CallDirection;
                 outCallDto.Cpn = item.FromNo ?? "";
                 outCallDto.Cdpn = item.ToNo ?? "";

+ 1 - 1
src/Hotline.Api/Controllers/IvrController.cs

@@ -1,7 +1,7 @@
 using Hotline.CallCenter.Ivrs;
 using Hotline.Permissions;
 using Hotline.Share.Dtos.CallCenter;
-using Hotline.Share.Enums;
+using Hotline.Share.Enums.CallCenter;
 using MapsterMapper;
 using Microsoft.AspNetCore.Mvc;
 using XF.Domain.Cache;

+ 1 - 1
src/Hotline.Api/Controllers/PbxController.cs

@@ -5,7 +5,7 @@ using Hotline.CallCenter.Manage;
 using Hotline.CallCenter.Tels;
 using Hotline.Permissions;
 using Hotline.Share.Dtos.CallCenter;
-using Hotline.Share.Enums;
+using Hotline.Share.Enums.CallCenter;
 using Hotline.Share.Requests;
 using Hotline.Users;
 using MapsterMapper;

+ 3 - 3
src/Hotline.Api/Controllers/TelController.cs

@@ -2,7 +2,7 @@
 using Hotline.CallCenter.Calls;
 using Hotline.CallCenter.Devices;
 using Hotline.Share.Dtos.CallCenter;
-using Hotline.Share.Enums;
+using Hotline.Share.Enums.CallCenter;
 using MapsterMapper;
 using Microsoft.AspNetCore.Mvc;
 using XF.Domain.Authentications;
@@ -67,7 +67,7 @@ namespace Hotline.Api.Controllers
                     telModel.CDPN = telDto.CDPN;
                     telModel.TelStatusInfo = telDto.TelStatusInfo;
                     telModel.ConversationId = telDto.ConversationId;
-                    if (telModel.TelStatus == Share.Enums.ETelStatus.Active)
+                    if (telModel.TelStatus == ETelStatus.Active)
                         telModel.TelStatus = telDto.TelStatus;
 
                     if (telModel.TelStatusInfo == ETelStatusInfo.Out)
@@ -104,7 +104,7 @@ namespace Hotline.Api.Controllers
                 telModel.CDPN = telDto.CDPN;
                 telModel.TelStatusInfo = telDto.TelStatusInfo;
                 telModel.ConversationId = telDto.ConversationId;
-                if (telModel.TelStatus == Share.Enums.ETelStatus.Active)
+                if (telModel.TelStatus == ETelStatus.Active)
                     telModel.TelStatus = telDto.TelStatus;
 
                 if(telModel.TelStatusInfo== ETelStatusInfo.Out)

+ 1 - 1
src/Hotline.Application/Handlers/CallCenter/BaseHandler.cs

@@ -1,7 +1,7 @@
 using Hotline.CallCenter.Calls;
 using Hotline.CallCenter.Devices;
 using Hotline.Share.Dtos.CallCenter;
-using Hotline.Share.Enums;
+using Hotline.Share.Enums.CallCenter;
 using Microsoft.Extensions.Options;
 using NewRock.Sdk;
 using NewRock.Sdk.Control.Request;

+ 1 - 1
src/Hotline.Application/Handlers/CallCenter/CallState/AlertExtToOuterNotificationHandler.cs

@@ -1,5 +1,5 @@
 using Hotline.CallCenter.Calls;
-using Hotline.Share.Enums;
+using Hotline.Share.Enums.CallCenter;
 using Hotline.Share.Notifications;
 using MediatR;
 

+ 1 - 1
src/Hotline.Application/Handlers/CallCenter/CallState/AlertMenuToOuterNotificationHandler.cs

@@ -1,5 +1,5 @@
 using Hotline.CallCenter.Calls;
-using Hotline.Share.Enums;
+using Hotline.Share.Enums.CallCenter;
 using Hotline.Share.Notifications;
 using MediatR;
 

+ 1 - 1
src/Hotline.Application/Handlers/CallCenter/CallState/AlertVisitorToExtNotificationHandler.cs

@@ -1,5 +1,5 @@
 using Hotline.CallCenter.Calls;
-using Hotline.Share.Enums;
+using Hotline.Share.Enums.CallCenter;
 using Hotline.Share.Notifications;
 using MediatR;
 

+ 1 - 1
src/Hotline.Application/Handlers/CallCenter/CallState/DtmfNotificationHandler.cs

@@ -1,7 +1,7 @@
 using Hotline.CallCenter.Calls;
 using Hotline.CallCenter.Devices;
 using Hotline.CallCenter.Ivrs;
-using Hotline.Share.Enums;
+using Hotline.Share.Enums.CallCenter;
 using Hotline.Share.Notifications;
 using MediatR;
 using Microsoft.Extensions.Options;

+ 1 - 1
src/Hotline.Application/Handlers/CallCenter/CallState/RingExtToOuterNotificationHandler.cs

@@ -1,5 +1,5 @@
 using Hotline.CallCenter.Calls;
-using Hotline.Share.Enums;
+using Hotline.Share.Enums.CallCenter;
 using Hotline.Share.Notifications;
 using MediatR;
 

+ 1 - 1
src/Hotline.Application/Handlers/CallCenter/CallState/RingVisitorToExtNotificationHandler.cs

@@ -1,5 +1,5 @@
 using Hotline.CallCenter.Calls;
-using Hotline.Share.Enums;
+using Hotline.Share.Enums.CallCenter;
 using Hotline.Share.Notifications;
 using MediatR;
 

+ 1 - 1
src/Hotline.Application/Handlers/CallCenter/FlowControl/AnswerExtToOuterNotificationHandler.cs

@@ -1,5 +1,5 @@
 using Hotline.CallCenter.Calls;
-using Hotline.Share.Enums;
+using Hotline.Share.Enums.CallCenter;
 using Hotline.Share.Notifications;
 using MediatR;
 

+ 1 - 1
src/Hotline.Application/Handlers/CallCenter/FlowControl/AnswerViisitorToExtNotificationHandler.cs

@@ -1,5 +1,5 @@
 using Hotline.CallCenter.Calls;
-using Hotline.Share.Enums;
+using Hotline.Share.Enums.CallCenter;
 using Hotline.Share.Notifications;
 using MediatR;
 

+ 1 - 1
src/Hotline.Application/Handlers/CallCenter/FlowControl/AnsweredExtToOuterNotificationHandler.cs

@@ -1,5 +1,5 @@
 using Hotline.CallCenter.Calls;
-using Hotline.Share.Enums;
+using Hotline.Share.Enums.CallCenter;
 using Hotline.Share.Notifications;
 using MediatR;
 

+ 1 - 1
src/Hotline.Application/Handlers/CallCenter/FlowControl/AnsweredExtToOuterToExtNotificationHandler.cs

@@ -1,5 +1,5 @@
 using Hotline.CallCenter.Calls;
-using Hotline.Share.Enums;
+using Hotline.Share.Enums.CallCenter;
 using Hotline.Share.Notifications;
 using MediatR;
 

+ 1 - 1
src/Hotline.Application/Handlers/CallCenter/FlowControl/AnsweredVisitorToExtNotificationHandler.cs

@@ -1,5 +1,5 @@
 using Hotline.CallCenter.Calls;
-using Hotline.Share.Enums;
+using Hotline.Share.Enums.CallCenter;
 using Hotline.Share.Notifications;
 using MediatR;
 

+ 1 - 1
src/Hotline.Application/Handlers/CallCenter/FlowControl/ByeExtAndOuterOneNotificationHandler.cs

@@ -1,5 +1,5 @@
 using Hotline.CallCenter.Calls;
-using Hotline.Share.Enums;
+using Hotline.Share.Enums.CallCenter;
 using Hotline.Share.Notifications;
 using MediatR;
 

+ 1 - 1
src/Hotline.Application/Handlers/CallCenter/FlowControl/ByeExtAndOuterTwoNotificationHandler.cs

@@ -1,5 +1,5 @@
 using Hotline.CallCenter.Calls;
-using Hotline.Share.Enums;
+using Hotline.Share.Enums.CallCenter;
 using Hotline.Share.Notifications;
 using MediatR;
 

+ 1 - 1
src/Hotline.Application/Handlers/CallCenter/FlowControl/ByeOuterAndOuterNotificationHandler.cs

@@ -1,5 +1,5 @@
 using Hotline.CallCenter.Calls;
-using Hotline.Share.Enums;
+using Hotline.Share.Enums.CallCenter;
 using Hotline.Share.Notifications;
 using MediatR;
 

+ 1 - 1
src/Hotline.Application/Handlers/CallCenter/FlowControl/ByeVisitorAndExtNotificationHandler.cs

@@ -1,5 +1,5 @@
 using Hotline.CallCenter.Calls;
-using Hotline.Share.Enums;
+using Hotline.Share.Enums.CallCenter;
 using Hotline.Share.Notifications;
 using MediatR;
 

+ 1 - 1
src/Hotline.Application/Handlers/CallCenter/FlowControl/ByeVisitorOffNotificationHandler.cs

@@ -1,5 +1,5 @@
 using Hotline.CallCenter.Calls;
-using Hotline.Share.Enums;
+using Hotline.Share.Enums.CallCenter;
 using Hotline.Share.Notifications;
 using MediatR;
 

+ 1 - 1
src/Hotline.Application/Handlers/CallCenter/FlowControl/CdrNotificationHandler.cs

@@ -1,5 +1,5 @@
 using Hotline.CallCenter.Calls;
-using Hotline.Share.Enums;
+using Hotline.Share.Enums.CallCenter;
 using Hotline.Share.Notifications;
 using MediatR;
 

+ 1 - 1
src/Hotline.Application/Handlers/CallCenter/FlowControl/DivertVisitorToExtNotificationHandler.cs

@@ -1,5 +1,5 @@
 using Hotline.CallCenter.Calls;
-using Hotline.Share.Enums;
+using Hotline.Share.Enums.CallCenter;
 using Hotline.Share.Notifications;
 using MediatR;
 

+ 1 - 1
src/Hotline.Application/Handlers/CallCenter/FlowControl/EndOfAnnOuterToMenuNotificationHandler.cs

@@ -1,7 +1,7 @@
 using Hotline.CallCenter.Calls;
 using Hotline.CallCenter.Devices;
 using Hotline.CallCenter.Ivrs;
-using Hotline.Share.Enums;
+using Hotline.Share.Enums.CallCenter;
 using Hotline.Share.Notifications;
 using MediatR;
 using Microsoft.Extensions.Options;

+ 1 - 1
src/Hotline.Application/Handlers/CallCenter/FlowControl/EndOfAnnVisitorToMenuNotificationHandler.cs

@@ -1,7 +1,7 @@
 using Hotline.CallCenter.Calls;
 using Hotline.CallCenter.Devices;
 using Hotline.CallCenter.Ivrs;
-using Hotline.Share.Enums;
+using Hotline.Share.Enums.CallCenter;
 using Hotline.Share.Notifications;
 using MediatR;
 using Microsoft.Extensions.Options;

+ 1 - 1
src/Hotline.Application/Handlers/CallCenter/FlowControl/IncomingNotificationHandler.cs

@@ -3,7 +3,7 @@ using Hotline.CallCenter.Calls;
 using Hotline.CallCenter.Devices;
 using Hotline.CallCenter.Ivrs;
 using Hotline.Settings;
-using Hotline.Share.Enums;
+using Hotline.Share.Enums.CallCenter;
 using Hotline.Share.Notifications;
 using MediatR;
 using Microsoft.Extensions.Logging;

+ 1 - 1
src/Hotline.Application/Handlers/CallCenter/FlowControl/InviteNotificationHandler.cs

@@ -3,7 +3,7 @@ using Hotline.CallCenter.BlackLists;
 using Hotline.CallCenter.Calls;
 using Hotline.CallCenter.Devices;
 using Hotline.Settings;
-using Hotline.Share.Enums;
+using Hotline.Share.Enums.CallCenter;
 using Hotline.Share.Notifications;
 using Hotline.Tools;
 using MediatR;

+ 1 - 1
src/Hotline.Application/Handlers/CallCenter/Transient/TransientOuterNotificationHandler.cs

@@ -1,6 +1,6 @@
 using Hotline.Caches;
 using Hotline.CallCenter.Calls;
-using Hotline.Share.Enums;
+using Hotline.Share.Enums.CallCenter;
 using Hotline.Share.Notifications;
 using Hotline.Tools;
 using MediatR;

+ 7 - 7
src/Hotline.NewRock/DeviceManager.cs

@@ -1,7 +1,6 @@
 using Hotline.CallCenter.Calls;
 using Hotline.CallCenter.Devices;
 using Hotline.CallCenter.Tels;
-using Hotline.Share.Enums;
 using MapsterMapper;
 using Microsoft.Extensions.Options;
 using NewRock.Sdk;
@@ -18,6 +17,7 @@ using XF.Domain.Dependency;
 using XF.Domain.Exceptions;
 using Group = NewRock.Sdk.Control.Request.Group;
 using Hotline.Share.Dtos.CallCenter;
+using Hotline.Share.Enums.CallCenter;
 
 namespace Hotline.NewRock
 {
@@ -55,12 +55,12 @@ namespace Hotline.NewRock
                     telDto.ConversationId = result.Ext.Outer.Id;
                     if (result.Ext.Outer.State == "talk")
                     {
-                        telDto.TelStatus = Share.Enums.ETelStatus.Talk;
+                        telDto.TelStatus = Share.Enums.CallCenter.ETelStatus.Talk;
                         return telDto;
                     }
                     else if (result.Ext.Outer.State == "wait")
                     {
-                        telDto.TelStatus = Share.Enums.ETelStatus.Wait;
+                        telDto.TelStatus = Share.Enums.CallCenter.ETelStatus.Wait;
                     }
                     return telDto;
                 }
@@ -73,12 +73,12 @@ namespace Hotline.NewRock
                     telDto.ConversationId = result.Ext.Visitor.Id;
                     if (result.Ext.Visitor.State == "talk")
                     {
-                        telDto.TelStatus = Share.Enums.ETelStatus.Talk;
+                        telDto.TelStatus = Share.Enums.CallCenter.ETelStatus.Talk;
                         return telDto;
                     }
                     else if (result.Ext.Visitor.State == "wait")
                     {
-                        telDto.TelStatus = Share.Enums.ETelStatus.Wait;
+                        telDto.TelStatus = Share.Enums.CallCenter.ETelStatus.Wait;
                     }
                     return telDto;
                 }
@@ -90,12 +90,12 @@ namespace Hotline.NewRock
                     telDto.TelStatusInfo = ETelStatusInfo.Ext;
                     if (result.Ext.Ext.State == "talk")
                     {
-                        telDto.TelStatus = Share.Enums.ETelStatus.Talk;
+                        telDto.TelStatus = Share.Enums.CallCenter.ETelStatus.Talk;
                         return telDto;
                     }
                     else if (result.Ext.Ext.State == "wait")
                     {
-                        telDto.TelStatus = Share.Enums.ETelStatus.Wait;
+                        telDto.TelStatus = Share.Enums.CallCenter.ETelStatus.Wait;
                     }
                     return telDto;
                 }

+ 1 - 1
src/Hotline.Repository.SqlSugar/CallCenter/CallRepository.cs

@@ -1,6 +1,6 @@
 using Hotline.CallCenter.Calls;
 using Hotline.Repository.SqlSugar.DataPermissions;
-using Hotline.Share.Enums;
+using Hotline.Share.Enums.CallCenter;
 using SqlSugar;
 using XF.Domain.Dependency;
 

+ 1 - 1
src/Hotline.Share/Dtos/CallCenter/AddIvrDto.cs

@@ -1,4 +1,4 @@
-using Hotline.Share.Enums;
+using Hotline.Share.Enums.CallCenter;
 
 namespace Hotline.Share.Dtos.CallCenter
 {

+ 1 - 1
src/Hotline.Share/Dtos/CallCenter/CallDto.cs

@@ -1,4 +1,4 @@
-using Hotline.Share.Enums;
+using Hotline.Share.Enums.CallCenter;
 using XF.Utility.EnumExtensions;
 
 namespace Hotline.Share.Dtos.CallCenter

+ 1 - 1
src/Hotline.Share/Dtos/CallCenter/IvrDto.cs

@@ -1,4 +1,4 @@
-using Hotline.Share.Enums;
+using Hotline.Share.Enums.CallCenter;
 using XF.Utility.EnumExtensions;
 
 namespace Hotline.Share.Dtos.CallCenter

+ 1 - 1
src/Hotline.Share/Dtos/CallCenter/IvrStrategy.cs

@@ -1,4 +1,4 @@
-using Hotline.Share.Enums;
+using Hotline.Share.Enums.CallCenter;
 using XF.Utility.EnumExtensions;
 
 namespace Hotline.Share.Dtos.CallCenter;

+ 1 - 1
src/Hotline.Share/Dtos/CallCenter/OutCallDto.cs

@@ -1,4 +1,4 @@
-using Hotline.Share.Enums;
+using Hotline.Share.Enums.CallCenter;
 
 namespace Hotline.Share.Dtos.CallCenter
 {

+ 1 - 1
src/Hotline.Share/Dtos/CallCenter/TelDto.cs

@@ -1,4 +1,4 @@
-using Hotline.Share.Enums;
+using Hotline.Share.Enums.CallCenter;
 using XF.Utility.EnumExtensions;
 
 namespace Hotline.Share.Dtos.CallCenter

+ 1 - 1
src/Hotline.Share/Dtos/CallCenter/TelGroupDto.cs

@@ -1,4 +1,4 @@
-using Hotline.Share.Enums;
+using Hotline.Share.Enums.CallCenter;
 using XF.Utility.EnumExtensions;
 
 namespace Hotline.Share.Dtos.CallCenter

+ 5 - 5
src/Hotline.Share/Enums/ECDRRoute.cs → src/Hotline.Share/Enums/CallCenter/ECDRRoute.cs

@@ -1,22 +1,22 @@
-namespace Hotline.Share.Enums
+namespace Hotline.Share.Enums.CallCenter
 {
     public enum ECDRRoute
     {
         /// <summary>
         /// IP中继
         /// </summary>
-        IP=1,
+        IP = 1,
         /// <summary>
         /// 模拟中继
         /// </summary>
-        XO=2,
+        XO = 2,
         /// <summary>
         /// 内部
         /// </summary>
-        IC=3,
+        IC = 3,
         /// <summary>
         /// 总机
         /// </summary>
-        OP=4,
+        OP = 4,
     }
 }

+ 7 - 7
src/Hotline.Share/Enums/ECDRType.cs → src/Hotline.Share/Enums/CallCenter/ECDRType.cs

@@ -1,30 +1,30 @@
-namespace Hotline.Share.Enums
+namespace Hotline.Share.Enums.CallCenter
 {
     public enum ECDRType
     {
         /// <summary>
         /// 打入
         /// </summary>
-        IN=1,
+        IN = 1,
         /// <summary>
         /// 打出
         /// </summary>
-        OU=2,
+        OU = 2,
         /// <summary>
         /// 呼叫转移入
         /// </summary>
-        FL=3,
+        FL = 3,
         /// <summary>
         /// 呼叫转移出
         /// </summary>
-        FW=4,
+        FW = 4,
         /// <summary>
         /// 内部通话
         /// </summary>
-        LO=5,
+        LO = 5,
         /// <summary>
         /// 双向外呼
         /// </summary>
-        CB=6,
+        CB = 6,
     }
 }

+ 1 - 1
src/Hotline.Share/Enums/ECallDirection.cs → src/Hotline.Share/Enums/CallCenter/ECallDirection.cs

@@ -1,6 +1,6 @@
 using System.ComponentModel;
 
-namespace Hotline.Share.Enums;
+namespace Hotline.Share.Enums.CallCenter;
 
 /// <summary>
 /// 呼叫方向,来电/呼出

+ 2 - 2
src/Hotline.Share/Enums/ECallStatus.cs → src/Hotline.Share/Enums/CallCenter/ECallStatus.cs

@@ -1,6 +1,6 @@
 using System.ComponentModel;
 
-namespace Hotline.Share.Enums;
+namespace Hotline.Share.Enums.CallCenter;
 
 /// <summary>
 /// 呼叫状态
@@ -89,7 +89,7 @@ public enum ECallStatus
     /// 语音播放完成
     /// </summary>
     [Description("语音播放完成")]
-    EndOfAnn=110,
+    EndOfAnn = 110,
 
     //todo 待完善
 }

+ 5 - 5
src/Hotline.Share/Enums/ECallType.cs → src/Hotline.Share/Enums/CallCenter/ECallType.cs

@@ -1,6 +1,6 @@
 using System.ComponentModel;
 
-namespace Hotline.Share.Enums
+namespace Hotline.Share.Enums.CallCenter
 {
     public enum ECallType
     {
@@ -14,20 +14,20 @@ namespace Hotline.Share.Enums
         /// 分机呼外部
         /// </summary>
         [Description("分机呼外部")]
-        ExtToOuter= 1,
+        ExtToOuter = 1,
 
         /// <summary>
         /// 来电转分机
         /// </summary>
         [Description("来电转分机")]
-        VisitorToExt= 2,
+        VisitorToExt = 2,
 
         /// <summary>
         /// 来电
         /// </summary>
         [Description("来电")]
-        VisitorCallIn= 3,
+        VisitorCallIn = 3,
+
 
-        
     }
 }

+ 1 - 1
src/Hotline.Share/Enums/EDistribution.cs → src/Hotline.Share/Enums/CallCenter/EDistribution.cs

@@ -1,6 +1,6 @@
 using System.ComponentModel;
 
-namespace Hotline.Share.Enums;
+namespace Hotline.Share.Enums.CallCenter;
 
 /// <summary>
 /// 呼叫分配方式,默认值:circular

+ 1 - 1
src/Hotline.Share/Enums/EEndBy.cs → src/Hotline.Share/Enums/CallCenter/EEndBy.cs

@@ -1,6 +1,6 @@
 using System.ComponentModel;
 
-namespace Hotline.Share.Enums;
+namespace Hotline.Share.Enums.CallCenter;
 
 /// <summary>
 /// 通话结束方

+ 2 - 2
src/Hotline.Share/Enums/EInfoType.cs → src/Hotline.Share/Enums/CallCenter/EInfoType.cs

@@ -1,6 +1,6 @@
 using System.ComponentModel;
 
-namespace Hotline.Share.Enums
+namespace Hotline.Share.Enums.CallCenter
 {
     public enum EInfoType
     {
@@ -13,7 +13,7 @@ namespace Hotline.Share.Enums
         /// 留言
         /// </summary>
         [Description("留言")]
-        Comments =2,
+        Comments = 2,
         /// <summary>
         /// 传真
         /// </summary>

+ 1 - 1
src/Hotline.Share/Enums/EIvrAnswerType.cs → src/Hotline.Share/Enums/CallCenter/EIvrAnswerType.cs

@@ -1,6 +1,6 @@
 using System.ComponentModel;
 
-namespace Hotline.Share.Enums;
+namespace Hotline.Share.Enums.CallCenter;
 
 public enum EIvrAnswerType
 {

+ 1 - 1
src/Hotline.Share/Enums/EIvrStrategeType.cs → src/Hotline.Share/Enums/CallCenter/EIvrStrategeType.cs

@@ -1,6 +1,6 @@
 using System.ComponentModel;
 
-namespace Hotline.Share.Enums;
+namespace Hotline.Share.Enums.CallCenter;
 
 public enum EIvrStrategeType
 {

+ 1 - 1
src/Hotline.Share/Enums/EIvrType.cs → src/Hotline.Share/Enums/CallCenter/EIvrType.cs

@@ -1,6 +1,6 @@
 using System.ComponentModel;
 
-namespace Hotline.Share.Enums;
+namespace Hotline.Share.Enums.CallCenter;
 
 /// <summary>
 /// IVR类型

+ 1 - 1
src/Hotline.Share/Enums/EOnState.cs → src/Hotline.Share/Enums/CallCenter/EOnState.cs

@@ -1,6 +1,6 @@
 using System.ComponentModel;
 
-namespace Hotline.Share.Enums
+namespace Hotline.Share.Enums.CallCenter
 {
     public enum EOnState
     {

+ 1 - 1
src/Hotline.Share/Enums/EPhoneISP.cs → src/Hotline.Share/Enums/CallCenter/EPhoneISP.cs

@@ -1,6 +1,6 @@
 using System.ComponentModel;
 
-namespace Hotline.Share.Enums
+namespace Hotline.Share.Enums.CallCenter
 {
     public enum EPhoneISP
     {

+ 3 - 4
src/Hotline.Share/Enums/ERingOffType.cs → src/Hotline.Share/Enums/CallCenter/ERingOffType.cs

@@ -1,7 +1,6 @@
-
-using System.ComponentModel;
+using System.ComponentModel;
 
-namespace Hotline.Share.Enums
+namespace Hotline.Share.Enums.CallCenter
 {
     public enum ERingOffType
     {
@@ -14,6 +13,6 @@ namespace Hotline.Share.Enums
         /// 黑名单拒绝通话并挂断
         /// </summary>
         [Description("黑名单拒接挂断")]
-        BlackList =1,
+        BlackList = 1,
     }
 }

+ 5 - 5
src/Hotline.Share/Enums/ETelStatus.cs → src/Hotline.Share/Enums/CallCenter/ETelStatus.cs

@@ -1,6 +1,6 @@
 using System.ComponentModel;
 
-namespace Hotline.Share.Enums;
+namespace Hotline.Share.Enums.CallCenter;
 
 /// <summary>
 /// 分机状态
@@ -16,20 +16,20 @@ public enum ETelStatus
     /// 振铃、回铃或通话中(外部对接无效)
     /// </summary>
     [Description("繁忙")]
-    Active=1,
+    Active = 1,
     /// <summary>
     /// 模拟分机摘机后等待拨号以及拨号过程中
     /// </summary>
-    Progress=2,
+    Progress = 2,
     /// <summary>
     /// 分机离线
     /// </summary>
     [Description("离线")]
-    Offline=3,
+    Offline = 3,
     /// <summary>
     /// 模拟分机听催挂音时的状态
     /// </summary>
-    Offhook=4,
+    Offhook = 4,
 
     /// <summary>
     /// 通话进行中

+ 2 - 2
src/Hotline.Share/Enums/ETelStatusInfo.cs → src/Hotline.Share/Enums/CallCenter/ETelStatusInfo.cs

@@ -1,6 +1,6 @@
 using System.ComponentModel;
 
-namespace Hotline.Share.Enums
+namespace Hotline.Share.Enums.CallCenter
 {
     public enum ETelStatusInfo
     {
@@ -12,7 +12,7 @@ namespace Hotline.Share.Enums
         Into = 1,
         //呼出
         [Description("呼出")]
-        Out =2,
+        Out = 2,
         /// <summary>
         /// 分机呼分机
         /// </summary>

+ 1 - 1
src/Hotline/CallCenter/Calls/Call.cs

@@ -1,5 +1,5 @@
 using System.ComponentModel;
-using Hotline.Share.Enums;
+using Hotline.Share.Enums.CallCenter;
 using SqlSugar;
 using XF.Domain.Entities;
 using XF.Domain.Repository;

+ 1 - 1
src/Hotline/CallCenter/Calls/CallDetail.cs

@@ -1,4 +1,4 @@
-using Hotline.Share.Enums;
+using Hotline.Share.Enums.CallCenter;
 using SqlSugar;
 using XF.Domain.Entities;
 using XF.Domain.Repository;

+ 1 - 1
src/Hotline/CallCenter/Calls/CallRecord.cs

@@ -1,5 +1,5 @@
 using System.ComponentModel;
-using Hotline.Share.Enums;
+using Hotline.Share.Enums.CallCenter;
 using SqlSugar;
 using XF.Domain.Entities;
 using XF.Domain.Repository;

+ 1 - 1
src/Hotline/CallCenter/Ivrs/Ivr.cs

@@ -1,5 +1,5 @@
 using Hotline.Share.Dtos.CallCenter;
-using Hotline.Share.Enums;
+using Hotline.Share.Enums.CallCenter;
 using SqlSugar;
 using XF.Domain.Entities;
 using XF.Domain.Repository;

+ 1 - 1
src/Hotline/CallCenter/Ivrs/IvrDomainService.cs

@@ -1,7 +1,7 @@
 using Hotline.Caches;
 using Hotline.CallCenter.Devices;
 using Hotline.Share.Dtos.CallCenter;
-using Hotline.Share.Enums;
+using Hotline.Share.Enums.CallCenter;
 using MapsterMapper;
 using Microsoft.Extensions.Logging;
 using XF.Domain.Cache;

+ 1 - 1
src/Hotline/CallCenter/Tels/TelGroup.cs

@@ -1,5 +1,5 @@
 using System.ComponentModel;
-using Hotline.Share.Enums;
+using Hotline.Share.Enums.CallCenter;
 using SqlSugar;
 using XF.Domain.Entities;
 using XF.Domain.Repository;

+ 1 - 1
src/Hotline/Tools/PhoneISPTool.cs

@@ -1,4 +1,4 @@
-using Hotline.Share.Enums;
+using Hotline.Share.Enums.CallCenter;
 
 namespace Hotline.Tools
 {

+ 10 - 0
src/Hotline/WorkOrders/WorkflowBusinessModule.cs

@@ -0,0 +1,10 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Hotline.WorkOrders
+{
+    public record WorkflowBusinessModule(string Name, string Code);
+}