﻿----------------------------------Mostafa 2024-03-19 ------------------------------------------

INSERT [dbo].[SystemMenu] ([SystemMenuCode], [Name], [Arabic_Name], [ParentID], [ControllerName], [ActionName], [ImageURL], [HTTPMethod], [Sequence], [IsVisible], [ShowInPrivilegePage])
VALUES(1067,N'Qualification',N'الموهلات',1063,N'/Personal/Qualification',N'Index','fa fa-thumb-tack',N'get',1,1,1)
Go
INSERT[dbo].[SystemMenuModule]( [SystemMenuCode], [AppModuleCode]) VALUES(1067,22)
Go
INSERT[dbo].[SecurityPrivilege]([ID], [DescriptionAR], [DescriptionEN], [SystemMenuCode], [PrivilegeType]) VALUES(4158,N'الموهلات',N'Qualification',1067,1)
Go
INSERT[dbo].[SecurityPrivilege]([ID], [DescriptionAR], [DescriptionEN], [SystemMenuCode], [PrivilegeType]) VALUES(4159,N'عرض الموهلات',N'View Qualification',1067,2)
Go
INSERT[dbo].[SecurityPrivilege]([ID], [DescriptionAR], [DescriptionEN], [SystemMenuCode], [PrivilegeType]) VALUES(4160,N'إضافة الموهلات',N'Add Qualification',1067,2)
Go
INSERT[dbo].[SecurityPrivilege]([ID], [DescriptionAR], [DescriptionEN], [SystemMenuCode], [PrivilegeType]) VALUES(4161,N'تعديل الموهلات',N'Edit Qualification',1067,2)
Go
INSERT[dbo].[SecurityPrivilege]([ID], [DescriptionAR], [DescriptionEN], [SystemMenuCode], [PrivilegeType]) VALUES(4162,N'حذف الموهلات',N'Delete Qualification',1067,2)
Go
INSERT[dbo].[SecurityPrivilege]([ID], [DescriptionAR], [DescriptionEN], [SystemMenuCode], [PrivilegeType]) VALUES(4163,N'حفظ الموهلات',N'Save Qualification',1067,2)
Go
INSERT [dbo].[SecurityPrivilegeActions] ([ID], [AreaName], [ControllerName], [ActionName], [ActionType], [HTTPMethod], [SecurityPrivilegeID]) VALUES(1654,N'Personal',N'Qualification',N'Index',0,N'get',4158)
Go
INSERT [dbo].[SecurityPrivilegeActions] ([ID], [AreaName], [ControllerName], [ActionName], [ActionType], [HTTPMethod], [SecurityPrivilegeID]) VALUES(1655,N'Personal',N'Qualification',N'Qualification_Read',0,N'post',4159)
Go
INSERT [dbo].[SecurityPrivilegeActions] ([ID], [AreaName], [ControllerName], [ActionName], [ActionType], [HTTPMethod], [SecurityPrivilegeID]) VALUES(1656,N'Personal',N'Qualification',N'Save',1,N'get',4160)
Go
INSERT [dbo].[SecurityPrivilegeActions] ([ID], [AreaName], [ControllerName], [ActionName], [ActionType], [HTTPMethod], [SecurityPrivilegeID]) VALUES(1657,N'Personal',N'Qualification',N'Save',2,N'get',4161)
Go
INSERT [dbo].[SecurityPrivilegeActions] ([ID], [AreaName], [ControllerName], [ActionName], [ActionType], [HTTPMethod], [SecurityPrivilegeID]) VALUES(1658,N'Personal',N'Qualification',N'Delete',0,N'post',4162)
Go
INSERT [dbo].[SecurityPrivilegeActions] ([ID], [AreaName], [ControllerName], [ActionName], [ActionType], [HTTPMethod], [SecurityPrivilegeID]) VALUES(1659,N'Personal',N'Qualification',N'Save',0,N'post',4163)
Go
INSERT [dbo].[SecurityPrivilegeEndPoints] ([Id], [ApiName], [AreaName], [ControllerName], [ActionName], [HTTPMethod]) VALUES(1116,NULL, NULL,N'Qualification',N'GetQualificationSearch',N'post')
Go
INSERT [dbo].[SecurityPrivilegeEndPoints] ([Id], [ApiName], [AreaName], [ControllerName], [ActionName], [HTTPMethod]) VALUES(1117,NULL, NULL,N'Qualification',N'GetQualification',N'Get')
Go
INSERT [dbo].[SecurityPrivilegeEndPoints] ([Id], [ApiName], [AreaName], [ControllerName], [ActionName], [HTTPMethod]) VALUES(1118,NULL, NULL,N'Qualification',N'Put',N'Put')
Go
INSERT [dbo].[SecurityPrivilegeEndPoints] ([Id], [ApiName], [AreaName], [ControllerName], [ActionName], [HTTPMethod]) VALUES(1119,NULL, NULL,N'Qualification',N'post',N'post')
Go
INSERT [dbo].[SecurityPrivilegeEndPoints] ([Id], [ApiName], [AreaName], [ControllerName], [ActionName], [HTTPMethod]) VALUES(1120,NULL, NULL,N'Qualification',N'Delete',N'Delete')
Go
INSERT [dbo].[SecurityPrivilegeEndPoints] ([Id], [ApiName], [AreaName], [ControllerName], [ActionName], [HTTPMethod]) VALUES(1121,NULL, NULL,N'Qualification',N'Get',N'Get')
Go
INSERT [dbo].[SecurityPrivilegeEndPointsDetails] ([Id], [SecurityPrivilegeEndPointId], [SecurityPrivilegeId], [RequestTypeId]) VALUES(1392,1116,4159, NULL)
Go
INSERT [dbo].[SecurityPrivilegeEndPointsDetails] ([Id], [SecurityPrivilegeEndPointId], [SecurityPrivilegeId], [RequestTypeId]) VALUES(1393,1117,4159, NULL)
Go
INSERT [dbo].[SecurityPrivilegeEndPointsDetails] ([Id], [SecurityPrivilegeEndPointId], [SecurityPrivilegeId], [RequestTypeId]) VALUES(1394,1118,4163, NULL)
Go
INSERT [dbo].[SecurityPrivilegeEndPointsDetails] ([Id], [SecurityPrivilegeEndPointId], [SecurityPrivilegeId], [RequestTypeId]) VALUES(1395,1119,4163, NULL)
Go
INSERT [dbo].[SecurityPrivilegeEndPointsDetails] ([Id], [SecurityPrivilegeEndPointId], [SecurityPrivilegeId], [RequestTypeId]) VALUES(1396,1120,4162, NULL)
Go
INSERT [dbo].[SecurityPrivilegeEndPointsDetails] ([Id], [SecurityPrivilegeEndPointId], [SecurityPrivilegeId], [RequestTypeId]) VALUES(1397,1121,4161, NULL)
Go
----------------------------------End 2024-03-19 ------------------------------------------
----------------------------------Ali 2024-03-21 ------------------------------------------
update SystemMenu set ControllerName =N'/WorkFlow/FingerPrintRequestApi' where SystemMenuCode=69
 Go
 update SystemMenu set ControllerName =N'/WorkFlow/FingerPrintRequestSignatureApi' where SystemMenuCode=70
 Go

  update SystemMenu set ControllerName =N'/WorkFlow/CompensationRequestForADayOfRestApi' where SystemMenuCode=220
 Go
 update SystemMenu set ControllerName =N'/WorkFlow//WorkFlow/CompensationDayOfRestRequestSignatureApi' where SystemMenuCode=221
 Go
 update SystemMenu set ControllerName =N'/WorkFlow/CompensationReqFinalDayRestSignatureApi' where SystemMenuCode=223
 Go
----------------------------------End 2024-03-21 ------------------------------------------
  --------------------------------------- AK 2024-01-31 ---------
UPDATE ConfigParameter SET ConfigKey='SendWhatsAppMessageSetting', Name='Send WhatsApp Message Settings', Arabic_Name=N'إعدادات إرسال رسالة WhatsApp', ConfigType=6, ConfigValue=99, ConfigDescription=N'إعدادات إرسال رسالة WhatsApp' WHERE ConfigKey='WhatsAppInstanceID'
GO

DELETE ConfigParameter WHERE ConfigKey='WhatsAppToken'
GO

INSERT INTO ConfigLookup (ConfigLookupCode,Name, Arabic_Name, ConfigKey)
VALUES 
(99,N'Default settings', N'اعدادات افتراضية','SendWhatsAppMessageSetting'),
(100,N'Madar settings', N'اعدادات مدار','SendWhatsAppMessageSetting')
Go
--------------------------------------- End AK 2024-01-31 ------------
